DeInterlacing issue, & noise turning into to block artifacts

HandBrake for Windows 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
Capoland
Posts: 23
Joined: Wed Dec 22, 2010 3:34 am

DeInterlacing issue, & noise turning into to block artifacts

Post by Capoland »

I'm having a couple problems encoding my Birdy the Mighty: Decode DVD.

The first is an Interlacing issue. I don't even think the source is interlaced and/or telecined, but every time it fades in or out there are clearly interlacing artifacts.

Image

I've tried using Detelecine, Decomb, a combination of the two, and Deinterlace. The only one that worked was Deinterlace, but I'm assuming that's because it deinterlaces the frame whether it thinks it interlaced or not. But when I use Deinterlace, it ruins the rest of the video. I've also tried messing around with the custom settings for the Decomb filter, but honestly I don't know enough about it to get any good results. This problem actually happens on a few other DVD's I have, not just this one. So this is the main problem I would like to fix.


The other problem I'm having is with noise (or whatever it's called, grain maybe) that's part of the original. It always comes out as really ugly blocking. It's very distracting to look at in motion because the blocks keep changing randomly, and it happens in various places all throughout the video. My guess is because it's an Anime, the noise on the solid colors is probably screwing with something.

These pictures really don't show how bad it actually looks, but maybe it will give you an idea. Here's a frame from the original:

Image

And here's the same frame after encoding:

Image

Like I said, those pictures aren't great examples, but it's the best I can do without showing you the actual video. Anyway, I've tried messing around with just about every setting I think would help, but I can't get anything to work. All I've been able to do is make it worse.


Here's one of my many encode logs. Yes, I know the settings I use are overkill, but that's not the point. These issues happen regardless of the settings I've used, and actually, these ones have gotten the best results so far.


Any help with either issue will be appreciated!

Code: Select all

# Windows GUI svn3705 2010121101
# Running: Microsoft Windows NT 6.1.7600.0
# CPU: Intel(R) Core(TM) i7 CPU       Q 720  @ 1.60GHz
# Ram: 4084 MB
# Screen: 1600x900
# Temp Dir: C:\Users\Chase\AppData\Local\Temp\
# Install Dir: C:\Program Files (x86)\Handbrake
# Data Dir: C:\Users\Chase\AppData\Roaming\HandBrake\HandBrake\0.9.5.3705

# CLI Query:  -i "D:\Chase\Blu-Ray's & DVD's\Birdy The Mighty - Decode\Birdy The Mighty Decode - Episode 2.mkv" -t 1 -c 1-6 -o "D:\Chase\Videos\Birdy the Mighty Decode\Birdy the Mighty Decode\02 - The Partnered One (DVD).m4v"  -f mp4 --decomb -w 720 -l 480 --crop 0:0:4:4 --custom-anamorphic  --pixel-aspect 854:720  -e x264 -q 20 -r 23.976 -a 1,2 -E faac,faac -6 dpl2,stereo -R Auto,Auto -B 192,192 -D 1,0 --srt-file "D:\Chase\Blu-Ray's & DVD's\Birdy The Mighty - Decode\Birdy EP2 Short Sub.srt,D:\Chase\Blu-Ray's & DVD's\Birdy The Mighty - Decode\Birdy EP2 Long Sub.srt" --srt-codeset UTF-8,UTF-8 --srt-offset 0,0 --srt-lang eng,eng --srt-default=1 --markers="C:\Users\Chase\AppData\Local\Temp\02 - The Partnered One (DVD)-1-chapters.csv" -x b-adapt=2:rc-lookahead=50:ref=13:bframes=16:direct=auto:me=tesa:subq=10:merange=64:analyse=all:trellis=2:no-fast-pskip=1:no-mixed-refs=1 --verbose=1
# User Query: False
-------------------------------------------

[19:30:34] hb_init: checking cpu count
[19:30:34] hb_init: starting libhb thread
HandBrake svn3705 (2010121101) - MinGW i386 - http://handbrake.fr
8 CPUs detected
Opening D:\Chase\Blu-Ray's & DVD's\Birdy The Mighty - Decode\Birdy The Mighty Decode - Episode 2.mkv...
[19:30:34] hb_scan: path=D:\Chase\Blu-Ray's & DVD's\Birdy The Mighty - Decode\Birdy The Mighty Decode - Episode 2.mkv, title_index=1
libbluray/bdnav/index_parse.c:157: indx_parse(): error opening D:\Chase\Blu-Ray's & DVD's\Birdy The Mighty - Decode\Birdy The Mighty Decode - Episode 2.mkv/BDMV/index.bdmv
libbluray/bluray.c:960: nav_get_title_list(D:\Chase\Blu-Ray's & DVD's\Birdy The Mighty - Decode\Birdy The Mighty Decode - Episode 2.mkv) failed (0x1a3b6b0)
[19:30:34] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
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
[19:30:34] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'D:\Chase\Blu-Ray's & DVD's\Birdy The Mighty - Decode\Birdy The Mighty Decode - Episode 2.mkv':
  Duration: 00:23:41.30, start: 0.000000, bitrate: 9940 kb/s
    Chapter #0.0: start 0.000000, end 81.048333
    Metadata:
      title           : Chapter 07
    Chapter #0.1: start 81.048333, end 171.038233
    Metadata:
      title           : Chapter 08
    Chapter #0.2: start 171.038233, end 712.076367
    Metadata:
      title           : Chapter 09
    Chapter #0.3: start 712.076367, end 1300.155500
    Metadata:
      title           : Chapter 10
    Chapter #0.4: start 1300.155500, end 1390.122033
    Metadata:
      title           : Chapter 11
    Chapter #0.5: start 1390.122033, end 1421.308000
    Metadata:
      title           : Chapter 12
    Stream #0.0(eng): Video: mpeg2video, yuv420p, 720x480 [PAR 32:27 DAR 16:9], 9300 kb/s, PAR 186:157 DAR 279:157, 29.97 fps, 59.94 tbr, 1k tbn, 59.94 tbc
    Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
    Metadata:
      title           : 3/2+1
    Stream #0.2(jpn): Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
    Metadata:
      title           : 2/0
    Stream #0.3(eng): Subtitle: dvdsub
    Stream #0.4(eng): Subtitle: dvdsub
[19:30:34] scan: decoding previews for title 1
[19:30:34] scan: audio 0x1: AC-3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch)
[19:30:34] scan: audio 0x2: AC-3, rate=48000Hz, bitrate=192000 Japanese (AC3) (2.0 ch)
[19:30:35] scan: 10 previews, 720x480, 59.940 fps, autocrop = 0/0/2/0, aspect 16:9, PAR 32:27
[19:30:35] scan: title (0) job->width:720, job->height:400
[19:30:35] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: D:\Chase\Blu-Ray's & DVD's\Birdy The Mighty - Decode\Birdy The Mighty Decode - Episode 2.mkv
  + duration: 00:23:41
  + size: 720x480, pixel aspect: 32/27, display aspect: 1.78, 59.940 fps
  + autocrop: 0/0/2/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:01:21
    + 2: cells 0->0, 0 blocks, duration 00:01:29
    + 3: cells 0->0, 0 blocks, duration 00:09:01
    + 4: cells 0->0, 0 blocks, duration 00:09:48
    + 5: cells 0->0, 0 blocks, duration 00:01:29
    + 6: cells 0->0, 0 blocks, duration 00:00:31
  + audio tracks:
    + 1, English (AC3) (5.1 ch) (iso639-2: eng), 48000Hz, 448000bps
    + 2, Japanese (AC3) (2.0 ch) (iso639-2: jpn), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English (iso639-2: eng) (Bitmap)(VOBSUB)
    + 2, English (iso639-2: eng) (Bitmap)(VOBSUB)
Reading chapter markers from file C:\Users\Chase\AppData\Local\Temp\02 - The Partnered One (DVD)-1-chapters.csv
[19:30:35] 1 job(s) to process
[19:30:35] starting job
[19:30:35] sync: expecting 85253 video frames
[19:30:35] job configuration:
[19:30:35]  * source
[19:30:35]    + D:\Chase\Blu-Ray's & DVD's\Birdy The Mighty - Decode\Birdy The Mighty Decode - Episode 2.mkv
[19:30:35]    + title 1, chapter(s) 1 to 6
[19:30:35]    + container: matroska,webm
[19:30:35]    + data rate: 9940 kbps
[19:30:35]  * destination
[19:30:35]    + D:\Chase\Videos\Birdy the Mighty Decode\Birdy the Mighty Decode\02 - The Partnered One (DVD).m4v
[19:30:35]    + container: MPEG-4 (.mp4 and .m4v)
[19:30:35]      + chapter markers
[19:30:35]  * video track
[19:30:35]    + decoder: mpeg2video
[19:30:35]      + bitrate 9300 kbps
[19:30:35]    + frame rate: 59.940 fps -> constant 23.976 fps
[19:30:35]    + custom anamorphic
[19:30:35]      + storage dimensions: 720 * 480 -> 720 * 480, crop 0/0/4/4, mod 0
[19:30:35]      + pixel aspect ratio: 427 / 360
[19:30:35]      + display dimensions: 854 * 480
[19:30:35]    + filter
[19:30:35]      + Decomb (default settings)
[19:30:35]    + encoder: x264
[19:30:35]      + options: b-adapt=2:rc-lookahead=50:ref=13:bframes=16:direct=auto:me=tesa:subq=10:merange=64:analyse=all:trellis=2:no-fast-pskip=1:no-mixed-refs=1
[19:30:35]      + quality: 20.00 (RF)
[19:30:35]  * subtitle track 0, English (id ff) Text [SRT] -> Pass-Through, Default, offset: 0, charset: UTF-8
[19:30:35]  * subtitle track 0, English (id 1ff) Text [SRT] -> Pass-Through, offset: 0, charset: UTF-8
[19:30:35]  * audio track 0
[19:30:35]    + decoder: English (AC3) (5.1 ch) (track 1, id 1)
[19:30:35]      + bitrate: 448 kbps, samplerate: 48000 Hz
[19:30:35]    + mixdown: Dolby Pro Logic II
[19:30:35]    + dynamic range compression: 1.000000
[19:30:35]    + encoder: faac
[19:30:35]      + bitrate: 192 kbps, samplerate: 48000 Hz
[19:30:35]  * audio track 1
[19:30:35]    + decoder: Japanese (AC3) (2.0 ch) (track 1, id 2)
[19:30:35]      + bitrate: 192 kbps, samplerate: 48000 Hz
[19:30:35]    + mixdown: Stereo
[19:30:35]    + encoder: faac
[19:30:35]      + bitrate: 192 kbps, samplerate: 48000 Hz
[19:30:35] yadif thread started for segment 0
[19:30:35] yadif thread started for segment 1
[19:30:35] yadif thread started for segment 2
[19:30:35] yadif thread started for segment 3
[19:30:35] yadif thread started for segment 4
[19:30:35] yadif thread started for segment 5
[19:30:35] yadif thread started for segment 6
[19:30:35] yadif thread started for segment 7
[19:30:35] decomb thread started for segment 0
[19:30:35] decomb thread started for segment 1
[19:30:35] decomb thread started for segment 2
[19:30:35] decomb thread started for segment 3
[19:30:35] decomb thread started for segment 4
[19:30:35] decomb thread started for segment 5
[19:30:35] decomb thread started for segment 6
[19:30:35] decomb thread started for segment 7
[19:30:35] encx264: min-keyint: auto (23), keyint: 240
[19:30:35] encx264: encoding with stored aspect 427/360
[19:30:35] encx264: Encoding at constant RF 20.000000
x264 [info]: using SAR=427/360
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
x264 [info]: profile High, level 3.1
[19:30:35] reader: first SCR 0 id 0 DTS 0
No accelerated IMDCT transform found
No accelerated IMDCT transform found
[19:41:45] mpeg2video: "Opening" (2) at frame 1951 time 7297110
[20:07:02] sync: adding 79 ms of silence to audio 2  start 15400710, next 15393600
[20:07:02] sync: adding 79 ms of silence to audio 1  start 15400710, next 15393600
[20:07:42] mpeg2video: "Part 1" (3) at frame 4109 time 15398460
[21:37:16] mpeg2video: "Part 2" (4) at frame 17080 time 64089990
[23:04:30] mpeg2video: "Ending" (5) at frame 31179 time 117016650
[23:11:13] mpeg2video: "Preview" (6) at frame 33336 time 125114130
[23:15:56] reader: done. 1 scr changes
[23:16:31] work: average encoding speed for job is 2.513549 fps
[23:16:31] sync: got 34074 frames, 85253 expected
[23:16:31] mpeg2video-decoder done: 34074 frames, 0 decoder errors, 0 drops
[23:16:31] render: 34075 frames output, 0 dropped and 2 duped for CFR/PFR
[23:16:31] render: lost time: 0 (0 frames)
[23:16:31] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: frame I:301   Avg QP:16.52  size: 36477  PSNR Mean Y:48.76 U:50.40 V:50.76 Avg:49.06 Global:48.55
x264 [info]: frame P:7933  Avg QP:20.91  size:  5626  PSNR Mean Y:46.52 U:48.59 V:48.93 Avg:47.01 Global:46.34
x264 [info]: frame B:25841 Avg QP:25.30  size:  1018  PSNR Mean Y:45.73 U:48.40 V:48.78 Avg:46.40 Global:45.93
x264 [info]: consecutive B-frames:  2.8%  4.8%  7.5% 19.1% 19.0% 35.0%  5.4%  0.6%  1.0%  0.3%  3.4%  0.9%  0.1%  0.0%  0.0%  0.1%  0.0%
x264 [info]: mb I  I16..4: 18.5% 50.3% 31.2%
x264 [info]: mb P  I16..4:  3.1%  4.6%  1.5%  P16..4: 52.3%  6.0%  1.3%  0.3%  0.1%    skip:30.8%
x264 [info]: mb B  I16..4:  0.2%  0.2%  0.0%  B16..8: 25.2%  1.8%  0.5%  direct: 1.1%  skip:70.9%  L0:46.6% L1:51.0% BI: 2.5%
x264 [info]: 8x8 transform intra:50.1% inter:67.3%
x264 [info]: direct mvs  spatial:100.0% temporal:0.0%
x264 [info]: coded y,uvDC,uvAC intra: 55.8% 57.3% 33.4% inter: 5.2% 5.4% 0.8%
x264 [info]: i16 v,h,dc,p: 33% 25%  5% 37%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11%  8%  7% 11% 15% 12% 13% 11% 13%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13%  9%  6% 12% 15% 12% 11% 10% 12%
x264 [info]: i8c dc,h,v,p: 33% 35% 20% 13%
x264 [info]: Weighted P-Frames: Y:2.3% UV:1.7%
x264 [info]: ref P L0: 41.5%  4.0% 18.9%  7.5%  6.0%  5.6%  4.7%  2.3%  2.0%  2.0%  1.7%  1.8%  1.7%  0.3%  0.0%
x264 [info]: ref B L0: 68.8% 11.1%  6.9%  2.8%  2.6%  2.2%  1.9%  1.1%  1.0%  0.8%  0.5%  0.3%
x264 [info]: ref B L1: 91.0%  9.0%
x264 [info]: SSIM Mean Y:0.9871794 (18.921db)
x264 [info]: PSNR Mean Y:45.940 U:48.460 V:48.832 Avg:46.562 Global:46.043 kb/s:461.12
[23:16:34] mux: track 0, 34075 frames, 81904516 bytes, 461.03 kbps, fifo 32
[23:16:34] mux: track 1, 66622 frames, 34084496 bytes, 191.86 kbps, fifo 512
[23:16:34] mux: track 2, 66622 frames, 34082748 bytes, 191.85 kbps, fifo 512
[23:16:34] mux: track 3, 41 frames, 1688 bytes, 0.01 kbps, fifo 8
[23:16:34] mux: track 4, 347 frames, 12681 bytes, 0.07 kbps, fifo 8
[23:16:34] decomb: deinterlaced 0 | blended 1 | unfiltered 34072 | total 34073
[23:16:34] libhb: work result = 0
Rip done!
HandBrake has exited.
hunterk
Bright Spark User
Posts: 179
Joined: Tue Jun 03, 2008 2:27 pm

Re: DeInterlacing issue, & noise turning into to block artif

Post by hunterk »

I don't know what to tell you about the interlacing thing, but for the grain issue, you could try either using deblocking to kill the grain entirely or psy-trellis (I've had good luck setting it around 0.5) to keep the grain without the blocking.
Deleted User 11865

Re: DeInterlacing issue, & noise turning into to block artif

Post by Deleted User 11865 »

hunterk wrote:I don't know what to tell you about the interlacing thing, but for the grain issue, you could try either using deblocking to kill the grain entirely
Never bothered to test filtering much, but wouldn't denoise be the more appropriate filter to get rid of grain?
hunterk
Bright Spark User
Posts: 179
Joined: Tue Jun 03, 2008 2:27 pm

Re: DeInterlacing issue, & noise turning into to block artif

Post by hunterk »

Yeah, you're probably right; denoise certainly sounds like it would be more appropriate :lol: . Removing grain is not something I've ever wanted to do, specifically, but I've noticed that it has been a side effect when I've turned up deblocking, which is why I mention it.
Capoland
Posts: 23
Joined: Wed Dec 22, 2010 3:34 am

Re: DeInterlacing issue, & noise turning into to block artif

Post by Capoland »

Well, I tried Psychovisual Trellis at 0.5, and it helped the blocking enough to where it doesn't bother me. Then separately I tried the Denoise filter. Only strong denoise got rid of the blocking, but it lost so much detail that it's not even close to worth it. So next just for the heck of it, I tried maxing out the Adaptive Quantization Strength with the Psychovisual Trellis still at 0.5. That made the encode near perfect. But, the size of the output file tripled. I really don't want it that big since I use these files on my iPod, so I'll just settle for the 0.5 Psychovisual Trellis.

So there's one problem down.


Now if I could just figure out the interlacing...

Would it be possible for the fades to be going at 60fps? Because I was going through a different DVD frame by frame (or technically field by field i guess), and it always took two, sometimes three presses of the next frame key to get through the fields in a frame, which is normal. But when I got to a fade, it was changing every press instead of every two or three presses.

Could that have something to do with the interlacing artifacts on this DVD?
Deleted User 11865

Re: DeInterlacing issue, & noise turning into to block artif

Post by Deleted User 11865 »

Capoland wrote:Well, I tried Psychovisual Trellis at 0.5, and it helped the blocking enough to where it doesn't bother me. Then separately I tried the Denoise filter. Only strong denoise got rid of the blocking, but it lost so much detail that it's not even close to worth it. So next just for the heck of it, I tried maxing out the Adaptive Quantization Strength with the Psychovisual Trellis still at 0.5. That made the encode near perfect. But, the size of the output file tripled. I really don't want it that big since I use these files on my iPod, so I'll just settle for the 0.5 Psychovisual Trellis.
You might get better results by increasing aq-strength just a bit, to e.g. 1.2. Also, you can compensate for the slight increase in file size by reducing constant quality a bit (quality will be a bit worse, but grain will be better preserved and/or less blocky).
Post Reply