Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Newbies

Reply
 
Thread Tools Search this Thread Display Modes
Old 8th September 2008, 04:21   #1  |  Link
Poof
Banned
 
Join Date: Aug 2008
Posts: 40
How do I restore aspect ratio info that was lost during ripping?

I ripped a dvd (using DVDfab5) and noticed only after i converted it to x264 (using Automkv) that the original VOB's (as well as the final mkv) played at a strange aspect ratio, like a tall widescreen, instead of its original 1.78. AutoMKV tells me the ratio is 1.541284.

Is there some way to restore the correct AR to the original VOB's or the final MKV? Is AR part of the video itself, or is it like metadata info that just tells the player what AR to play at?
Poof is offline   Reply With Quote
Old 8th September 2008, 04:50   #2  |  Link
[P]ako
A geek wannabe
 
[P]ako's Avatar
 
Join Date: Apr 2007
Posts: 231
Remux the video to MKV and set the aspect ratio to 1.78 (there is an option to do it).
[P]ako is offline   Reply With Quote
Old 8th September 2008, 04:51   #3  |  Link
setarip_old
Registered User
 
setarip_old's Avatar
 
Join Date: Aug 2005
Posts: 16,270
Hi!

As far as I know, there's nothing in any of the familiar ripping programs that would possibly affect/alter the aspect ratio...
setarip_old is offline   Reply With Quote
Old 8th September 2008, 08:21   #4  |  Link
Poof
Banned
 
Join Date: Aug 2008
Posts: 40
what program can do it, because i dont see anything in AUTOMKV about aspect ratio's.
Poof is offline   Reply With Quote
Old 8th September 2008, 13:25   #5  |  Link
setarip_old
Registered User
 
setarip_old's Avatar
 
Join Date: Aug 2005
Posts: 16,270
I'd guess that it's more likely the player you're using that's the cause of your display problem...
setarip_old is offline   Reply With Quote
Old 8th September 2008, 16:52   #6  |  Link
Poof
Banned
 
Join Date: Aug 2008
Posts: 40
Ive played it on zplayer, vlc, and mplayer, and they all show the native AR as being 1.5. automkv is telling me the AR is 1.5 too.

So maybe it was originally 1.5, though the image lookes stretched if i dont set it to 1.78 and its says 16:9 on the dvd box, so how do i change the AR to 1.78?
Poof is offline   Reply With Quote
Old 9th September 2008, 08:20   #7  |  Link
dat720
Registered User
 
Join Date: Jan 2008
Posts: 870
Use MKVToolNix one of the programs MKVMerge can change aspect ratio of a mkv file, well not really change, it writes a new asspect ratio as it is muxing the files.

Last edited by dat720; 9th September 2008 at 11:04.
dat720 is offline   Reply With Quote
Old 9th September 2008, 22:39   #8  |  Link
Poof
Banned
 
Join Date: Aug 2008
Posts: 40
Thanks for the suggestion but it didnt work. I tried to change it to something extreme, like 2.35 and still nothing happened.
Poof is offline   Reply With Quote
Old 9th September 2008, 23:02   #9  |  Link
talen9
Registered User
 
Join Date: Aug 2007
Location: Italy
Posts: 286
Can you post an AVInaptic report of the original MKV file, and of the one with the modified AR?
talen9 is offline   Reply With Quote
Old 10th September 2008, 17:19   #10  |  Link
Poof
Banned
 
Join Date: Aug 2008
Posts: 40
well, actually the original VOB's i ripped from the dvd came out to be 1.5, but it says on the box 1.78, and no matter what i do it always remains 1.5, which is odd because i thought DVD had to either be 1.78 or 1.3, so what the hell is 1.5 anyways? Maybe this DVD was coded for the moon where people watch movies on 1.5 screens.
Poof is offline   Reply With Quote
Old 10th September 2008, 21:28   #11  |  Link
CWR03
Custom User Title
 
CWR03's Avatar
 
Join Date: Mar 2005
Posts: 3,737
All NTSC DVD's have a "native" resolution of 1.5:1 (720 x 480) and use AR signalling to display properly. Something with your ripping procedure may have removed the signaling. One option would be to re-rip the disk with another application and re-encode it as before.
CWR03 is offline   Reply With Quote
Old 10th September 2008, 23:43   #12  |  Link
talen9
Registered User
 
Join Date: Aug 2007
Location: Italy
Posts: 286
Hmm yes ok but ... but why re-encoding it all when you can simply redo the muxing with a more correct AR tag?

I know that the OP already tried to do it and seems like he didn't succeed ... and that's the very reason I asked for a detailed report (like the one given by AVInaptic) which includes the info about PAR/DAR
talen9 is offline   Reply With Quote
Old 11th September 2008, 01:06   #13  |  Link
Poof
Banned
 
Join Date: Aug 2008
Posts: 40
I used DVDfab5, there were no options other than what streams i wanted to rip, and it seems to be a pretty popular program so unless thats a common issue i cant image that it would have removed anything.

Ok, i opened up the original VOB in avinaptic and it didnt give me any info because VOB isnt supported. The next step was the uncompressed (lagarith) MKV:
Quote:

[ About file ]

Name: UNCOMPRESSED.mkv
Date: 8/09/2008 02:28:53
Size: 30,780,123,947 bytes (29354.214 MB)

[ Generic infos ]

Play duration: 02:04:37 (7476.552 s)
Container type: matroska
Creation time: 8/09/2008 04:51:06 UTC
Number of streams: 2
Type of stream nr. 1: video (V_MS/VFW/FOURCC)
Type of stream nr. 2: audio (A_MS/ACM)
Audio streams: 1
Muxing Application: libebml-0.7.5 & libmatroska-0.7.7
Writing Application: VirtualDubMod 1.5.10.2 (build 2542/release)

[ Relevant data ]

Resolution: 720 x 480
Width: multiple of 16
Height: multiple of 32

[ Video track ]

Codec ID: V_MS/VFW/FOURCC
Resolution: 720 x 480
Frame aspect ratio: 3:2 = 1.5
Pixel aspect ratio: 1:1 = 1
Display aspect ratio: 3:2 = 1.5
Framerate: 23.976024 fps

[ Audio track ]

Codec ID: A_MS/ACM
Channels (container): 6
Sample rate: 48000 Hz

[ About MS-MPEG4 encoding ]

Packed bitstream: No
QPel: No
GMC: No
Interlaced: No
Aspect ratio: Square pixels
Quant type: H.263

[ Profile compliancy ]

Profile to check: MTK PAL 6000
Resolution: Ok
Framerate: 23.976024 <> 25
Warning: If you need a more complete report, then click on "DRF analysis"

This report was created by AVInaptic (18-11-2007) on 10 set 2008, h 20:03:07
and this is the AUTOMKV x264 mkv encode of the uncompressed movie (anamorphic + Force DAR 16:9 options checked):


Quote:

[ About file ]

Name: Spirited_Away.mkv
Date: 8/09/2008 08:36:23
Size: 1,336,580,195 bytes (1274.662 MB)

[ Generic infos ]

Play duration: 02:04:37 (7476.553 s)
Container type: matroska
Creation time: 8/09/2008 12:35:36 UTC
Number of streams: 2
Type of stream nr. 1: video (V_MPEG4/ISO/AVC) {UNCOMPRESSED}
Type of stream nr. 2: audio (A_AC3)
Audio streams: 1
Muxing Application: libebml v0.7.7 + libmatroska v0.8.1
Writing Application: mkvmerge v2.2.0 ('Turn It On Again') built on Mar 4 2008 12:58:26

[ Relevant data ]

Resolution: 720 x 480
Width: multiple of 16
Height: multiple of 32

[ Video track ]

Codec ID: V_MPEG4/ISO/AVC
Resolution: 720 x 480
Frame aspect ratio: 3:2 = 1.5
Pixel aspect ratio: 1:1 = 1
Display aspect ratio: 3:2 = 1.5
Framerate: 23.976024 fps

[ Audio track ]

Codec ID: A_AC3
Channels (container): 6
Sample rate: 48000 Hz
Mode: 3 front, 2 rear, 1 LFE

[ About H.264 encoding ]

User data: x264
User data: core 59 r805M decfd7b
User data: H.264/MPEG-4 AVC codec
User data: Copyleft 2003-2008
User data: http://www.videolan.org/x264.html
User data: cabac=1
User data: ref=3
User data: deblock=1:-2:-1
User data: analyse=0x3:0x133
User data: me=umh
User data: subme=5
User data: me-prepass=0
User data: brdo=0
User data: mixed_ref=1
User data: me_range=16
User data: chroma_me=1
User data: trellis=1
User data: 8x8dct=1
User data: cqm=0
User data: deadzone=21,11
User data: chroma_qp_offset=0
User data: threads=3
User data: nr=0
User data: decimate=1
User data: mbaff=0
User data: bframes=3
User data: b_pyramid=1
User data: b_adapt=1
User data: b_bias=0
User data: direct=3
User data: wpredb=1
User data: bime=1
User data: keyint=250
User data: keyint_min=25
User data: scenecut=40(pre)
User data: rc=crf
User data: crf=18.0
User data: rceq='blurCplx^(1-qComp)'
User data: qcomp=0.74
User data: qpmin=10
User data: qpmax=51
User data: qpstep=4
User data: ip_ratio=1.40
User data: pb_ratio=1.30
User data: aq=2:0.10
SPS id: 0
Profile: High@L4.1
Num ref frames: 3
Chroma format idc: YUV 4:2:0
PPS id: 0 (SPS: 0)
Entropy coding type: CABAC
Weighted prediction: No
Weighted bipred idc: B slices - implicit weighted prediction
8x8dct: Yes

[ Profile compliancy ]

Profile to check: MTK PAL 6000
Resolution: Ok
Framerate: 23.976024 <> 25
Warning: If you need a more complete report, then click on "DRF analysis"

This report was created by AVInaptic (18-11-2007) on 10 set 2008, h 20:03:34
Poof is offline   Reply With Quote
Old 11th September 2008, 09:23   #14  |  Link
talen9
Registered User
 
Join Date: Aug 2007
Location: Italy
Posts: 286
Well, as you can see, both the uncompressed and the AutoMKV-obtained MKV files contain these info:

Code:
Frame aspect ratio: 3:2 = 1.5
Pixel aspect ratio: 1:1 = 1
Display aspect ratio: 3:2 = 1.5
It's clear that the issue you're having is with AutoMKV: if the encoding was truly anamorphic, the value of "Pixel aspect ratio" should not be "1:1" but a > 1 value, tipically (and it should be 32/27 in this specific case).

I'm not saying that this is a bug (though it could be): rather, I think that "anamorphic" and "Force 16:9" don't go together very well... but it's only a suspicion, since I don't know anything about AutoMKV.


Anyway, as I said in the previous post, there's a very simple solution to the issue without re-encoding (but I suggest you look for a way to do it correctly into AutoMKV in the first place): simply use MKVMerge - using the GUI is preferable - like this:
1) add your AutoMKV-produced MKV file into MKVmerge ("add" button);
2) select the video track from the middle part of the maim window;
3) select the "format specific options" in the section just below;
4) select "16:9" from the "aspect ratio" drop down menu (or simply type it into the text field).
5) remember to change the output file name in the bottom part of the window! MKVMergeGUI (at least up to v2.2.0) by default set it as the main part of the file name + the MKV extension ... so, if you're remuxing/modifying an existing MKV file, you risk to overwrite the original one.
talen9 is offline   Reply With Quote
Old 11th September 2008, 18:11   #15  |  Link
Poof
Banned
 
Join Date: Aug 2008
Posts: 40
Well, i did the mkvtoolnix 16:9 remux and here is what avinaptic is telling me:

Quote:

[ About file ]

Name: Spirited_Away_WideScreen.mkv
Date: 11/09/2008 13:06:03
Size: 1,336,580,206 bytes (1274.662 MB)

[ Generic infos ]

Play duration: 02:04:37 (7476.553 s)
Container type: matroska
Creation time: 11/09/2008 17:04:40 UTC
Number of streams: 2
Type of stream nr. 1: video (V_MPEG4/ISO/AVC) {Spirited Away}
Type of stream nr. 2: audio (A_AC3) {Spirited Away AC3}
Audio streams: 1
Muxing Application: libebml v0.7.7 + libmatroska v0.8.1
Writing Application: mkvmerge v2.3.0 ('Freak U') built on Sep 8 2008 18:32:16

[ Relevant data ]

Resolution: 720 x 480
Width: multiple of 16
Height: multiple of 32

[ Video track ]

Codec ID: V_MPEG4/ISO/AVC
Resolution: 720 x 480
Frame aspect ratio: 3:2 = 1.5
Pixel aspect ratio: 853:720 = 1.184722
Display aspect ratio: 853:480 = 1.777083 (~16:9)
Framerate: 23.976024 fps

[ Audio track ]

Codec ID: A_AC3
Channels (container): 6
Sample rate: 48000 Hz
Mode: 3 front, 2 rear, 1 LFE

[ About H.264 encoding ]

User data: x264
User data: core 59 r805M decfd7b
User data: H.264/MPEG-4 AVC codec
User data: Copyleft 2003-2008
User data: http://www.videolan.org/x264.html
User data: cabac=1
User data: ref=3
User data: deblock=1:-2:-1
User data: analyse=0x3:0x133
User data: me=umh
User data: subme=5
User data: me-prepass=0
User data: brdo=0
User data: mixed_ref=1
User data: me_range=16
User data: chroma_me=1
User data: trellis=1
User data: 8x8dct=1
User data: cqm=0
User data: deadzone=21,11
User data: chroma_qp_offset=0
User data: threads=3
User data: nr=0
User data: decimate=1
User data: mbaff=0
User data: bframes=3
User data: b_pyramid=1
User data: b_adapt=1
User data: b_bias=0
User data: direct=3
User data: wpredb=1
User data: bime=1
User data: keyint=250
User data: keyint_min=25
User data: scenecut=40(pre)
User data: rc=crf
User data: crf=18.0
User data: rceq='blurCplx^(1-qComp)'
User data: qcomp=0.74
User data: qpmin=10
User data: qpmax=51
User data: qpstep=4
User data: ip_ratio=1.40
User data: pb_ratio=1.30
User data: aq=2:0.10
SPS id: 0
Profile: High@L4.1
Num ref frames: 3
Chroma format idc: YUV 4:2:0
PPS id: 0 (SPS: 0)
Entropy coding type: CABAC
Weighted prediction: No
Weighted bipred idc: B slices - implicit weighted prediction
8x8dct: Yes

[ Profile compliancy ]

Profile to check: MTK PAL 6000
Resolution: Ok
Framerate: 23.976024 <> 25
Warning: If you need a more complete report, then click on "DRF analysis"

This report was created by AVInaptic (18-11-2007) on 11 set 2008, h 13:08:01
Strange thing is, on both zplayer and mplayer it still plays incorrect AR, but on VLC it plays correctly! No idea whats going on, my main concern is whether it will play right on a dvd. thanks for the help, i think im getting closer to figuring this out.
Poof is offline   Reply With Quote
Old 11th September 2008, 18:53   #16  |  Link
talen9
Registered User
 
Join Date: Aug 2007
Location: Italy
Posts: 286
Yep, now the file *is* correct ... it's your configuration of Zoom Player and mplayer that is not !

BTW, are you talking about "command line mplayer" or Windows Media Player o Media Player Classic, btw? 'cause mplayer usually doesn't need custom config to play an anamorphic encode ... ).
talen9 is offline   Reply With Quote
Old 12th September 2008, 02:33   #17  |  Link
Poof
Banned
 
Join Date: Aug 2008
Posts: 40
mplayer classic, the one that comes with quicktime alternative.

I dont know, just going to burn to disc and see if it works. I'm tired of fighting technology.

edit: noticed something strange: i loaded the original DVD up in zoomplayer and moved foward frame by frame, then i loaded the x264 rip up in media player classic and checked the frame at the same spot and it was different. I loaded the same x264 into zoomplayer and it was identical to the DVD.

Media player classic must be majorly F'd up.

Anyways, zoom read the AR of the DVD perfect, but it still requires me to set it manually to 16:9 for the x264. *sigh*

Last edited by Poof; 12th September 2008 at 03:40.
Poof is offline   Reply With Quote
Old 12th September 2008, 09:50   #18  |  Link
talen9
Registered User
 
Join Date: Aug 2007
Location: Italy
Posts: 286
I'd like to help you further, but i never used ZoomPlayer.

And usually, many issue of MPC comes from misconfiguration more than from bugs. MPC is very tunable, but this means that you have to understand very well what you're doing, when configuring it ..
talen9 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 15:03.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.