Log in

View Full Version : dgindexnv 2007 - fps error


camelus
27th April 2010, 23:34
I have an mkv file with the following specs

Format : Matroska
File size : 1.09 GiB
Duration : 46mn 58s
Overall bit rate : 3329 Kbps
Encoded date : UTC 2010-02-22 21:41:29
Writing application : no_variable_data
Writing library : no_variable_data

Video
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 46mn 56s
Bit rate : 2804 Kbps
Nominal bit rate : 2944 Kbps
Width : 1280 pixels
Height : 720 pixels
Display aspect ratio : 16/9
Frame rate : 23.976 fps
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.133
Writing library : x264 core 85 r1442tw
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=6 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=24 / sliced_threads=0 / nr=0 / decimate=1 / mbaff=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=1 / wpredp=0 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=2944 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Language : English

Audio
Format : AC-3
Format/Info : Audio Coding 3
Codec ID : A_AC3
Duration : 46mn 58s
Bit rate mode : Constant
Bit rate : 384 Kbps
Channel(s) : 2 channels
Channel positions : L R
Sampling rate : 48.0 KHz


if i let dgindex demux this, it insists on demuxing it at 25.00 fps

if I mkvextract it and demux the h264 file, same thing.

Here is the dgindex log file

Stream Type: Elementary
Video Type: AVC
Profile: High
Level: 3.1
Coded Size: 1280x720
SAR: Unspecified
Display Size:
Frame Rate: 25.000000 fps
Colorimetry: BT.709* [2]
Frame Structure: Frame
Frame Type: I
Coded Number: 67584
Playback Number: 67584
Frame Repeats: 0
Field Repeats: 0
Bitrate: 0.036
Bitrate (Avg): 2.998
Bitrate (Max): 16.094
Elapsed: 0:00:46
Remain: 0:00:00
FPS:
Info: Finished!

the dgindex log file shows 25 fps when the mkv file and mediainfo shows 23.976

vlc codec info also shows 23.976

when i run the demuxed dgi file through vdubmod to convert to xvid, the fps is 25

if I use avi-frame-rate adjust i can get it back to 23.976 and the audio is then in sync

Is this is bug?

How do you tell dgindexnv it is wrong

I can send you the mkv file if needed

this is a win7 64 bit putee
8 gig ram
nvidia geforce 295 driver version 8.17.11.9621 - Jan 2010

This error is repeatable - it is an mkv file issue.

DVD's work fine and the fps always seems to find itself correctly

thank you for some great software

Guest
28th April 2010, 00:39
Here the raw stream is not specifying the FPS. It is not a bug. When not specified it defaults to 25.

You can use a text editor to simply revise the FPS line at the bottom of the DGI file as needed. Or you can put an AssumeFPS() at the end of your script.

camelus
28th April 2010, 01:17
Did I miss the default to 25 fps somewhere?

I couldn't find much info about that!

So simply changing this from:-

SIZ 720 x 576
FPS 25000 / 1000 <-----------
CODED 61868
PLAYBACK 61868
0.00% FILM

to
SIZ 720 x 576
FPS 23.976 / 1000 <-----------
CODED 61868
PLAYBACK 61868
0.00% FILM

will do the trick?

thank you

Guest
28th April 2010, 02:08
Did I miss the default to 25 fps somewhere? No, I need to add that to the documentation.

You need:

FPS 23976 / 1000

...because 23976 / 1000 = 23.976

If there are repeat flags, things could be different. Post again if you have repeat flags.