Page 1 of 1

Confused about fps

Posted: Sun May 09, 2010 12:58 am
by alehel
I've just done an encode of the Blu-Ray copy of Resident Evil: Extinction, and I am extremely confused concerning the fps of the video.

I ripped the original BD disk using MakeMKV. VLC tells me that this video has an fps of 23.976. When I load it into handbrake though, handbrake reports it as having 23.98.

Code: Select all

Stream #0.0(eng): Video: h264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
It seemed more logical to me that the video would be 23.976 so I selected this as the framerate instead of "Same as source".

Once the convert was finished both VLC and Quicktime report it as having 23.81. I just don't understand what's going on here.

Here is the complete log:

Code: Select all

HandBrake Activity Log for /Users/alehel/Desktop/REA.m4v: 2010-05-08 20:41:22 +0200
Handbrake Version: svn3285 i386 (2010050701)

[20:41:22] macgui: Rip: Pending queue count is 0
[20:41:22] macgui: scanning specifically for title: 1
[20:41:22] hb_scan: path=/Users/alehel/Movies/Resident_Evil_Extinction/title00.mkv, title_index=1
[20:41:22] scan: trying to open with libdvdread
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[20:41:22] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska, from '/Users/alehel/Movies/Resident_Evil_Extinction/title00.mkv':
  Duration: 01:34:05.66, start: 0.000000, bitrate: 448 kb/s
    Chapter #0.0: start 0.000000, end 452.368578
    Metadata:
      title           : Chapter 00
    Chapter #0.1: start 452.368578, end 819.318489
    Metadata:
      title           : Chapter 01
    Chapter #0.2: start 819.318489, end 1105.437667
    Metadata:
      title           : Chapter 02
    Chapter #0.3: start 1105.437667, end 1513.386867
    Metadata:
      title           : Chapter 03
    Chapter #0.4: start 1513.386867, end 1807.806000
    Metadata:
      title           : Chapter 04
    Chapter #0.5: start 1807.806000, end 1938.102822
    Metadata:
      title           : Chapter 05
    Chapter #0.6: start 1938.102822, end 2333.497822
    Metadata:
      title           : Chapter 06
    Chapter #0.7: start 2333.497822, end 2661.784111
    Metadata:
      title           : Chapter 07
    Chapter #0.8: start 2661.784111, end 3056.053000
    Metadata:
      title           : Chapter 08
    Chapter #0.9: start 3056.053000, end 3323.653667
    Metadata:
      title           : Chapter 09
    Chapter #0.10: start 3323.653667, end 3706.160778
    Metadata:
      title           : Chapter 10
    Chapter #0.11: start 3706.160778, end 4130.376244
    Metadata:
      title           : Chapter 11
    Chapter #0.12: start 4130.376244, end 4482.769956
    Metadata:
      title           : Chapter 12
    Chapter #0.13: start 4482.769956, end 4752.789689
    Metadata:
      title           : Chapter 13
    Chapter #0.14: start 4752.789689, end 5055.425356
    Metadata:
      title           : Chapter 14
    Chapter #0.15: start 5055.425356, end 5645.664000
    Metadata:
      title           : Chapter 15
    Stream #0.0(eng): Video: h264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
    Metadata:
      title           : 3/2+1
[20:41:22] scan: decoding previews for title 1
[20:41:22] scan: audio 0x1: AC-3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch)
[20:41:23] scan: 10 previews, 1920x1080, 23.981 fps, autocrop = 138/138/0/0, aspect 16:9, PAR 1:1
[20:41:23] scan: title (0) job->width:1920, job->height:800
[20:41:23] libhb: scan thread found 1 valid title(s)
[20:41:23] macgui: ScanDone state received from fQueueEncodeLibhb
[20:41:23] macgui: Preset: Custom
[20:41:23] macgui: processNewQueueEncode number of passes expected is: 1
[20:41:23] macgui: Start / Stop set to chapters
[20:41:23] macgui: prepareJob audiotrack 2 is: 0
[20:41:23] macgui: prepareJob exiting
[20:41:23] 1 job(s) to process
[20:41:23] starting job
[20:41:23] sync: expecting 135411 video frames
[20:41:23] job configuration:
[20:41:23]  * source
[20:41:23]    + /Users/alehel/Movies/Resident_Evil_Extinction/title00.mkv
[20:41:23]    + title 1, chapter(s) 1 to 16
[20:41:23]    + container: matroska
[20:41:23]    + data rate: 448 kbps
[20:41:23]  * destination
[20:41:23]    + /Users/alehel/Desktop/REA.m4v
[20:41:23]    + container: MPEG-4 (.mp4 and .m4v)
[20:41:23]      + 64-bit formatting
[20:41:23]      + chapter markers
[20:41:23]  * video track
[20:41:23]    + decoder: h264
[20:41:23]    + frame rate: 23.981 fps -> constant 23.976 fps
[20:41:23]    + custom anamorphic
[20:41:23]      + storage dimensions: 1920 * 1080 -> 1280 * 720, crop 138/138/0/0, mod 16
[20:41:23]      + pixel aspect ratio: 1727 / 1280
[20:41:23]      + display dimensions: 1727 * 720
[20:41:23]    + encoder: x264
[20:41:23]      + options: cabac=0:ref=2:me=umh:b-adapt=2:weightb=0:weightp=0:vbv-maxrate=9500:vbv-bufsize=9500
[20:41:23]      + quality: 20.00 (RF)
[20:41:23]  * audio track 0
[20:41:23]    + decoder: English (AC3) (5.1 ch) (track 1, id 1)
[20:41:23]      + bitrate: 448 kbps, samplerate: 48000 Hz
[20:41:23]    + mixdown: Dolby Pro Logic II
[20:41:23]    + encoder: ca_aac
[20:41:23]      + bitrate: 160 kbps, samplerate: 48000 Hz
[20:41:23]  * audio track 1
[20:41:23]    + decoder: English (AC3) (5.1 ch) (track 1, id 1)
[20:41:23]      + bitrate: 448 kbps, samplerate: 48000 Hz
[20:41:23]    + AC3 passthrough
[20:41:23] reader: first SCR 0 id 1 DTS 0
[20:41:23] encx264: min-keyint: 24, keyint: 240
[20:41:23] encx264: encoding with stored aspect 1727/1280
[20:41:23] encx264: Encoding at constant RF 20.000000
x264 [info]: using SAR=1727/1280
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
x264 [info]: profile High, level 3.1
No accelerated IMDCT transform found
No accelerated IMDCT transform found
[21:04:37] h264: "Chapter 02" (2) at frame 10855 time 40716900
[21:25:18] h264: "Chapter 03" (3) at frame 19654 time 73746090
[21:40:59] h264: "Chapter 04" (4) at frame 26514 time 99496890
[22:02:35] h264: "Chapter 05" (5) at frame 36295 time 136212300
[22:19:19] h264: "Chapter 06" (6) at frame 43352 time 162702540
[22:26:43] h264: "Chapter 07" (7) at frame 46477 time 174432960
[22:48:54] h264: "Chapter 08" (8) at frame 55958 time 210022290
[23:07:58] h264: "Chapter 09" (9) at frame 63829 time 239568030
[23:27:47] h264: "Chapter 10" (10) at frame 73280 time 275044770
[23:41:27] h264: "Chapter 11" (11) at frame 79698 time 299136330
[00:03:50] h264: "Chapter 12" (12) at frame 88868 time 333558180
[00:27:01] h264: "Chapter 13" (13) at frame 99040 time 371741310
[00:47:23] h264: "Chapter 14" (14) at frame 107488 time 403452990
[01:02:32] h264: "Chapter 15" (15) at frame 113962 time 427754790
[01:19:48] h264: "Chapter 16" (16) at frame 121218 time 454992030
[01:39:50] reader: done. 1 scr changes
[01:39:53] work: average encoding speed for job is 7.557569 fps
[01:39:54] sync: got 135360 frames, 135411 expected
[01:39:54] h264-decoder done: 135360 frames, 0 decoder errors, 0 drops
[01:39:54] render: 135360 frames output, 0 dropped and 0 duped for CFR/PFR
[01:39:54] render: lost time: 0 (0 frames)
[01:39:54] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: frame I:1661  Avg QP:18.19  size: 95467  PSNR Mean Y:45.34 U:48.62 V:49.54 Avg:46.23 Global:45.67
x264 [info]: frame P:49975 Avg QP:21.13  size: 28767  PSNR Mean Y:44.58 U:49.14 V:50.41 Avg:45.65 Global:44.09
x264 [info]: frame B:83724 Avg QP:22.97  size: 11050  PSNR Mean Y:42.88 U:48.13 V:49.33 Avg:44.04 Global:43.29
x264 [info]: consecutive B-frames:  4.1% 28.2% 27.1% 40.6%
x264 [info]: mb I  I16..4: 10.4% 61.1% 28.5%
x264 [info]: mb P  I16..4:  2.7%  9.3%  3.3%  P16..4: 38.6% 18.0%  7.4%  0.0%  0.0%    skip:20.6%
x264 [info]: mb B  I16..4:  0.3%  1.9%  0.6%  B16..8: 46.1%  8.0%  1.0%  direct: 4.0%  skip:38.0%  L0:42.6% L1:52.3% BI: 5.1%
x264 [info]: 8x8 transform intra:61.9% inter:53.0%
x264 [info]: coded y,uvDC,uvAC intra: 76.5% 69.6% 36.9% inter: 17.0% 12.9% 0.9%
x264 [info]: i16 v,h,dc,p: 49% 16%  7% 28%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 10% 21%  7%  9% 11%  8% 10%  8%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 13% 13%  7% 10% 11%  8%  9%  5%
x264 [info]: i8c dc,h,v,p: 53% 16% 23%  8%
x264 [info]: ref P L0: 74.9% 25.1%
x264 [info]: SSIM Mean Y:0.9707024
x264 [info]: PSNR Mean Y:43.538 U:48.510 V:49.733 Avg:44.664 Global:43.593 kb/s:3572.81
[01:39:54] mux: track 0, 135360 frames, 2521279395 bytes, 3572.68 kbps, fifo 32
[01:39:54] mux: track 1, 264641 frames, 116074977 bytes, 164.48 kbps, fifo 256
[01:39:54] mux: track 2, 176427 frames, 316157184 bytes, 448.00 kbps, fifo 256
[01:39:54] libhb: work result = 0

Re: Confused about fps

Posted: Sun May 09, 2010 1:35 am
by Deleted User 11865
alehel wrote:I've just done an encode of the Blu-Ray copy of Resident Evil: Extinction, and I am extremely confused concerning the fps of the video.

I ripped the original BD disk using MakeMKV. VLC tells me that this video has an fps of 23.976. When I load it into handbrake though, handbrake reports it as having 23.98.

Code: Select all

Stream #0.0(eng): Video: h264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
It seemed more logical to me that the video would be 23.976 so I selected this as the framerate instead of "Same as source".
ROFL :lol:

You worry about a .004 difference in reported fps and you're not capable of realizing that with 2 decimal places, 23.976 == 23.98?

Re: Confused about fps

Posted: Tue May 25, 2010 6:13 pm
by schtooping
hey genius read the post ... he's upset because the converted file ends up as 23.81 ... that IS a significant difference.

I am having the same problem using QT from an mkv i made myself thru anydvd,tsmuxer, and mkvmerge. QT etc say the mkv is fine and at 23.976, but whenever i go to encode its final output is at 23.81 ... i have tried messing with the custom fps settings both up and down, using different combinations of bframes, key rate, etc, and other encoding formats, mov, mp4, x264, h264, x264encoder... and i get the same result (actually its 24.39 if i choose the custom fps as 24.1 or higher)... very annoying.... in a 3 minute clip i lose 2.5 seconds when remuxed back into mkv at the right fps... which even in that short time results in VERY noticeable sync issues.

i know its not your problem handbrake people, but i did a google search for the fps and got this post, so i thought i'd comment ( i use handbrake often, as you can see i already had an account).

PS im also field shifting or whatever, changing the original frame rate... the original is at ntsc, 29.97, but im converting it to be joined to another clip that runs at 23.976.