[vdr] aspect ratio/videolength in vdr-1.7.10

Christian Tramnitz chris.ace at gmx.net
Thu Dec 10 09:41:32 CET 2009


Klaus Schmidinger schrieb:
> You can take the size of the index file, divide it by 8 and
> you get the number of frames in the recording. The info file
> tells you the number of frames per second (at least with newer
> TS recordings).

I don't think this calculation is always accurate (i.e. for h264/HD 
recordings) right now.
For a 1080i recording the info file contains "F 25" (shouldn't it be 50 
frames for 1080i50?)

Example (recorded with vdr 1.7.10):
  # ls -la
insgesamt 7219260
drwxr-xr-x 2 vdr  vdr          59 28. Nov 15:04 .
drwxr-xr-x 3 vdr  vdr          38 22. Nov 20:12 ..
-rw-r--r-- 1 vdr  vdr  7389603764 22. Nov 22:13 00001.ts
-rw-r--r-- 1 vdr  vdr     2901984 22. Nov 22:13 index
-rw-r--r-- 1 vdr  vdr         681 22. Nov 20:12 info

# grep "^F\ " info
F 25


2901984 (size of the index file) / 8 = 362748 (frames)
362748 / 25 (framelength according to info) = 241min 49sec (wrong!)
362748 / 50 (real framelength) = 120min 54sec (actual length)


Best regards,
    Christian




More information about the vdr mailing list