Log in

View Full Version : Invalid frame count in demuxed VOBs


lost_guadelenn
2nd October 2010, 23:52
Hello.

I have a DVD video disc with several titles. My goal is to extract one of the titles and reencode it with lower bitrate.
So, the first thing I'm trying to do is to demux VOBs (the title is split into five vob files). Title length is 1 hour 37 min 8 sec and framerate is 23.967. (According to the video player).
I have tried PGCEdit, VobEdit and MeGUI tools. All of them generate m2v files of the same size.

Here is log of MeGUI (I've concatenated vobs into one file):

eac3to v3.21
command line: "C:\Program Files (x86)\MeGUI\tools\eac3to\eac3to.exe" "C:\tmp\exist_cut\1.vob" 1:"C:\tmp\exist_cut\T1_Video.m2v" -progressnumbers
------------------------------------------------------------------------------
VOB, 1 video track, 3 audio tracks, 1 subtitle track, 1:37:08
1: MPEG2, 480p24 /1.001 (16:9) with pulldown flags
2: AC3, 5.1 channels, 384kbps, 48kHz, dialnorm: -27dB
3: AC3, 2.0 channels, 192kbps, 48kHz, dialnorm: -27dB
4: AC3, 5.1 channels, 384kbps, 48kHz, dialnorm: -27dB
5: Subtitle (DVD)
[v01] Extracting video track number 1...
[v01] Creating file "C:\tmp\exist_cut\T1_Video.m2v"...
Video track 1 contains 139738 frames.
eac3to processing took 4 minutes, 48 seconds.
Done.


Note the number of frames = 139738 !
If I open 'T1_Video.m2v' file, which was just demuxed, with video player, then it will show 1 hour 0 min 44 sec as a length of the video. It also shows frame rate in between 23.97..24.04 fps.
However, the video seems to be complete, because if I rewind it to the end, there is everyting in the place.

If I open demuxed file via the following AVS script:

filename="C:\tmp\exist_cut\T1_Video.m2v"
b = directshowsource(filename,audio=false).AssumeFPS(23.967)
return b.ConvertToYV12()

Then the player shows 1 hour 15 minutes and 57 seconds.

And finally x264 log:

avs [info]: 720x480p 0:0 @ 23967/1000 fps (cfr)
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
x264 [info]: profile Main, level 3.2
[0.1%] 70/109240 frames, 20.69 fps, 613.26 kb/s, eta 1:27:57
Note the total number of 109240 frames which is less than in m2v file!

What the hell I'm doing wrong?
How can I get valid file with valid length and valid framerate?

Thank you.

manono
3rd October 2010, 14:44
The players always give the wrong length when playing M2Vs. Do it like normal people and make a D2V file using DGIndex after opening all the VOBs together (don't join them) and then open it using DGDecode and MPEG2Source. Never use DirectShowSource if you can possibly avoid it. All this is explained in great detail in the docs included in the DGMPGDec package.

Does this have anything at all to do with decrypting? Moving you to the Newbie Forum.

And welcome to the forum.