Deinterlacing issues

HandBrake for Mac support
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
jnyberg
Posts: 30
Joined: Sun Mar 22, 2009 2:01 pm

Deinterlacing issues

Post by jnyberg »

Hi,

I have been ripping both movies and TV shows from DVD to be watched on my Apple TV, using the Apple TV preset.
Since movies are progressive, I've found that it's best to not use any video filter when converting those. However, some TV shows are interlaced, so I check decomb. In my opinion the deinterlacer in Handbrake is really not that good. The resulting video file stutters wherever deinterlacing has occured, which leaves the video, in my opinion, unbareable to watch. I've tried default (yadif) and also put 9 (yadif + EEDI2) in the advanced decomb field. No difference. I guess Handbrakes deinterlacer simply isn't that good. Or are there even more advanced options that would result in smooth playback?

I've loook at JES Deinterlacer, and from what I've read people are really happy with it. My question is, if I start using JES deinterlacer, what would be my workflow? I first rip the DVD title, how do i import it into JES Deinterlacer, deinterlace it, and output it in a format that is of the same aspect ratio, quality and everything, as the original DVD title, except for now being deinterlaced? Then feed it into handbrake for conversion.

Thanks
nightstrm
Veteran User
Posts: 1887
Joined: Fri Mar 23, 2007 5:43 am

Re: Deinterlacing issues

Post by nightstrm »

Please provide a log for your Handbrake encode so we can see exactly what settings you used. I know I haven't had your experience using decomb.
jnyberg
Posts: 30
Joined: Sun Mar 22, 2009 2:01 pm

Re: Deinterlacing issues

Post by jnyberg »

Sorry, here's the log for when i tried converting the first episode of "From the Earth to the Moon":

Code: Select all

HandBrake Activity Log for /Users/Joakim/Desktop/ftettm1.m4v: 2010-04-12 08:30:20 +0300
Handbrake Version: svn3036 x86_64 (2009121901)

[08:30:20] macgui: Rip: Pending queue count is 3
[08:30:20] macgui: scanning specifically for title: 1
[08:30:20] macgui: performNewQueueScan currentQueueEncodeIndex is: 0
[08:30:20] hb_scan: path=/Volumes/LACIE/dvd rips/ftettm1, title_index=1
[08:30:20] scan: trying to open with libdvdread
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdread: Couldn't find device name.
libdvdnav: Can't read name block. Probably not a DVD-ROM device.
libdvdnav: Unable to find map file '/Users/Joakim/.dvdnav/.map'
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
libdvdread: Encrypted DVD support unavailable.
libdvdread: Couldn't find device name.
[08:30:20] scan: DVD has 3 title(s)
[08:30:20] scan: scanning title 1
[08:30:20] scan: opening IFO for VTS 1
[08:30:20] pgc_id: 1, pgn: 1: pgc: 0x116b2ce20
[08:30:20] scan: vts=1, ttn=1, cells=0->6, blocks=0->3469659, 1149649 blocks
[08:30:20] scan: duration is 00:59:52 (3592090 ms)
[08:30:20] scan: checking audio 1
[08:30:20] scan: id=80bd, lang=English (AC3), 3cc=eng ext=0
[08:30:20] scan: checking audio 2
[08:30:20] scan: id=81bd, lang=Deutsch (AC3), 3cc=deu ext=0
[08:30:20] scan: checking subtitle 1
[08:30:20] scan: id=20bd, lang=English, 3cc=eng
[08:30:20] scan: checking subtitle 2
[08:30:20] scan: id=21bd, lang=Deutsch, 3cc=deu
[08:30:20] scan: checking subtitle 3
[08:30:20] scan: id=22bd, lang=Arabic, 3cc=ara
[08:30:20] scan: checking subtitle 4
[08:30:20] scan: id=23bd, lang=Czech, 3cc=ces
[08:30:20] scan: checking subtitle 5
[08:30:20] scan: id=24bd, lang=Dansk, 3cc=dan
[08:30:20] scan: checking subtitle 6
[08:30:20] scan: id=25bd, lang=Suomi, 3cc=fin
[08:30:20] scan: checking subtitle 7
[08:30:20] scan: id=26bd, lang=Greek, Modern, 3cc=ell
[08:30:20] scan: checking subtitle 8
[08:30:20] scan: id=27bd, lang=Unknown, 3cc=und
[08:30:20] scan: checking subtitle 9
[08:30:20] scan: id=28bd, lang=Norsk, 3cc=nor
[08:30:20] scan: checking subtitle 10
[08:30:20] scan: id=29bd, lang=Portugues, 3cc=por
[08:30:20] scan: checking subtitle 11
[08:30:20] scan: id=2abd, lang=Romanian, 3cc=ron
[08:30:20] scan: checking subtitle 12
[08:30:20] scan: id=2bbd, lang=Svenska, 3cc=swe
[08:30:20] scan: checking subtitle 13
[08:30:20] scan: id=2cbd, lang=English, 3cc=eng
[08:30:20] scan: checking subtitle 14
[08:30:20] scan: id=2dbd, lang=Deutsch, 3cc=deu
[08:30:20] scan: title 1 has 7 chapters
[08:30:20] scan: chap 1 c=0->0, b=0->157260 (157261), 489378 ms
[08:30:20] scan: chap 2 c=1->1, b=157261->420913 (263653), 799680 ms
[08:30:20] scan: chap 3 c=2->2, b=420914->676415 (255502), 840757 ms
[08:30:20] scan: chap 4 c=3->3, b=676416->895253 (218838), 681453 ms
[08:30:20] scan: chap 5 c=4->4, b=895254->1026784 (131531), 383459 ms
[08:30:20] scan: chap 6 c=5->5, b=1026785->1149619 (122835), 397268 ms
[08:30:20] scan: chap 7 c=6->6, b=3469631->3469659 (29), 90 ms
[08:30:20] scan: aspect = 0
[08:30:20] scan: decoding previews for title 1
[08:30:20] scan: title angle(s) 1
[08:30:20] scan: audio 0x81bd: AC-3, rate=48000Hz, bitrate=384000 Deutsch (AC3) (5.1 ch)
[08:30:20] scan: audio 0x80bd: AC-3, rate=48000Hz, bitrate=384000 English (AC3) (5.1 ch)
[08:30:20] scan: 10 previews, 720x576, 25.000 fps, autocrop = 0/0/8/6, aspect 16:9, PAR 64:45
[08:30:20] scan: title (0) job->width:704, job->height:400
[08:30:20] libhb: scan thread found 1 valid title(s)
[08:30:20] macgui: ScanDone state received from fQueueEncodeLibhb
[08:30:20] macgui: Preset: AppleTV
[08:30:20] macgui: processNewQueueEncode number of passes expected is: 1
[08:30:20] macgui: prepareJob audiotrack 2 is: 0
[08:30:20] macgui: prepareJob exiting
[08:30:20] 1 job(s) to process
[08:30:20] starting job
[08:30:20] sync: expecting 89827 video frames
[ac3 @ 0x102a22600]No channel layout specified. The encoder will guess the layout, but it might be incorrect.
[08:30:20] job configuration:
[08:30:20]  * source
[08:30:20]    + /Volumes/LACIE/dvd rips/ftettm1
[08:30:20]    + title 1, chapter(s) 1 to 7
[08:30:20]  * destination
[08:30:20]    + /Users/Joakim/Desktop/ftettm1.m4v
[08:30:20]    + container: MPEG-4 (.mp4 and .m4v)
[08:30:20]      + 64-bit formatting
[08:30:20]      + chapter markers
[08:30:20]  * video track
[08:30:20]    + decoder: mpeg2
[08:30:20]      + bitrate 8000 kbps
[08:30:20]    + frame rate: same as source (around 25.000 fps)
[08:30:20]    + loose anamorphic
[08:30:20]      + modulus: 0
[08:30:20]      + storage dimensions: 720 * 576 -> 720 * 576, crop 6/6/8/8
[08:30:20]      + pixel aspect ratio: 511 / 360
[08:30:20]      + display dimensions: 1022 * 576
[08:30:20]    + filter
[08:30:20]      + Decomb (9)
[08:30:20]    + encoder: x264
[08:30:20]      + options: cabac=0:ref=2:me=umh:b-adapt=2:weightb=0:weightp=0
[08:30:20]      + quality: 20.00 (RF)
[08:30:20]  * audio track 0
[08:30:20]    + decoder: English (AC3) (5.1 ch) (track 1, id 80bd)
[08:30:20]      + bitrate: 384 kbps, samplerate: 48000 Hz
[08:30:20]    + mixdown: Dolby Pro Logic II
[08:30:20]    + encoder: ca_aac
[08:30:20]      + bitrate: 160 kbps, samplerate: 48000 Hz
[08:30:20]  * audio track 1
[08:30:20]    + decoder: English (AC3) (5.1 ch) (track 1, id 80bd)
[08:30:20]      + bitrate: 384 kbps, samplerate: 48000 Hz
[08:30:20]    + AC3 passthrough
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdread: Couldn't find device name.
libdvdnav: Can't read name block. Probably not a DVD-ROM device.
libdvdnav: Unable to find map file '/Users/Joakim/.dvdnav/.map'
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
libdvdread: Encrypted DVD support unavailable.
libdvdread: Couldn't find device name.
[08:30:20] yadif thread started for segment 0
[08:30:20] decomb thread started for segment 1
[08:30:20] eedi2 thread started for plane 0
[08:30:20] eedi2 thread started for plane 1
[08:30:20] yadif thread started for segment 1
[08:30:20] decomb thread started for segment 0
[08:30:20] eedi2 thread started for plane 2
[08:30:20] encx264: encoding with stored aspect 511/360
[08:30:20] encx264: Encoding at constant RF 20.000000
x264 [info]: using SAR=511/360
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
x264 [info]: profile High, level 3.0
No accelerated IMDCT transform found
No accelerated IMDCT transform found
[08:30:21] reader: first SCR 146 id 224 DTS 1226
[08:30:21] mpeg2: "Chapter  1" (1) at frame 0 time 3600
[08:30:21] sync: first pts is 3600
[09:19:03] mpeg2: "Chapter  2" (2) at frame 12246 time 44089200
[11:02:49] mpeg2: "Chapter  3" (3) at frame 32224 time 116010000
[12:44:36] mpeg2: "Chapter  4" (4) at frame 53239 time 191664000
[14:13:40] mpeg2: "Chapter  5" (5) at frame 70275 time 252993600
[14:59:59] mpeg2: "Chapter  6" (6) at frame 79865 time 287517600
[15:55:48] reader: done. 1 scr changes
[15:55:53] mpeg2: "Chapter  7" (7) at frame 89800 time 323283600
[15:55:53] 3592.039795s: Video -> Film
[15:55:55] sync: got 89800 frames, 89827 expected
[15:55:55] work: average encoding speed for job is 3.358915 fps
[15:55:58] mpeg2 done: 89801 frames
[15:55:58] render: lost time: 0 (0 frames)
[15:55:58] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: frame I:748   Avg QP:16.20  size: 31878  PSNR Mean Y:49.39 U:55.27 V:55.73 Avg:50.17 Global:49.48
x264 [info]: frame P:32120 Avg QP:19.80  size:  9633  PSNR Mean Y:47.35 U:55.50 V:55.90 Avg:48.05 Global:46.54
x264 [info]: frame B:56932 Avg QP:22.33  size:  3346  PSNR Mean Y:45.05 U:53.86 V:54.51 Avg:46.11 Global:45.18
x264 [info]: consecutive B-frames:  3.3% 18.5% 47.9% 30.3%
x264 [info]: mb I  I16..4: 21.2% 51.7% 27.2%
x264 [info]: mb P  I16..4:  4.5%  6.9%  1.9%  P16..4: 38.4% 16.5%  5.6%  0.0%  0.0%    skip:26.3%
x264 [info]: mb B  I16..4:  0.5%  1.3%  0.3%  B16..8: 38.6%  1.1%  1.1%  direct: 6.3%  skip:50.7%  L0:39.4% L1:52.7% BI: 7.9%
x264 [info]: 8x8 transform intra:54.0% inter:58.9%
x264 [info]: coded y,uvDC,uvAC intra: 59.2% 53.9% 24.0% inter: 12.7% 13.0% 0.4%
x264 [info]: i16 v,h,dc,p: 57% 12%  6% 24%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 11% 18%  6%  8% 12%  7% 10%  7%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 13% 13%  6%  9% 12%  6%  8%  4%
x264 [info]: ref P L0: 74.2% 25.8%
x264 [info]: SSIM Mean Y:0.9856866
x264 [info]: PSNR Mean Y:45.909 U:54.460 V:55.017 Avg:46.840 Global:45.640 kb/s:1166.55
[15:55:58] mux: track 0, 89800 frames, 523747093 bytes, 1166.32 kbps, fifo 8
[15:55:58] mux: track 1, 168397 frames, 73722782 bytes, 164.17 kbps, fifo 256
[15:55:58] mux: track 2, 112265 frames, 172439040 bytes, 384.00 kbps, fifo 256
[15:55:58] decomb: deinterlaced 45729 | blended 0 | unfiltered 44071 | total 89800
[15:55:58] libhb: work result = 0
Last edited by Anonymous on Tue Apr 13, 2010 5:01 pm, edited 1 time in total.
Reason: Please enclose Activity Logs in [code] blocks
Deleted User 11865

Re: Deinterlacing issues

Post by Deleted User 11865 »

jnyberg wrote:In my opinion the deinterlacer in Handbrake is really not that good. The resulting video file stutters wherever deinterlacing has occured, which leaves the video, in my opinion, unbareable to watch. I've tried default (yadif) and also put 9 (yadif + EEDI2) in the advanced decomb field. No difference. I guess Handbrakes deinterlacer simply isn't that good.
I don't have any stutter problems with most of my interlaced sources (aside from the occasional hiccup), but I've seen results where deinterlacing really ruins motion. At first I thought this was a HandBrake problem so tried several other deinterlacers (including JES's non-bobbing mode) without any improvement.

For these sources, the only deinterlacing method that seems to produce smooth results is bobbing (which HandBrake does not have, though it may gain it in the future - hopefully).
jnyberg wrote:I've loook at JES Deinterlacer, and from what I've read people are really happy with it. My question is, if I start using JES deinterlacer, what would be my workflow?
A nightmare. Like, rip with HandBrake with no decomb/deinterlace filter at an absurdly high RF like 10 (which makes this step near-lossless), including all audio tracks and subtitles you want, and setting cropping to zero.

Then reencode the video with JES Deinterlacer (using "Both fields"), outputting to a QuickTime Movie using, say, DV as the codec (don't delete the original HandBrake encode just yet). Then reencode the output with HandBrake (this time with whatever cropping is necessary).

Finally, combine both files using Subler (MP4) or MKVToolnix (MKV), that is all tracks from the original HB encode except the video track, and only the video track from the second HandBrake encode.
jnyberg
Posts: 30
Joined: Sun Mar 22, 2009 2:01 pm

Re: Deinterlacing issues

Post by jnyberg »

Ugh... Maybe I'll just stick with not using any video filters and watch interlaced videos. At least this way the motion is smooth and I preserve all the frames. Watching on a 32 inch LCD from a normal distance, I don't notice much interlacing artifacts anyway, although they are there if I watch closely.
jbrjake
Veteran User
Posts: 4805
Joined: Wed Dec 13, 2006 1:38 am

Re: Deinterlacing issues

Post by jbrjake »

jnyberg wrote:Sorry, here's the log for when i tried converting the first episode of "From the Earth to the Moon":
We call the opening to that series "The iPod Killer" because of how many changes in bitrate are needed to handle the varying content. In your case, the issue is that it is *extremely* hybrid. It has 24fps progressive, 24fps hard telecined to 30fps, interlaced 30fps, and even progressive 30fps content.

In short, you need to detelecine too, and even then I doubt you'll get totally smooth motion.
hugeman
Posts: 22
Joined: Wed Apr 01, 2009 11:23 am

Re: Deinterlacing issues

Post by hugeman »

I guess you are trying to deinterlace a PAL-dvd that orignally was in NTSC... I have no more information to give you more than all my DVDs in this situation gives problem like yours. I think I have tried every combination of settings without no luck. I have deinterlace several "real" PAL and NTSC dvds without problem. This thread handles the same problem:

http://forum.handbrake.fr/viewtopic.php ... erlace+pal

If anoyone with more skills or a developer is interested to check this up I can give that person an example scene to work with.
jbrjake
Veteran User
Posts: 4805
Joined: Wed Dec 13, 2006 1:38 am

Re: Deinterlacing issues

Post by jbrjake »

hugeman wrote:If anoyone with more skills or a developer is interested to check this up I can give that person an example scene to work with.
Huh? Just like I said in the thread you just linked to:
I need a short (<30 seconds) sample of the source, from a segment that demonstrates this problem.
Post Reply