interlaced source problem - jerky playback

Support for HandBrake on Linux, Solaris, and other Unix-like platforms
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
graysky
Regular User
Posts: 79
Joined: Wed Nov 26, 2008 9:55 pm

interlaced source problem - jerky playback

Post by graysky »

I have an NTSC, interlaced, 29.97 DVD source that I'd like to encode w/ HB 0.93 under Ubuntu 8.10. I checked both the 'Detelecine' and 'Decomb' check boxes and encoded to 23.976 fps. My resulting encode is best described as jerky or simply, not smooth (log attached at the end of the post). Since I've never dealt with interlaced sources in HB, I first loaded it up under MeGUI (Windows) and allowed it to auto detect the source. It flagged it as "Film" and suggested I use the "TIVTC" deinterlacing filter with "Varying field order." Below is the avisynth script it created.

Code: Select all

global MeGUI_darx = 16
global MeGUI_dary = 9
DGDecode_mpeg2source("D:\work_inbox\VTS_01_PGC_01_1.d2v", info=3)
ColorMatrix(hints=true, interlaced=true, threads=0)
tfm(order=-1).tdecimate()
I ran the encode in MeGUI and found the resulting file to playback smoothly without the jerky feel to it. The above script generated a 23.976 fps file by the way. Which check boxes in HB would replicate these settings?

Here is the log from my HB encode that resulting in a jerky file:

Code: Select all

Handbrake Version: 0.9.3 (2008121800)
[03:41:57] hb_scan: path=/dev/scd0, title_index=3
[03:41:57] scan: trying to open with libdvdread
[03:41:57] scan: DVD has 5 title(s)
[03:41:57] scan: scanning title 3
[03:41:57] scan: opening IFO for VTS 3
[03:41:57] pgc_id: 1, pgn: 1: pgc: 0x24b1820
[03:41:57] scan: vts=3, ttn=1, cells=0->7, blocks=0->1256809, 1256810 blocks
[03:41:57] scan: duration is 00:55:37 (3337276 ms)
[03:41:57] scan: checking audio 1
[03:41:57] scan: id=80bd, lang=English (AC3), 3cc=eng ext=0
[03:41:57] scan: checking audio 2
[03:41:57] scan: id=81bd, lang=English (AC3), 3cc=eng ext=0
[03:41:57] scan: checking audio 3
[03:41:57] scan: id=82bd, lang=Espanol (AC3), 3cc=spa ext=0
[03:41:57] scan: title 3 has 8 chapters
[03:41:57] scan: chap 1 c=0->0, b=0->235339 (235340), 598058 ms
[03:41:57] scan: chap 2 c=1->1, b=235340->500962 (265623), 652339 ms
[03:41:57] scan: chap 3 c=2->2, b=500963->681285 (180323), 442043 ms
[03:41:57] scan: chap 4 c=3->3, b=681286->850241 (168956), 477146 ms
[03:41:57] scan: chap 5 c=4->4, b=850242->1057177 (206936), 613225 ms
[03:41:57] scan: chap 6 c=5->5, b=1057178->1243676 (186499), 494048 ms
[03:41:57] scan: chap 7 c=6->6, b=1243677->1256805 (13129), 60238 ms
[03:41:57] scan: chap 8 c=7->7, b=1256806->1256809 (4), 176 ms
[03:41:57] scan: aspect = 0
[03:41:57] scan: decoding previews for title 3
[03:41:57] scan: audio 0x81bd: AC-3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch)
[03:41:57] scan: audio 0x80bd: AC-3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch)
[03:41:57] scan: audio 0x82bd: AC-3, rate=48000Hz, bitrate=192000 Espanol (AC3) (2.0 ch)
[03:41:57] scan: content PAR gives wrong aspect 2.37; using container aspect 1.78
[03:41:57] scan: 10 previews, 720x480, 29.970 fps, autocrop = 0/0/2/0, aspect 16:9, PAR 853:720
[03:41:57] scan: title (0) job->width:720, job->height:400
[03:41:57] libhb: scan thread found 1 valid title(s)
[03:41:57] lingui: Modified Custom Preset: test
[03:41:57] 2 job(s) to process
[03:41:57] starting job
[03:41:57] job configuration:
[03:41:57]  * source
[03:41:57]    + /dev/scd0
[03:41:57]    + title 3, chapter(s) 1 to 1
[03:41:57]  * destination
[03:41:57]    + /media/D/detelecine.mkv
[03:41:57]    + container: Matroska (.mkv)
[03:41:57]      + chapter markers
[03:41:57]  * video track
[03:41:57]    + decoder: mpeg2
[03:41:57]      + bitrate 7500 kbps
[03:41:57]    + frame rate: 29.970 fps -> constant 23.976 fps
[03:41:57]    + loose anamorphic
[03:41:57]      + storage dimensions: 720 * 480 -> 720 * 480, crop 0/0/0/0
[03:41:57]      + pixel aspect ratio: 853 / 720
[03:41:57]      + display dimensions: 853 * 480
[03:41:57]    + filter
[03:41:57]      + Detelecine (pullup) (default settings)
[03:41:57]    + encoder: x264
[03:41:57]      + options: ref=5:mixed-refs:bframes=6:weightb:direct=auto:b-pyramid:me=umh:subme=9:analyse=all:8x8dct:no-fast-pskip:psy-rd=1,1:merange=24:ref=1:subme=1:me=dia:analyse=none:trellis=0:no-fast-pskip=0:8x8dct=0:weightb=0
[03:41:57]      + bitrate: 2172 kbps, pass: 1
[03:41:57]  * audio track 0
[03:41:57]    + decoder: English (AC3) (2.0 ch) (track 1, id 80bd)
[03:41:57]      + bitrate: 192 kbps, samplerate: 48000 Hz
[03:41:57]    + mixdown: Stereo
[03:41:57]    + dynamic range compression: 1.500000
[03:41:57]    + encoder: faac
[03:41:57]      + bitrate: 96 kbps, samplerate: 48000 Hz
[03:41:57] encx264: keyint-min: 24, keyint-max: 240
[03:41:57] encx264: encoding with stored aspect 853/720
x264 [info]: using SAR=853/720
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 PHADD SSE4.1 Cache64
x264 [info]: profile Main, level 3.0
No accelerated IMDCT transform found
[03:41:57] sync: expecting 14363 video frames
[03:41:57] reader: first SCR 146
[03:41:57] mpeg2: "Chapter  1" (1) at frame 0 time 3003
[03:41:57] sync: first pts is 3003
[03:41:58] sync: audio 0 time went backwards 0 ms, dropped 1 frames (next 17280, current 17280)
[03:41:58] sync: video time didn't advance - dropped 1 frames (delta 30 ms, current 39039, next 39290, dur 251)
[03:43:31] reader: end of chapter 1 (media 1) reached at media chapter 2
[03:43:31] reader: done. 1 scr changes
[03:43:31] sync: got 14349 frames, 14363 expected
[03:43:31] sync: 3588 frames dropped, 1 duplicated
[03:43:31] work: average encoding speed for job is 152.659271 fps
[03:43:32] mpeg2 done: 17938 frames
[03:43:32] render: lost time: 0 (0 frames)
[03:43:32] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: slice I:170   Avg QP:15.03  size: 39816  PSNR Mean Y:48.46 U:50.78 V:51.76 Avg:49.13 Global:48.11
x264 [info]: slice P:7857  Avg QP:16.97  size: 15429  PSNR Mean Y:45.40 U:47.69 V:48.72 Avg:46.02 Global:45.30
x264 [info]: slice B:6322  Avg QP:18.21  size:  5810  PSNR Mean Y:45.04 U:47.72 V:48.59 Avg:45.57 Global:44.38
x264 [info]: consecutive B-frames: 40.1% 11.0%  4.0%  8.9%  9.9% 24.2%  2.0%
x264 [info]: mb I  I16..4: 24.3%  0.0% 75.7%
x264 [info]: mb P  I16..4: 20.9%  0.0%  0.0%  P16..4: 56.4%  0.0%  0.0%  0.0%  0.0%    skip:22.7%
x264 [info]: mb B  I16..4:  4.1%  0.0%  0.0%  B16..8: 32.3%  0.0%  0.0%  direct:27.1%  skip:36.5%  L0:25.6% L1:54.4% BI:20.1%
x264 [info]: final ratefactor: 20.87
x264 [info]: direct mvs  spatial:99.9%  temporal:0.1%
x264 [info]: SSIM Mean Y:0.9815824
x264 [info]: PSNR Mean Y:45.274 U:47.739 V:48.700 Avg:45.862 Global:44.895 kb/s:2201.88
[03:43:32] starting job
[03:43:32] job configuration:
[03:43:32]  * source
[03:43:32]    + /dev/scd0
[03:43:32]    + title 3, chapter(s) 1 to 1
[03:43:32]  * destination
[03:43:32]    + /media/D/detelecine.mkv
[03:43:32]    + container: Matroska (.mkv)
[03:43:32]      + chapter markers
[03:43:32]  * video track
[03:43:32]    + decoder: mpeg2
[03:43:32]      + bitrate 7500 kbps
[03:43:32]    + frame rate: 29.970 fps -> constant 23.976 fps
[03:43:32]    + loose anamorphic
[03:43:32]      + storage dimensions: 720 * 480 -> 720 * 480, crop 0/0/0/0
[03:43:32]      + pixel aspect ratio: 853 / 720
[03:43:32]      + display dimensions: 853 * 480
[03:43:32]    + filter
[03:43:32]      + Detelecine (pullup) (default settings)
[03:43:32]    + encoder: x264
[03:43:32]      + options: ref=5:mixed-refs:bframes=6:weightb:direct=auto:b-pyramid:me=umh:subme=9:analyse=all:8x8dct:no-fast-pskip:psy-rd=1,1:merange=24
[03:43:32]      + bitrate: 2172 kbps, pass: 2
[03:43:32]  * audio track 0
[03:43:32]    + decoder: English (AC3) (2.0 ch) (track 1, id 80bd)
[03:43:32]      + bitrate: 192 kbps, samplerate: 48000 Hz
[03:43:32]    + mixdown: Stereo
[03:43:32]    + dynamic range compression: 1.500000
[03:43:32]    + encoder: faac
[03:43:32]      + bitrate: 96 kbps, samplerate: 48000 Hz
[03:43:32] encx264: keyint-min: 24, keyint-max: 240
[03:43:32] encx264: encoding with stored aspect 853/720
x264 [info]: using SAR=853/720
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 PHADD SSE4.1 Cache64
[03:43:32] reader: first SCR 146
[03:43:32] mpeg2: "Chapter  1" (1) at frame 0 time 3003
x264 [info]: profile High, level 3.0
No accelerated IMDCT transform found
[03:43:32] sync: expecting 14363 video frames
[03:43:32] sync: first pts is 3003
[03:43:32] sync: video time didn't advance - dropped 1 frames (delta 30 ms, current 39039, next 39290, dur 251)
[03:43:32] sync: audio 0 time went backwards 0 ms, dropped 1 frames (next 17280, current 17280)
[03:52:34] reader: end of chapter 1 (media 1) reached at media chapter 2
[03:52:34] reader: done. 1 scr changes
[03:52:37] sync: got 14349 frames, 14363 expected
[03:52:37] sync: 3588 frames dropped, 1 duplicated
[03:52:37] work: average encoding speed for job is 26.383539 fps
[03:52:39] mpeg2 done: 17938 frames
[03:52:39] render: lost time: 0 (0 frames)
[03:52:39] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: slice I:169   Avg QP:15.04  size: 41302  PSNR Mean Y:49.03 U:51.98 V:52.89 Avg:49.83 Global:48.99
x264 [info]: slice P:7861  Avg QP:16.77  size: 15442  PSNR Mean Y:45.98 U:48.49 V:49.51 Avg:46.67 Global:46.21
x264 [info]: slice B:6319  Avg QP:17.94  size:  5419  PSNR Mean Y:45.45 U:48.36 V:49.24 Avg:46.05 Global:45.14
x264 [info]: consecutive B-frames: 40.1% 11.0%  4.0%  8.8%  9.9% 24.2%  2.0%
x264 [info]: mb I  I16..4:  6.9% 85.9%  7.2%
x264 [info]: mb P  I16..4:  1.3% 15.1%  1.2%  P16..4: 36.0% 18.4% 11.1%  0.4%  0.4%    skip:16.2%
x264 [info]: mb B  I16..4:  0.1%  1.0%  0.1%  B16..8: 41.1%  2.0%  3.3%  direct: 6.1%  skip:46.3%  L0:33.9% L1:52.9% BI:13.1%
x264 [info]: 8x8 transform  intra:85.9%  inter:59.5%
x264 [info]: direct mvs  spatial:98.9%  temporal:1.1%
x264 [info]: ref P L0  71.9% 11.0%  8.2%  4.8%  4.1%
x264 [info]: ref B L0  73.5% 13.0%  9.9%  3.6%
x264 [info]: ref B L1  93.5%  6.5%
x264 [info]: SSIM Mean Y:0.9837589
x264 [info]: PSNR Mean Y:45.784 U:48.472 V:49.427 Avg:46.436 Global:45.728 kb/s:2173.68
[03:52:39] libhb: work result = 0
Last edited by graysky on Mon Apr 06, 2009 7:07 pm, edited 2 times in total.
User avatar
Rodeo
HandBrake Team
Posts: 12604
Joined: Tue Mar 03, 2009 8:55 pm

Re: interlaced source problem - jerky playback

Post by Rodeo »

You're using detelecine and constant fps simultaneously. According what I read on the HandBrake wiki and on the forums, you should always use "Same as source" fps when enabling detelecine…
graysky
Regular User
Posts: 79
Joined: Wed Nov 26, 2008 9:55 pm

Re: interlaced source problem - jerky playback

Post by graysky »

I can give that a try, but what I don't understand is why the encode that MeGUI generated looks great and is 23.976 fps. If I do as you suggest, the file may be detelecined, but the frame rate will be 29.97, not 23.976. What am I missing?
rhester
Veteran User
Posts: 2888
Joined: Tue Apr 18, 2006 10:24 pm

Re: interlaced source problem - jerky playback

Post by rhester »

If it's detelecined, it won't be 29.97 - it will either be 23.976 (if it is pure/perfectly hard-telecined) or something slightly higher (assuming a VFR source). That's the whole point of detelecining.

Rodney
graysky
Regular User
Posts: 79
Joined: Wed Nov 26, 2008 9:55 pm

Re: interlaced source problem - jerky playback

Post by graysky »

@rhester - I took rodeo's advice and switched framerate to 'same as source' while leaving both 'Detelecine' and 'De-comb' enabled. Is that the correct way to do this? I'm holding off on encoding a batch of these guys until I know I'm doing it correctly.

The resulting file does seem to play without the jerky effect, but because the overall framerate is now ~30 instead of ~24, the overall bitrate is reduced by that factor no? I don't know what to do within HB to get the same resuls as I did in MeGUI.

Here is the log from that encode and also, the output of mediainfo for that file. It is showing a framerate of 29.97.

Code: Select all

Handbrake Version: 0.9.3 (2008121800)
[14:56:11] hb_scan: path=/dev/scd0, title_index=3
[14:56:11] scan: trying to open with libdvdread
[14:56:11] scan: DVD has 5 title(s)
[14:56:11] scan: scanning title 3
[14:56:11] scan: opening IFO for VTS 3
[14:56:11] pgc_id: 1, pgn: 1: pgc: 0x3e826d0
[14:56:11] scan: vts=3, ttn=1, cells=0->7, blocks=0->1256809, 1256810 blocks
[14:56:11] scan: duration is 00:55:37 (3337276 ms)
[14:56:11] scan: checking audio 1
[14:56:11] scan: id=80bd, lang=English (AC3), 3cc=eng ext=0
[14:56:11] scan: checking audio 2
[14:56:11] scan: id=81bd, lang=English (AC3), 3cc=eng ext=0
[14:56:11] scan: checking audio 3
[14:56:11] scan: id=82bd, lang=Espanol (AC3), 3cc=spa ext=0
[14:56:11] scan: title 3 has 8 chapters
[14:56:11] scan: chap 1 c=0->0, b=0->235339 (235340), 598058 ms
[14:56:11] scan: chap 2 c=1->1, b=235340->500962 (265623), 652339 ms
[14:56:11] scan: chap 3 c=2->2, b=500963->681285 (180323), 442043 ms
[14:56:11] scan: chap 4 c=3->3, b=681286->850241 (168956), 477146 ms
[14:56:11] scan: chap 5 c=4->4, b=850242->1057177 (206936), 613225 ms
[14:56:11] scan: chap 6 c=5->5, b=1057178->1243676 (186499), 494048 ms
[14:56:11] scan: chap 7 c=6->6, b=1243677->1256805 (13129), 60238 ms
[14:56:11] scan: chap 8 c=7->7, b=1256806->1256809 (4), 176 ms
[14:56:11] scan: aspect = 0
[14:56:11] scan: decoding previews for title 3
[14:56:11] scan: audio 0x81bd: AC-3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch)
[14:56:11] scan: audio 0x80bd: AC-3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch)
[14:56:11] scan: audio 0x82bd: AC-3, rate=48000Hz, bitrate=192000 Espanol (AC3) (2.0 ch)
[14:56:11] scan: content PAR gives wrong aspect 2.37; using container aspect 1.78
[14:56:11] scan: 10 previews, 720x480, 29.970 fps, autocrop = 0/0/2/0, aspect 16:9, PAR 853:720
[14:56:11] scan: title (0) job->width:720, job->height:400
[14:56:11] libhb: scan thread found 1 valid title(s)
[14:56:12] lingui: Modified Custom Preset: temp
[14:56:12] 2 job(s) to process
[14:56:12] starting job
[14:56:12] job configuration:
[14:56:12]  * source
[14:56:12]    + /dev/scd0
[14:56:12]    + title 3, chapter(s) 1 to 1
[14:56:12]  * destination
[14:56:12]    + /media/D/both_same_as_source.mkv
[14:56:12]    + container: Matroska (.mkv)
[14:56:12]      + chapter markers
[14:56:12]  * video track
[14:56:12]    + decoder: mpeg2
[14:56:12]      + bitrate 7500 kbps
[14:56:12]    + frame rate: 29.970 fps -> variable fps
[14:56:12]    + loose anamorphic
[14:56:12]      + storage dimensions: 720 * 480 -> 720 * 480, crop 0/0/0/0
[14:56:12]      + pixel aspect ratio: 853 / 720
[14:56:12]      + display dimensions: 853 * 480
[14:56:12]    + filters
[14:56:12]      + Detelecine (pullup) (default settings)
[14:56:12]      + Deinterlaces selectively with yadif/mcdeint and lowpass5 blending (default settings)
[14:56:12]    + encoder: x264
[14:56:12]      + options: ref=5:mixed-refs:bframes=6:weightb:direct=auto:b-pyramid:me=umh:subme=9:analyse=all:8x8dct:trellis=1:no-fast-pskip:psy-rd=1,1:merange=24:ref=1:subme=1:me=dia:analyse=none:trellis=0:no-fast-pskip=0:8x8dct=0:weightb=0
[14:56:12]      + bitrate: 2172 kbps, pass: 1
[14:56:12]  * audio track 0
[14:56:12]    + decoder: English (AC3) (2.0 ch) (track 1, id 80bd)
[14:56:12]      + bitrate: 192 kbps, samplerate: 48000 Hz
[14:56:12]    + mixdown: Stereo
[14:56:12]    + dynamic range compression: 1.500000
[14:56:12]    + encoder: faac
[14:56:12]      + bitrate: 96 kbps, samplerate: 48000 Hz
[14:56:12] yadif thread started for segment 0
[14:56:12] yadif thread started for segment 1
[14:56:12] yadif thread started for segment 2
[14:56:12] yadif thread started for segment 3
[14:56:12] decomb thread started for segment 0
[14:56:12] decomb thread started for segment 1
[14:56:12] decomb thread started for segment 2
[14:56:12] decomb thread started for segment 3
[14:56:12] encx264: keyint-min: 30, keyint-max: 300
[14:56:12] encx264: encoding with stored aspect 853/720
x264 [info]: using SAR=853/720
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 PHADD SSE4.1 Cache64
x264 [info]: profile Main, level 3.0
No accelerated IMDCT transform found
[14:56:12] sync: expecting 17953 video frames
[14:56:12] reader: first SCR 146
[14:56:12] mpeg2: "Chapter  1" (1) at frame 0 time 3003
[14:56:12] sync: first pts is 3003
[14:56:12] sync: video time didn't advance - dropped 1 frames (delta 30 ms, current 39039, next 39290, dur 251)
[14:56:12] sync: audio 0 time went backwards 0 ms, dropped 1 frames (next 17280, current 17280)
[14:57:56] reader: end of chapter 1 (media 1) reached at media chapter 2
[14:57:56] reader: done. 1 scr changes
[14:57:56] sync: got 17936 frames, 17953 expected
[14:57:56] work: average encoding speed for job is 171.890198 fps
[14:57:57] mpeg2 done: 17938 frames
[14:57:57] render: lost time: 10288278 (3426 frames)
[14:57:57] render: gained time: 10286778 (13695 frames) (1500 not accounted for)
[14:57:57] render: average dropped frame duration: 3003
x264 [info]: slice I:157   Avg QP:16.20  size: 34493  PSNR Mean Y:47.68 U:50.34 V:51.35 Avg:48.42 Global:47.33
x264 [info]: slice P:6184  Avg QP:18.54  size: 14493  PSNR Mean Y:44.65 U:47.78 V:48.86 Avg:45.40 Global:44.43
x264 [info]: slice B:8165  Avg QP:19.70  size:  4830  PSNR Mean Y:44.21 U:47.08 V:47.98 Avg:44.84 Global:43.67
x264 [info]: consecutive B-frames: 21.5% 18.3%  8.6%  7.6% 11.6% 30.1%  2.3%
x264 [info]: mb I  I16..4: 26.4%  0.0% 73.6%
x264 [info]: mb P  I16..4: 28.5%  0.0%  0.0%  P16..4: 64.9%  0.0%  0.0%  0.0%  0.0%    skip: 6.5%
x264 [info]: mb B  I16..4:  4.3%  0.0%  0.0%  B16..8: 35.6%  0.0%  0.0%  direct:26.3%  skip:33.8%  L0:30.5% L1:53.2% BI:16.3%
x264 [info]: final ratefactor: 21.87
x264 [info]: direct mvs  spatial:99.8%  temporal:0.2%
x264 [info]: SSIM Mean Y:0.9783677
x264 [info]: PSNR Mean Y:44.436 U:47.412 V:48.393 Avg:45.118 Global:44.008 kb/s:2222.69
[14:57:57] decomb: yadif deinterlaced 0 | blend deinterlaced 0 | unfiltered 14509 | total 14509
[14:57:57] starting job
[14:57:57] job configuration:
[14:57:57]  * source
[14:57:57]    + /dev/scd0
[14:57:57]    + title 3, chapter(s) 1 to 1
[14:57:57]  * destination
[14:57:57]    + /media/D/both_same_as_source.mkv
[14:57:57]    + container: Matroska (.mkv)
[14:57:57]      + chapter markers
[14:57:57]  * video track
[14:57:57]    + decoder: mpeg2
[14:57:57]      + bitrate 7500 kbps
[14:57:57]    + frame rate: 29.970 fps -> variable fps
[14:57:57]    + loose anamorphic
[14:57:57]      + storage dimensions: 720 * 480 -> 720 * 480, crop 0/0/0/0
[14:57:57]      + pixel aspect ratio: 853 / 720
[14:57:57]      + display dimensions: 853 * 480
[14:57:57]    + filters
[14:57:57]      + Detelecine (pullup) (default settings)
[14:57:57]      + Deinterlaces selectively with yadif/mcdeint and lowpass5 blending (default settings)
[14:57:57]    + encoder: x264
[14:57:57]      + options: ref=5:mixed-refs:bframes=6:weightb:direct=auto:b-pyramid:me=umh:subme=9:analyse=all:8x8dct:trellis=1:no-fast-pskip:psy-rd=1,1:merange=24
[14:57:57]      + bitrate: 2172 kbps, pass: 2
[14:57:57]  * audio track 0
[14:57:57]    + decoder: English (AC3) (2.0 ch) (track 1, id 80bd)
[14:57:57]      + bitrate: 192 kbps, samplerate: 48000 Hz
[14:57:57]    + mixdown: Stereo
[14:57:57]    + dynamic range compression: 1.500000
[14:57:57]    + encoder: faac
[14:57:57]      + bitrate: 96 kbps, samplerate: 48000 Hz
[14:57:57] yadif thread started for segment 0
[14:57:57] yadif thread started for segment 1
[14:57:57] yadif thread started for segment 2
[14:57:57] yadif thread started for segment 3
[14:57:57] decomb thread started for segment 0
[14:57:57] decomb thread started for segment 1
[14:57:57] decomb thread started for segment 2
[14:57:57] decomb thread started for segment 3
[14:57:57] encx264: keyint-min: 30, keyint-max: 300
[14:57:57] encx264: encoding with stored aspect 853/720
x264 [info]: using SAR=853/720
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 PHADD SSE4.1 Cache64
[14:57:57] reader: first SCR 146
[14:57:57] mpeg2: "Chapter  1" (1) at frame 0 time 3003
x264 [info]: profile High, level 3.0
No accelerated IMDCT transform found
[14:57:57] sync: expecting 17953 video frames
[14:57:57] sync: first pts is 3003
[14:57:57] sync: video time didn't advance - dropped 1 frames (delta 30 ms, current 39039, next 39290, dur 251)
[14:57:57] sync: audio 0 time went backwards 0 ms, dropped 1 frames (next 17280, current 17280)
[15:07:04] reader: end of chapter 1 (media 1) reached at media chapter 2
[15:07:04] reader: done. 1 scr changes
[15:07:07] sync: got 17936 frames, 17953 expected
[15:07:07] work: average encoding speed for job is 32.684650 fps
[15:07:08] mpeg2 done: 17938 frames
[15:07:08] render: lost time: 10288278 (3426 frames)
[15:07:08] render: gained time: 10286778 (13695 frames) (1500 not accounted for)
[15:07:08] render: average dropped frame duration: 3003
x264 [info]: slice I:157   Avg QP:18.39  size: 25326  PSNR Mean Y:45.18 U:51.05 V:52.12 Avg:46.41 Global:45.46
x264 [info]: slice P:6189  Avg QP:20.81  size: 14987  PSNR Mean Y:44.37 U:48.36 V:49.50 Avg:45.29 Global:44.67
x264 [info]: slice B:8160  Avg QP:21.95  size:  4269  PSNR Mean Y:44.02 U:47.57 V:48.53 Avg:44.80 Global:43.96
x264 [info]: consecutive B-frames: 21.5% 18.3%  8.6%  7.6% 11.6% 30.0%  2.3%
x264 [info]: mb I  I16..4: 11.4% 78.7%  9.9%
x264 [info]: mb P  I16..4:  3.1% 10.8%  1.0%  P16..4: 51.1% 16.6% 12.3%  0.2%  0.2%    skip: 4.7%
x264 [info]: mb B  I16..4:  0.1%  0.4%  0.1%  B16..8: 38.7%  1.2%  1.7%  direct: 2.2%  skip:55.5%  L0:40.2% L1:42.0% BI:17.8%
x264 [info]: 8x8 transform  intra:72.9%  inter:82.1%
x264 [info]: direct mvs  spatial:93.4%  temporal:6.6%
x264 [info]: ref P L0  59.0% 19.7%  9.2%  6.2%  5.9%
x264 [info]: ref B L0  70.1% 18.9%  7.2%  3.8%
x264 [info]: ref B L1  95.5%  4.5%
x264 [info]: SSIM Mean Y:0.9780021
x264 [info]: PSNR Mean Y:44.181 U:47.945 V:48.983 Avg:45.025 Global:44.263 kb/s:2174.61
[15:07:08] decomb: yadif deinterlaced 0 | blend deinterlaced 0 | unfiltered 14509 | total 14509
[15:07:08] libhb: work result = 0
Here is the mediainfo output:

Code: Select all

$ mediainfo both_same_as_source.mkv 
General
Complete name                    : both_same_as_source.mkv
Format                           : Matroska
File size                        : 133 MiB
Duration                         : 9mn 58s
Overall bit rate                 : 1 862 Kbps
Writing application              : HandBrake 0.9.3

Video
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : High@L3.0
Format settings, CABAC           : Yes
Format settings, ReFrames        : 5 frames
Muxing mode                      : Container profile=Unknown@3.0
Codec ID                         : V_MPEG4/ISO/AVC
Duration                         : 9mn 57s
Nominal bit rate                 : 2 172 Kbps
Width                            : 720 pixels
Height                           : 480 pixels
Display aspect ratio             : 16/9
Frame rate                       : 29.970 fps
Standard                         : NTSC
Resolution                       : 24 bits
Colorimetry                      : 4:2:0
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.210
Writing library                  : x264 core 65
Encoding settings                : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=9 / psy_rd=1.0:1.0 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-4 / threads=6 / nr=0 / decimate=1 / mbaff=0 / bframes=6 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / keyint=300 / keyint_min=30 / scenecut=40(pre) / rc=2pass / bitrate=2172 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00

Audio
Format                           : AAC
Format/Info                      : Advanced Audio Codec
Format version                   : Version 4
Format profile                   : LC
Format settings, SBR             : No
Codec ID                         : A_AAC
Duration                         : 9mn 58s
Channel(s)                       : 2 channels
Channel positions                : L R
Sampling rate                    : 48.0 KHz
Resolution                       : 16 bits
Language                         : English

Chapters
1                                : 00:00:00.000 Chapter  1
Finally, here is what mplayer says:

Code: Select all

Playing both_same_as_source.mkv.
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: audio (A_AAC), -aid 0, -alang eng
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [avc1]  720x480  24bpp  29.970 fps    0.0 kbps ( 0.0 kbyte/s)
xscreensaver_disable: Could not find XScreenSaver window.
GNOME screensaver disabled
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 720 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 720x480 => 854x480 Planar YV12
rhester
Veteran User
Posts: 2888
Joined: Tue Apr 18, 2006 10:24 pm

Re: interlaced source problem - jerky playback

Post by rhester »

The only way I see you are getting a bitrate of 29.97 with detelecine is if the source is 100% NTSC video (and I've yet to see a source that is _truly_ 100% video).

If you are doing ABR, yes, you will be 'stretching' the available bitrate over more frames, reducing effective bitrate - but if you don't, you're instead dropping actual frames (which is what MeGUI is doing and using smoothing to try to hide that).

Rodney
graysky
Regular User
Posts: 79
Joined: Wed Nov 26, 2008 9:55 pm

Re: interlaced source problem - jerky playback

Post by graysky »

rhester wrote:The only way I see you are getting a bitrate of 29.97 with detelecine is if the source is 100% NTSC video (and I've yet to see a source that is _truly_ 100% video).

If you are doing ABR, yes, you will be 'stretching' the available bitrate over more frames, reducing effective bitrate - but if you don't, you're instead dropping actual frames (which is what MeGUI is doing and using smoothing to try to hide that).

Rodney
OK... I've been use HB to a target size and allowing it to select the bitrate to use (2-pass as you can see). Is the way I'm encoding now correct for this source (i.e. enable decomb, enable detelecine, framerate=same as source)?
rhester
Veteran User
Posts: 2888
Joined: Tue Apr 18, 2006 10:24 pm

Re: interlaced source problem - jerky playback

Post by rhester »

That is correct if the desired output is VFR (and us purists always think it should be, of course ;).

Not knowing what your target playback device is, I'd strongly recommend CQ over target size which favors constant quality (with variable bitrate/size) if you are concerned about visual results. If size is a strong concern, what you're doing now is as good as it gets.

Rodney
graysky
Regular User
Posts: 79
Joined: Wed Nov 26, 2008 9:55 pm

Re: interlaced source problem - jerky playback

Post by graysky »

Thanks for the help. When encoding to a target filesize and doing so as I am (Detelecine/Decomb = on and framerate=same as source [variable] on this same video with source FPS=29.97, interlaced) are erratic filesizes normal? I set the target size to 865 MB but when it finished I was left with a 708 MB file.

Code: Select all

Handbrake Version: 0.9.3 (2008121800)
[18:25:58] hb_scan: path=/dev/scd0, title_index=4
[18:25:58] scan: trying to open with libdvdread
[18:25:58] scan: DVD has 5 title(s)
[18:25:58] scan: scanning title 4
[18:25:58] scan: opening IFO for VTS 4
[18:25:58] pgc_id: 1, pgn: 1: pgc: 0x3bddb00
[18:25:58] scan: vts=4, ttn=1, cells=0->9, blocks=0->1278125, 1278126 blocks
[18:25:58] scan: duration is 00:56:33 (3393066 ms)
[18:25:58] scan: checking audio 1
[18:25:58] scan: id=80bd, lang=English (AC3), 3cc=eng ext=0
[18:25:58] scan: checking audio 2
[18:25:58] scan: id=81bd, lang=English (AC3), 3cc=eng ext=0
[18:25:58] scan: checking audio 3
[18:25:58] scan: id=82bd, lang=Espanol (AC3), 3cc=spa ext=0
[18:25:58] scan: title 4 has 10 chapters
[18:25:58] scan: chap 1 c=0->0, b=0->42342 (42343), 115107 ms
[18:25:58] scan: chap 2 c=1->1, b=42343->74787 (32445), 82049 ms
[18:25:58] scan: chap 3 c=2->2, b=74788->286623 (211836), 497270 ms
[18:25:58] scan: chap 4 c=3->3, b=286624->445736 (159113), 455217 ms
[18:25:58] scan: chap 5 c=4->4, b=445737->667792 (222056), 632534 ms
[18:25:58] scan: chap 6 c=5->5, b=667793->831088 (163296), 430505 ms
[18:25:58] scan: chap 7 c=6->6, b=831089->1053773 (222685), 554497 ms
[18:25:58] scan: chap 8 c=7->7, b=1053774->1265263 (211490), 565445 ms
[18:25:58] scan: chap 9 c=8->8, b=1265264->1278121 (12858), 60261 ms
[18:25:58] scan: chap 10 c=9->9, b=1278122->1278125 (4), 176 ms
[18:25:58] scan: aspect = 0
[18:25:58] scan: decoding previews for title 4
[18:25:58] scan: audio 0x81bd: AC-3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch)
[18:25:58] scan: audio 0x80bd: AC-3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch)
[18:25:58] scan: audio 0x82bd: AC-3, rate=48000Hz, bitrate=192000 Espanol (AC3) (2.0 ch)
[18:25:58] scan: content PAR gives wrong aspect 2.37; using container aspect 1.78
[18:25:58] scan: 10 previews, 720x480, 29.970 fps, autocrop = 0/0/2/0, aspect 16:9, PAR 853:720
[18:25:58] scan: title (0) job->width:720, job->height:400
[18:25:58] libhb: scan thread found 1 valid title(s)
[18:25:59] lingui: Custom Preset: test
[18:25:59] 2 job(s) to process
[18:25:59] starting job
[18:25:59] job configuration:
[18:25:59]  * source
[18:25:59]    + /dev/scd0
[18:25:59]    + title 4, chapter(s) 1 to 10
[18:25:59]  * destination
[18:25:59]    + /media/D/test.mkv
[18:25:59]    + container: Matroska (.mkv)
[18:25:59]      + chapter markers
[18:25:59]  * video track
[18:25:59]    + decoder: mpeg2
[18:25:59]      + bitrate 7500 kbps
[18:25:59]    + frame rate: 29.970 fps -> variable fps
[18:25:59]    + loose anamorphic
[18:25:59]      + storage dimensions: 720 * 480 -> 720 * 480, crop 0/0/0/0
[18:25:59]      + pixel aspect ratio: 853 / 720
[18:25:59]      + display dimensions: 853 * 480
[18:25:59]    + filters
[18:25:59]      + Detelecine (pullup) (default settings)
[18:25:59]      + Deinterlaces selectively with yadif/mcdeint and lowpass5 blending (default settings)
[18:25:59]    + encoder: x264
[18:25:59]      + options: ref=5:mixed-refs:bframes=6:weightb:direct=auto:b-pyramid:me=umh:subme=9:analyse=all:8x8dct:trellis=1:no-fast-pskip:psy-rd=1,1:merange=24:ref=1:subme=1:me=dia:analyse=none:trellis=0:no-fast-pskip=0:8x8dct=0:weightb=0
[18:25:59]      + bitrate: 2038 kbps, pass: 1
[18:25:59]  * audio track 0
[18:25:59]    + decoder: English (AC3) (2.0 ch) (track 1, id 80bd)
[18:25:59]      + bitrate: 192 kbps, samplerate: 48000 Hz
[18:25:59]    + mixdown: Stereo
[18:25:59]    + dynamic range compression: 1.500000
[18:25:59]    + encoder: faac
[18:25:59]      + bitrate: 96 kbps, samplerate: 48000 Hz
[18:25:59] yadif thread started for segment 0
[18:25:59] yadif thread started for segment 1
[18:25:59] yadif thread started for segment 2
[18:25:59] yadif thread started for segment 3
[18:25:59] decomb thread started for segment 0
[18:25:59] decomb thread started for segment 1
[18:25:59] decomb thread started for segment 2
[18:25:59] decomb thread started for segment 3
[18:25:59] encx264: keyint-min: 30, keyint-max: 300
[18:25:59] encx264: encoding with stored aspect 853/720
x264 [info]: using SAR=853/720
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 PHADD SSE4.1 Cache64
x264 [info]: profile Main, level 3.0
No accelerated IMDCT transform found
[18:25:59] sync: expecting 101720 video frames
[18:25:59] reader: first SCR 146
[18:25:59] mpeg2: "Chapter  1" (1) at frame 0 time 3003
[18:25:59] sync: first pts is 3003
[18:26:19] mpeg2: "Chapter  2" (2) at frame 3471 time 10426416
[18:26:32] mpeg2: "Chapter  3" (3) at frame 5941 time 17843826
[18:27:59] mpeg2: "Chapter  4" (4) at frame 20852 time 62621559
[18:29:18] mpeg2: "Chapter  5" (5) at frame 34502 time 103612509
[18:31:08] mpeg2: "Chapter  6" (6) at frame 53469 time 160570410
[18:32:22] mpeg2: "Chapter  7" (7) at frame 66378 time 199336137
[18:33:59] mpeg2: "Chapter  8" (8) at frame 83005 time 249267018
[18:35:36] mpeg2: "Chapter  9" (9) at frame 99970 time 300212913
[18:35:46] dvd: end of cell 9 at block 1278122
[18:35:46] reader: done. 1 scr changes
[18:35:46] mpeg2: "Chapter 10" (10) at frame 101777 time 305639334
[18:35:46] 3395.992432s: Video -> Film
[18:35:46] sync: got 101777 frames, 101720 expected
[18:35:46] work: average encoding speed for job is 173.318161 fps
[18:35:47] mpeg2 done: 101778 frames
[18:35:47] render: lost time: 58765707 (19569 frames)
[18:35:47] render: gained time: 58765707 (78200 frames) (0 not accounted for)
[18:35:47] render: average dropped frame duration: 3003
x264 [info]: slice I:883   Avg QP:16.22  size: 34770  PSNR Mean Y:47.86 U:49.20 V:50.15 Avg:48.33 Global:46.98
x264 [info]: slice P:30639 Avg QP:17.90  size: 14891  PSNR Mean Y:45.05 U:45.89 V:46.84 Avg:45.38 Global:44.51
x264 [info]: slice B:50682 Avg QP:19.87  size:  4252  PSNR Mean Y:44.10 U:44.93 V:45.98 Avg:44.43 Global:43.64
x264 [info]: consecutive B-frames: 14.1% 19.2%  9.5%  9.2% 15.5% 30.1%  2.3%
x264 [info]: mb I  I16..4: 23.4%  0.0% 76.6%
x264 [info]: mb P  I16..4: 26.3%  0.0%  0.0%  P16..4: 69.9%  0.0%  0.0%  0.0%  0.0%    skip: 3.8%
x264 [info]: mb B  I16..4:  4.1%  0.0%  0.0%  B16..8: 36.8%  0.0%  0.0%  direct:27.0%  skip:32.0%  L0:30.9% L1:54.7% BI:14.3%
x264 [info]: final ratefactor: 21.86
x264 [info]: direct mvs  spatial:99.7%  temporal:0.3%
x264 [info]: SSIM Mean Y:0.9799789
x264 [info]: PSNR Mean Y:44.498 U:45.338 V:46.344 Avg:44.830 Global:43.972 kb/s:2048.71
[18:35:47] decomb: yadif deinterlaced 0 | blend deinterlaced 23 | unfiltered 82184 | total 82207
[18:35:47] starting job
[18:35:47] job configuration:
[18:35:47]  * source
[18:35:47]    + /dev/scd0
[18:35:47]    + title 4, chapter(s) 1 to 10
[18:35:47]  * destination
[18:35:47]    + /media/D/test.mkv
[18:35:47]    + container: Matroska (.mkv)
[18:35:47]      + chapter markers
[18:35:47]  * video track
[18:35:47]    + decoder: mpeg2
[18:35:47]      + bitrate 7500 kbps
[18:35:47]    + frame rate: 29.970 fps -> variable fps
[18:35:47]    + loose anamorphic
[18:35:47]      + storage dimensions: 720 * 480 -> 720 * 480, crop 0/0/0/0
[18:35:47]      + pixel aspect ratio: 853 / 720
[18:35:47]      + display dimensions: 853 * 480
[18:35:47]    + filters
[18:35:47]      + Detelecine (pullup) (default settings)
[18:35:47]      + Deinterlaces selectively with yadif/mcdeint and lowpass5 blending (default settings)
[18:35:47]    + encoder: x264
[18:35:47]      + options: ref=5:mixed-refs:bframes=6:weightb:direct=auto:b-pyramid:me=umh:subme=9:analyse=all:8x8dct:trellis=1:no-fast-pskip:psy-rd=1,1:merange=24
[18:35:47]      + bitrate: 2038 kbps, pass: 2
[18:35:47]  * audio track 0
[18:35:47]    + decoder: English (AC3) (2.0 ch) (track 1, id 80bd)
[18:35:47]      + bitrate: 192 kbps, samplerate: 48000 Hz
[18:35:47]    + mixdown: Stereo
[18:35:47]    + dynamic range compression: 1.500000
[18:35:47]    + encoder: faac
[18:35:47]      + bitrate: 96 kbps, samplerate: 48000 Hz
[18:35:47] yadif thread started for segment 0
[18:35:47] yadif thread started for segment 1
[18:35:47] yadif thread started for segment 2
[18:35:47] yadif thread started for segment 3
[18:35:47] decomb thread started for segment 0
[18:35:47] decomb thread started for segment 1
[18:35:47] decomb thread started for segment 2
[18:35:47] decomb thread started for segment 3
[18:35:47] encx264: keyint-min: 30, keyint-max: 300
[18:35:47] encx264: encoding with stored aspect 853/720
x264 [info]: using SAR=853/720
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 PHADD SSE4.1 Cache64
[18:35:47] reader: first SCR 146
[18:35:47] mpeg2: "Chapter  1" (1) at frame 0 time 3003
[18:35:47] 0.066733s: Film -> Video
x264 [info]: profile High, level 3.0
No accelerated IMDCT transform found
[18:35:49] sync: expecting 101720 video frames
[18:35:49] sync: first pts is 3003
[18:37:33] mpeg2: "Chapter  2" (2) at frame 3471 time 10426416
[18:38:43] mpeg2: "Chapter  3" (3) at frame 5941 time 17843826
[18:45:55] mpeg2: "Chapter  4" (4) at frame 20852 time 62621559
[18:53:07] mpeg2: "Chapter  5" (5) at frame 34502 time 103612509
[19:02:22] mpeg2: "Chapter  6" (6) at frame 53469 time 160570410
[19:08:47] mpeg2: "Chapter  7" (7) at frame 66378 time 199336137
[19:17:12] mpeg2: "Chapter  8" (8) at frame 83005 time 249267018
[19:25:39] mpeg2: "Chapter  9" (9) at frame 99970 time 300212913
[19:26:31] dvd: end of cell 9 at block 1278122
[19:26:31] reader: done. 1 scr changes
[19:26:31] mpeg2: "Chapter 10" (10) at frame 101777 time 305639334
[19:26:31] 3395.992432s: Video -> Film
[19:26:31] sync: got 101777 frames, 101720 expected
[19:26:31] work: average encoding speed for job is 33.436100 fps
[19:26:31] mpeg2 done: 101778 frames
[19:26:31] render: lost time: 58765707 (19569 frames)
[19:26:31] render: gained time: 58765707 (78200 frames) (0 not accounted for)
[19:26:31] render: average dropped frame duration: 3003
x264 [info]: slice I:883   Avg QP:18.32  size: 27059  PSNR Mean Y:45.51 U:50.06 V:51.02 Avg:46.59 Global:45.32
x264 [info]: slice P:30644 Avg QP:20.35  size: 15645  PSNR Mean Y:44.80 U:46.60 V:47.58 Avg:45.38 Global:44.79
x264 [info]: slice B:50677 Avg QP:22.05  size:  3856  PSNR Mean Y:44.07 U:45.50 V:46.62 Avg:44.58 Global:43.99
x264 [info]: consecutive B-frames: 14.1% 19.2%  9.5%  9.2% 15.5% 30.1%  2.3%
x264 [info]: mb I  I16..4: 12.2% 78.0%  9.8%
x264 [info]: mb P  I16..4:  2.6%  9.5%  0.8%  P16..4: 53.8% 17.2% 12.9%  0.2%  0.3%    skip: 2.8%
x264 [info]: mb B  I16..4:  0.1%  0.4%  0.0%  B16..8: 38.4%  1.0%  1.4%  direct: 2.1%  skip:56.6%  L0:40.2% L1:43.6% BI:16.1%
x264 [info]: 8x8 transform  intra:74.1%  inter:83.3%
x264 [info]: direct mvs  spatial:95.4%  temporal:4.6%
x264 [info]: ref P L0  57.8% 21.0%  8.9%  6.2%  6.0%
x264 [info]: ref B L0  72.6% 17.7%  6.4%  3.3%
x264 [info]: ref B L1  95.7%  4.3%
x264 [info]: SSIM Mean Y:0.9796493
x264 [info]: PSNR Mean Y:44.359 U:45.963 V:47.026 Avg:44.898 Global:44.283 kb/s:2037.96
[19:26:31] decomb: yadif deinterlaced 0 | blend deinterlaced 23 | unfiltered 82184 | total 82207
[19:26:31] libhb: work result = 0
rhester
Veteran User
Posts: 2888
Joined: Tue Apr 18, 2006 10:24 pm

Re: interlaced source problem - jerky playback

Post by rhester »

Yes, because a variable number of frames that can't be predicted in advanced combined with a fixed bitrate means that you will always fall short by the number of frames cut by detelecining * the average frame size in bytes. There's no way to know this ahead of time.

Rodney
graysky
Regular User
Posts: 79
Joined: Wed Nov 26, 2008 9:55 pm

Re: interlaced source problem - jerky playback

Post by graysky »

rhester wrote:Yes, because a variable number of frames that can't be predicted in advanced combined with a fixed bitrate means that you will always fall short by the number of frames cut by detelecining * the average frame size in bytes. There's no way to know this ahead of time.
Makes total sense, thanks for the reply.
rhester wrote:That is correct if the desired output is VFR (and us purists always think it should be, of course ;).

Not knowing what your target playback device is, I'd strongly recommend CQ over target size which favors constant quality (with variable bitrate/size) if you are concerned about visual results. If size is a strong concern, what you're doing now is as good as it gets.
Your statement here intrigues me. I haven never done a CQ encode before. I read the CRF Guide on the wiki... seems like it is sort of a guess-and-check situation in terms of filesize/bitrate. I'm also having a hard time with the fact that it's a single pass encode. Everything I thought I knew about x264 encodes tells me that the 2-pass method was superior :/
rhester
Veteran User
Posts: 2888
Joined: Tue Apr 18, 2006 10:24 pm

Re: interlaced source problem - jerky playback

Post by rhester »

For ABR, 2-pass will always produce better results. For CQ, 1-pass is the only option possible, since it varies the quality of each frame as necessary to hit a perceived visual quality.

As long as you are not constrained by output bitrate or filesize, CQ will always produce superior visual results.

Rodney
graysky
Regular User
Posts: 79
Joined: Wed Nov 26, 2008 9:55 pm

Re: interlaced source problem - jerky playback

Post by graysky »

That's cool, I'll give it a try... seems like a quality value of 56.0 (CQF) gives me approx 2,000 kbps results for these sources (+/-100 or so). Just out of curiosity, what quality value (CQF) do you all tend to use for DVD movie sources? Do you just pick one then see what the overall bitrate is on the result (this is the method I am using) or...?

For example, I arrived at 56.0 by looking at encoding one chapter (which I know isn't going to represent the entire film, but does give me an idea) starting at a CQF of 54 and went up to 60 and compared the overall bitrates I got out:

Code: Select all

60.0-->3,170 kbps
59.0-->2,844 kbps
58.0-->2,542 kbps
57.0-->2,276 kbps
56.0-->2,032 kbps
55.0-->1,818 kbps
54.0-->1,625 kbps
...is there a better method?

Thanks!
jbrjake
Veteran User
Posts: 4805
Joined: Wed Dec 13, 2006 1:38 am

Re: interlaced source problem - jerky playback

Post by jbrjake »

DABR
Post Reply