jbrjake wrote:...and are you going to test it without b-frames? That's what I was implying you should do by reminding you that using b-frames can confuse the FPS calculation in QT....
OK, here's the log:
Code: Select all
HandBrake Activity Log for /Users/tim/Desktop/BigBuckBunny.mp4: 2009-03-30 19:30:32 +0200
Handbrake Version: 0.9.3 (2008112300)
[19:30:32] macgui: Rip: Pending queue count is 0
[19:30:32] macgui: Rip: No pending jobs, so sending this one to doAddToQueue
[19:30:32] macgui: Rip: Going right to performNewQueueScan
[19:30:32] macgui: scanning specifically for title: 1
[19:30:32] macgui: performNewQueueScan currentQueueEncodeIndex is: 0
[19:30:32] hb_scan: path=/Users/tim/Desktop/BigBuckBunny.mkv, title_index=1
[19:30:32] scan: trying to open with libdvdread
[19:30:32] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska, from '/Users/tim/Desktop/BigBuckBunny.mkv':
Duration: 00:09:56.52, start: 0.000000, bitrate: N/A
Stream #0.0: Audio: aac, 48000 Hz, stereo, s16
Stream #0.1: Video: h264, yuv420p, 1920x1080, 24.00 tb(r)
[19:30:33] scan: decoding previews for title 1
[19:30:34] scan: 10 previews, 1920x1080, 24.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[19:30:34] scan: title (0) job->width:1936, job->height:1088
[19:30:34] libhb: scan thread found 1 valid title(s)
[19:30:34] macgui: ScanDone state received from fQueueEncodeLibhb
[19:30:34] macgui: processNewQueueEncode title list is: 1
[19:30:34] macgui: Preset: Custom
[19:30:34] macgui: processNewQueueEncode number of passes expected is: 1
[19:30:34] macgui: prepareJob exiting
[19:30:34] 1 job(s) to process
[19:30:34] starting job
[19:30:34] job configuration:
[19:30:34] * source
[19:30:34] + /Users/tim/Desktop/BigBuckBunny.mkv
[19:30:34] + title 1, chapter(s) 1 to 1
[19:30:34] + container: matroska
[19:30:34] * destination
[19:30:34] + /Users/tim/Desktop/BigBuckBunny.mp4
[19:30:34] + container: MPEG-4 (.mp4 and .m4v)
[19:30:34] * video track
[19:30:34] + decoder: h264
[19:30:34] + frame rate: same as source (around 24.000 fps)
[19:30:34] + strict anamorphic
[19:30:34] + storage dimensions: 1920 * 1080 -> 1920 * 1080, crop 0/0/0/0
[19:30:34] + pixel aspect ratio: 1 / 1
[19:30:34] + display dimensions: 1920 * 1080
[19:30:34] + encoder: x264
[19:30:34] + options: ref=2:me=umh
[19:30:34] + quality: 0.60
[19:30:34] * audio track 0
[19:30:34] + decoder: Unknown (AAC) (track 1, id 0)
[19:30:34] + mixdown: Stereo
[19:30:34] + encoder: faac
[19:30:34] + bitrate: 128 kbps, samplerate: 48000 Hz
[19:30:34] dvd: not a dvd - trying as a stream/file instead
[19:30:34] reader: first SCR 0
[19:30:34] encx264: keyint-min: 25, keyint-max: 241
[19:30:34] encx264: encoding with stored aspect 1/1
[19:30:34] encx264: Encoding at constant RF 20.400000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
x264 [info]: profile Main, level 4.0
[19:30:34] sync: expecting 14340 video frames
[19:30:34] sync: adding 171 ms of silence to audio 0 start 15390, next 0
[20:10:21] reader: done. 1 scr changes
[20:10:55] sync: got 14314 frames, 14340 expected
[20:10:55] work: average encoding speed for job is 5.913789 fps
[20:10:58] h264-decoder done: 14315 frames, 0 decoder errors, 0 drops
[20:10:58] render: lost time: 0 (0 frames)
[20:10:58] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: slice I:146 Avg QP:13.37 size:252930 PSNR Mean Y:51.61 U:56.36 V:57.15 Avg:52.64 Global:50.35
x264 [info]: slice P:14168 Avg QP:16.56 size: 26152 PSNR Mean Y:47.70 U:52.67 V:53.37 Avg:48.74 Global:46.57
x264 [info]: mb I I16..4: 25.5% 0.0% 74.5%
x264 [info]: mb P I16..4: 2.3% 0.0% 3.1% P16..4: 37.9% 7.0% 5.0% 0.0% 0.0% skip:44.7%
x264 [info]: ref P L0 75.3% 24.7%
x264 [info]: SSIM Mean Y:0.9920305
x264 [info]: PSNR Mean Y:47.745 U:52.709 V:53.406 Avg:48.778 Global:46.596 kb/s:5465.34
[20:10:58] aac-decoder done: 0 frames, 0 decoder errors, 0 drops
[20:10:58] libhb: work result = 0
Without b-frames, QuickTime reports the file as 24.00 fps.
jbrjake wrote:I'm still not sure what this bug thread is a*bout*. What is the problem here? Is your output not playing correctly? If not, what are you concerned about?
I posted in this thread because it seemed related to what I was experiencing (weird fps being reported). Also, after the "test" I did with JES Deinterlacer, I was worried that maybe HandBrake was actually adding frames to the files it created (although, being QuickTime-based, JES Deinterlacer was probably just confused like QuickTime appears to be).
I did notice, however, that encoding with same as source fps and b-frames may sometimes unnecessarily increase the bitrate.
I did two more encodes of Big Buck Bunny: one with b-frames and constant 24 fps, and one without b-frames with constant 24 fps. So now I have 4 encodes of Big Buck Bunny to compare:
1) Constant 24 fps & no b-frames
Log:
Code: Select all
HandBrake Activity Log for /Users/tim/Desktop/BigBuckBunny 24 fps nobframes.mp4: 2009-03-30 21:46:02 +0200
Handbrake Version: 0.9.3 (2008112300)
[21:46:02] macgui: Rip: Pending queue count is 0
[21:46:02] macgui: Rip: No pending jobs, so sending this one to doAddToQueue
[21:46:02] macgui: Rip: Going right to performNewQueueScan
[21:46:02] macgui: scanning specifically for title: 1
[21:46:02] macgui: performNewQueueScan currentQueueEncodeIndex is: 1
[21:46:02] hb_scan: path=/Users/tim/Movies/BigBuckBunny.mkv, title_index=1
[21:46:02] scan: trying to open with libdvdread
[21:46:02] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska, from '/Users/tim/Movies/BigBuckBunny.mkv':
Duration: 00:09:56.52, start: 0.000000, bitrate: N/A
Stream #0.0: Audio: aac, 48000 Hz, stereo, s16
Stream #0.1: Video: h264, yuv420p, 1920x1080, 24.00 tb(r)
[21:46:02] scan: decoding previews for title 1
[21:46:04] scan: 10 previews, 1920x1080, 24.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[21:46:04] scan: title (0) job->width:1936, job->height:1088
[21:46:04] libhb: scan thread found 1 valid title(s)
[21:46:04] macgui: currentScanCount received from fQueueEncodeLibhb
[21:46:04] macgui: ScanDone state received from fQueueEncodeLibhb
[21:46:04] macgui: processNewQueueEncode title list is: 1
[21:46:04] macgui: Preset: Custom
[21:46:04] macgui: processNewQueueEncode number of passes expected is: 1
[21:46:04] macgui: prepareJob exiting
[21:46:04] 1 job(s) to process
[21:46:04] starting job
[21:46:04] job configuration:
[21:46:04] * source
[21:46:04] + /Users/tim/Movies/BigBuckBunny.mkv
[21:46:04] + title 1, chapter(s) 1 to 1
[21:46:04] + container: matroska
[21:46:04] * destination
[21:46:04] + /Users/tim/Desktop/BigBuckBunny 24 fps nobframes.mp4
[21:46:04] + container: MPEG-4 (.mp4 and .m4v)
[21:46:04] * video track
[21:46:04] + decoder: h264
[21:46:04] + frame rate: 24.000 fps -> constant 24.000 fps
[21:46:04] + strict anamorphic
[21:46:04] + storage dimensions: 1920 * 1080 -> 1920 * 1080, crop 0/0/0/0
[21:46:04] + pixel aspect ratio: 1 / 1
[21:46:04] + display dimensions: 1920 * 1080
[21:46:04] + encoder: x264
[21:46:04] + options: ref=2:me=umh
[21:46:04] + quality: 0.60
[21:46:04] * audio track 0
[21:46:04] + decoder: Unknown (AAC) (track 1, id 0)
[21:46:04] + mixdown: Stereo
[21:46:04] + encoder: faac
[21:46:04] + bitrate: 128 kbps, samplerate: 48000 Hz
[21:46:04] dvd: not a dvd - trying as a stream/file instead
[21:46:04] reader: first SCR 0
[21:46:04] encx264: keyint-min: 25, keyint-max: 241
[21:46:04] encx264: encoding with stored aspect 1/1
[21:46:04] encx264: Encoding at constant RF 20.400000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 PHADD SSE4.1 Cache64
x264 [info]: profile Main, level 4.0
[21:46:04] sync: expecting 14340 video frames
[21:46:04] sync: adding 171 ms of silence to audio 0 start 15390, next 0
[22:16:04] reader: done. 1 scr changes
[22:16:29] sync: got 14314 frames, 14340 expected
[22:16:29] work: average encoding speed for job is 7.845747 fps
[22:16:31] h264-decoder done: 14315 frames, 0 decoder errors, 0 drops
[22:16:31] render: lost time: 0 (0 frames)
[22:16:31] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: slice I:146 Avg QP:13.37 size:252930 PSNR Mean Y:51.61 U:56.36 V:57.15 Avg:52.64 Global:50.35
x264 [info]: slice P:14168 Avg QP:16.56 size: 26152 PSNR Mean Y:47.70 U:52.67 V:53.37 Avg:48.74 Global:46.57
x264 [info]: mb I I16..4: 25.5% 0.0% 74.5%
x264 [info]: mb P I16..4: 2.3% 0.0% 3.1% P16..4: 37.9% 7.0% 5.0% 0.0% 0.0% skip:44.7%
x264 [info]: ref P L0 75.3% 24.7%
x264 [info]: SSIM Mean Y:0.9920305
x264 [info]: PSNR Mean Y:47.745 U:52.709 V:53.406 Avg:48.778 Global:46.596 kb/s:5465.34
[22:16:31] aac-decoder done: 0 frames, 0 decoder errors, 0 drops
[22:16:31] libhb: work result = 0
2) Same as source & no b-frames (first log in this post)
3) Constant 24 fps & 2 b-frames
Log:
Code: Select all
HandBrake Activity Log for /Users/tim/Desktop/BigBuckBunny Constant 24 fps.mp4: 2009-03-29 13:52:34 +0200
Handbrake Version: 0.9.3 (2008112300)
[13:52:34] macgui: Rip: Pending queue count is 0
[13:52:34] macgui: Rip: No pending jobs, so sending this one to doAddToQueue
[13:52:34] macgui: Rip: Going right to performNewQueueScan
[13:52:34] macgui: scanning specifically for title: 1
[13:52:34] macgui: performNewQueueScan currentQueueEncodeIndex is: 0
[13:52:34] hb_scan: path=/Users/tim/Movies/BigBuckBunny.mkv, title_index=1
[13:52:34] scan: trying to open with libdvdread
[13:52:34] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska, from '/Users/tim/Movies/BigBuckBunny.mkv':
Duration: 00:09:56.52, start: 0.000000, bitrate: N/A
Stream #0.0: Audio: aac, 48000 Hz, stereo, s16
Stream #0.1: Video: h264, yuv420p, 1920x1080, 24.00 tb(r)
[13:52:34] scan: decoding previews for title 1
[13:52:35] scan: 10 previews, 1920x1080, 24.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[13:52:35] scan: title (0) job->width:1936, job->height:1088
[13:52:35] libhb: scan thread found 1 valid title(s)
[13:52:36] macgui: ScanDone state received from fQueueEncodeLibhb
[13:52:36] macgui: processNewQueueEncode title list is: 1
[13:52:36] macgui: Preset: Custom
[13:52:36] macgui: processNewQueueEncode number of passes expected is: 1
[13:52:36] macgui: prepareJob exiting
[13:52:36] 1 job(s) to process
[13:52:36] starting job
[13:52:36] job configuration:
[13:52:36] * source
[13:52:36] + /Users/tim/Movies/BigBuckBunny.mkv
[13:52:36] + title 1, chapter(s) 1 to 1
[13:52:36] + container: matroska
[13:52:36] * destination
[13:52:36] + /Users/tim/Desktop/BigBuckBunny Constant 24 fps.mp4
[13:52:36] + container: MPEG-4 (.mp4 and .m4v)
[13:52:36] * video track
[13:52:36] + decoder: h264
[13:52:36] + frame rate: 24.000 fps -> constant 24.000 fps
[13:52:36] + strict anamorphic
[13:52:36] + storage dimensions: 1920 * 1080 -> 1920 * 1080, crop 0/0/0/0
[13:52:36] + pixel aspect ratio: 1 / 1
[13:52:36] + display dimensions: 1920 * 1080
[13:52:36] + encoder: x264
[13:52:36] + options: ref=2:bframes=2:me=umh
[13:52:36] + quality: 0.60
[13:52:36] * audio track 0
[13:52:36] + decoder: Unknown (AAC) (track 1, id 0)
[13:52:36] + mixdown: Stereo
[13:52:36] + encoder: faac
[13:52:36] + bitrate: 128 kbps, samplerate: 48000 Hz
[13:52:36] dvd: not a dvd - trying as a stream/file instead
[13:52:36] reader: first SCR 0
[13:52:36] encx264: keyint-min: 25, keyint-max: 241
[13:52:36] encx264: encoding with stored aspect 1/1
[13:52:36] encx264: Encoding at constant RF 20.400000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 PHADD SSE4.1 Cache64
x264 [info]: profile Main, level 4.0
[13:52:36] sync: expecting 14340 video frames
[13:52:36] sync: adding 171 ms of silence to audio 0 start 15390, next 0
[14:22:40] reader: done. 1 scr changes
[14:23:05] sync: got 14314 frames, 14340 expected
[14:23:05] work: average encoding speed for job is 7.824080 fps
[14:23:09] h264-decoder done: 14315 frames, 0 decoder errors, 0 drops
[14:23:09] render: lost time: 0 (0 frames)
[14:23:09] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: slice I:146 Avg QP:14.25 size:230220 PSNR Mean Y:50.91 U:55.86 V:56.69 Avg:51.97 Global:49.76
x264 [info]: slice P:5509 Avg QP:16.39 size: 39937 PSNR Mean Y:47.81 U:53.00 V:53.69 Avg:48.87 Global:46.92
x264 [info]: slice B:8659 Avg QP:18.32 size: 10710 PSNR Mean Y:47.12 U:52.37 V:53.12 Avg:48.20 Global:46.46
x264 [info]: consecutive B-frames: 5.7% 10.7% 83.7%
x264 [info]: mb I I16..4: 25.6% 0.0% 74.4%
x264 [info]: mb P I16..4: 4.7% 0.0% 6.8% P16..4: 37.5% 9.5% 6.2% 0.0% 0.0% skip:35.4%
x264 [info]: mb B I16..4: 1.7% 0.0% 0.0% B16..8: 20.0% 1.4% 1.0% direct: 9.0% skip:66.9% L0:40.0% L1:51.2% BI: 8.9%
x264 [info]: ref P L0 81.1% 18.9%
x264 [info]: SSIM Mean Y:0.9916316
x264 [info]: PSNR Mean Y:47.423 U:52.651 V:53.374 Avg:48.498 Global:46.656 kb/s:4645.96
[14:23:09] aac-decoder done: 0 frames, 0 decoder errors, 0 drops
[14:23:09] libhb: work result = 0
4) Same as source & 2 b-frames (log can be found in my previous post)
All other settings should be the same (60% quality, 128 Kbps AAC, ref=2:me=umh etc.).
File (1) gets reported by QuickTime as "24 fps".
From log:
Code: Select all
x264 [info]: PSNR Mean Y:47.745 U:52.709 V:53.406 Avg:48.778 Global:46.596 kb/s:5465.34
File (2) gets reported by QuickTime as "24.00 fps".
From log:
Code: Select all
x264 [info]: PSNR Mean Y:47.745 U:52.709 V:53.406 Avg:48.778 Global:46.596 kb/s:5465.34
Here, the only apparent difference is that QuickTime reports 24.00 fps instead of 24 for the same as source encode. Other than that, choosing constant 24 fps instead of same as source doesn't appear to have any obvious effect.
File (3) gets reported by QuickTime as "24 fps".
From log:
Code: Select all
x264 [info]: PSNR Mean Y:47.423 U:52.651 V:53.374 Avg:48.498 Global:46.656 kb/s:4645.96
Here it appears that b-frames help reduce the bitrate (FWIW).
Finally, file (4) gets reported by QuickTime as "40.00 fps".
From log:
Code: Select all
x264 [info]: PSNR Mean Y:48.687 U:53.358 V:54.037 Avg:49.681 Global:47.781 kb/s:4204.25
Now here's the interesting part. While for files (1), (2) and (3), the bitrate found in the encode logs matches what's reported by QuickTime and MediaInfo, for file (4), this is not the case. I mean, the bitrate is nowhere near 4204.25 Kbps; in fact, it's 7007 Kbps (according to MediaInfo - QuickTime reports 7142 Kbps but that includes the audio). The size on disk corresponds to the MediaInfo- and QuickTime-reported bitrate.
At first I though I got my logs and encodes mixed up, but I double checked and triple checked, and the log (the one in my previous post of Sat Mar 28, 2009 12:40 am) corresponds to the file that's 7007 Kbps. I'll run another encode soon with the same settings, just to be sure…