0.9.4 produces garbage

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
Flo
Bright Spark User
Posts: 211
Joined: Thu Nov 26, 2009 5:41 pm

0.9.4 produces garbage

Post by Flo »

I've done several test encodes using Handbrake 0.9.4. and they all seem to result in garbage regardless of profile.

Image

I've been using 0.9.3 for a while and never encountered that particular problem. Even encoding the same clip using 0.9.3 and 0.9.4 results in a perfect conversion from the former, and garbage from the latter.

Most of my material is recorded from digital TV and often contains fast switches between progressive and interlaced frames. Is it possible that the "improved" h.264 codec is less capable of converting this? Even forced slow deinterlacing does not result in a good output from 0.9.4.

Code: Select all

### CLI Query:  -i "E:\VIDEO_TS" -t 1 --angle 1 -c 1 -o "D:\HBP Test.m4v" -f mp4 --strict-anamorphic  --deinterlace="slower" -e x264 -q 20 -a 3 -E faac -6 dpl2 -R 48 -B 160 -D 0.0 --subtitle scan --subtitle-burn=scan -x ref=2:bframes=2:subq=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0 -v 1

### User Query: False

#########################################

[18:27:44] hb_init: checking cpu count
[18:27:44] hb_init: starting libhb thread
HandBrake 0.9.4 (2009112300) - MinGW i386 - http://handbrake.fr
2 CPUs detected
Opening E:\VIDEO_TS...
[18:27:44] hb_scan: path=E:\VIDEO_TS, title_index=1
[18:27:44] scan: trying to open with libdvdread
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdread: Could not open input: Permission denied
libdvdread: Can't open E: for reading
libdvdread: Device (null) inaccessible, CSS authentication not available.
NAME OPEN FAILED
libdvdnav: Unable to find home directorylibdvdnav: DVD disk reports itself with Region mask 0x00400000. Regions: 1 2 3 4 5 6 8
libdvdread: Encrypted DVD support unavailable.
libdvdread: Could not open input: Permission denied
libdvdread: Can't open E: for reading
libdvdread: Device (null) inaccessible, CSS authentication not available.
[18:27:44] scan: DVD has 1 title(s)
[18:27:44] scan: scanning title 1
[18:27:44] scan: opening IFO for VTS 1
[18:27:44] pgc_id: 1, pgn: 1: pgc: 0x1502de8
[18:27:44] scan: vts=1, ttn=1, cells=0->29, blocks=0->1783428, 1783429 blocks
[18:27:44] scan: duration is 02:27:09 (8829130 ms)
[18:27:44] scan: checking audio 1
[18:27:44] scan: id=80bd, lang=Deutsch (AC3), 3cc=deu ext=0
[18:27:44] scan: checking audio 2
[18:27:44] scan: id=c1, lang=Deutsch (MPEG), 3cc=deu ext=0
[18:27:44] scan: checking audio 3
[18:27:44] scan: id=c2, lang=English (MPEG), 3cc=eng ext=0
[18:27:44] scan: title 1 has 30 chapters
[18:27:44] scan: chap 1 c=0->0, b=0->69942 (69943), 299166 ms
[18:27:44] scan: chap 2 c=1->1, b=69943->128318 (58376), 300026 ms
[18:27:44] scan: chap 3 c=2->2, b=128319->189935 (61617), 300026 ms
[18:27:44] scan: chap 4 c=3->3, b=189936->255603 (65668), 300026 ms
[18:27:44] scan: chap 5 c=4->4, b=255604->317499 (61896), 300026 ms
[18:27:44] scan: chap 6 c=5->5, b=317500->376590 (59091), 300026 ms
[18:27:44] scan: chap 7 c=6->6, b=376591->437067 (60477), 300026 ms
[18:27:44] scan: chap 8 c=7->7, b=437068->498768 (61701), 300026 ms
[18:27:44] scan: chap 9 c=8->8, b=498769->555902 (57134), 300026 ms
[18:27:44] scan: chap 10 c=9->9, b=555903->609393 (53491), 300026 ms
[18:27:44] scan: chap 11 c=10->10, b=609394->661071 (51678), 300026 ms
[18:27:44] scan: chap 12 c=11->11, b=661072->720485 (59414), 300026 ms
[18:27:44] scan: chap 13 c=12->12, b=720486->779168 (58683), 300026 ms
[18:27:44] scan: chap 14 c=13->13, b=779169->838175 (59007), 300026 ms
[18:27:44] scan: chap 15 c=14->14, b=838176->899558 (61383), 300026 ms
[18:27:44] scan: chap 16 c=15->15, b=899559->963511 (63953), 300026 ms
[18:27:44] scan: chap 17 c=16->16, b=963512->1015963 (52452), 300026 ms
[18:27:44] scan: chap 18 c=17->17, b=1015964->1083426 (67463), 300026 ms
[18:27:44] scan: chap 19 c=18->18, b=1083427->1142165 (58739), 300026 ms
[18:27:44] scan: chap 20 c=19->19, b=1142166->1206201 (64036), 300026 ms
[18:27:44] scan: chap 21 c=20->20, b=1206202->1269170 (62969), 300026 ms
[18:27:44] scan: chap 22 c=21->21, b=1269171->1325360 (56190), 300026 ms
[18:27:44] scan: chap 23 c=22->22, b=1325361->1381448 (56088), 300026 ms
[18:27:44] scan: chap 24 c=23->23, b=1381449->1434873 (53425), 300026 ms
[18:27:44] scan: chap 25 c=24->24, b=1434874->1490274 (55401), 300026 ms
[18:27:44] scan: chap 26 c=25->25, b=1490275->1540480 (50206), 300026 ms
[18:27:44] scan: chap 27 c=26->26, b=1540481->1596043 (55563), 300026 ms
[18:27:44] scan: chap 28 c=27->27, b=1596044->1650566 (54523), 300026 ms
[18:27:44] scan: chap 29 c=28->28, b=1650567->1739407 (88841), 300026 ms
[18:27:44] scan: chap 30 c=29->29, b=1739408->1783428 (44021), 129221 ms
[18:27:44] scan: aspect = 0
[18:27:44] scan: decoding previews for title 1
[18:27:45] scan: title angle(s) 1
[18:27:45] scan: audio 0xc1: mp2, rate=48000Hz, bitrate=192000 Deutsch (MPEG) (2.0 ch)
[18:27:45] scan: audio 0xc2: mp2, rate=48000Hz, bitrate=192000 English (MPEG) (2.0 ch)
[18:27:45] scan: audio 0x80bd: AC-3, rate=48000Hz, bitrate=384000 Deutsch (AC3) (5.1 ch)
[18:27:45] scan: 10 previews, 720x576, 25.000 fps, autocrop = 74/74/0/0, aspect 16:9, PAR 64:45
[18:27:45] scan: title (0) job->width:720, job->height:304
[18:27:45] libhb: scan thread found 1 valid title(s)
+ title 1:
  + vts 1, ttn 1, cells 0->29 (1783429 blocks)
  + angle(s) 1
  + duration: 02:27:09
  + size: 720x576, pixel aspect: 64/45, display aspect: 1.78, 25.000 fps
  + autocrop: 74/74/0/0
  + chapters:
    + 1: cells 0->0, 69943 blocks, duration 00:04:59
    + 2: cells 1->1, 58376 blocks, duration 00:05:00
    + 3: cells 2->2, 61617 blocks, duration 00:05:00
    + 4: cells 3->3, 65668 blocks, duration 00:05:00
    + 5: cells 4->4, 61896 blocks, duration 00:05:00
    + 6: cells 5->5, 59091 blocks, duration 00:05:00
    + 7: cells 6->6, 60477 blocks, duration 00:05:00
    + 8: cells 7->7, 61701 blocks, duration 00:05:00
    + 9: cells 8->8, 57134 blocks, duration 00:05:00
    + 10: cells 9->9, 53491 blocks, duration 00:05:00
    + 11: cells 10->10, 51678 blocks, duration 00:05:00
    + 12: cells 11->11, 59414 blocks, duration 00:05:00
    + 13: cells 12->12, 58683 blocks, duration 00:05:00
    + 14: cells 13->13, 59007 blocks, duration 00:05:00
    + 15: cells 14->14, 61383 blocks, duration 00:05:00
    + 16: cells 15->15, 63953 blocks, duration 00:05:00
    + 17: cells 16->16, 52452 blocks, duration 00:05:00
    + 18: cells 17->17, 67463 blocks, duration 00:05:00
    + 19: cells 18->18, 58739 blocks, duration 00:05:00
    + 20: cells 19->19, 64036 blocks, duration 00:05:00
    + 21: cells 20->20, 62969 blocks, duration 00:05:00
    + 22: cells 21->21, 56190 blocks, duration 00:05:00
    + 23: cells 22->22, 56088 blocks, duration 00:05:00
    + 24: cells 23->23, 53425 blocks, duration 00:05:00
    + 25: cells 24->24, 55401 blocks, duration 00:05:00
    + 26: cells 25->25, 50206 blocks, duration 00:05:00
    + 27: cells 26->26, 55563 blocks, duration 00:05:00
    + 28: cells 27->27, 54523 blocks, duration 00:05:00
    + 29: cells 28->28, 88841 blocks, duration 00:05:00
    + 30: cells 29->29, 44021 blocks, duration 00:02:09
  + audio tracks:
    + 1, Deutsch (AC3) (5.1 ch) (iso639-2: deu), 48000Hz, 384000bps
    + 2, Deutsch (MPEG) (2.0 ch) (iso639-2: deu)
    + 3, English (MPEG) (2.0 ch) (iso639-2: eng)
  + subtitle tracks:
Subtitle Scan Enabled - enabling subtitles if found for foreign language segments
[18:27:45] 2 job(s) to process
[18:27:45] starting job
[18:27:45] job configuration:
[18:27:45]  * source
[18:27:45]    + E:\VIDEO_TS
[18:27:45]    + title 1, chapter(s) 1 to 1
[18:27:45]  * destination
[18:27:45]    + D:\HBP Test.m4v
[18:27:45]    + container: MPEG-4 (.mp4 and .m4v)
[18:27:45]  * video track
[18:27:45]    + decoder: mpeg2
[18:27:45]      + bitrate 2901 kbps
[18:27:45]    + frame rate: same as source (around 25.000 fps)
[18:27:45]    + strict anamorphic
[18:27:45]      + modulus: 0
[18:27:45]      + storage dimensions: 720 * 576 -> 720 * 428, crop 74/74/0/0
[18:27:45]      + pixel aspect ratio: 64 / 45
[18:27:45]      + display dimensions: 1024 * 428
[18:27:45]    + filter
[18:27:45]      + Deinterlace (ffmpeg or yadif/mcdeint) (0)
libdvdnav: Using dvdnav version 4.1.3
[18:27:45] sync: expecting 7504 video frames
[18:27:45] Yadif Deinterlace thread started for segment 1
[18:27:45] Yadif Deinterlace thread started for segment 0
libdvdread: Encrypted DVD support unavailable.
libdvdread: Could not open input: Permission denied
libdvdread: Can't open E: for reading
libdvdread: Device (null) inaccessible, CSS authentication not available.
NAME OPEN FAILED
libdvdnav: Unable to find home directorylibdvdnav: DVD disk reports itself with Region mask 0x00400000. Regions: 1 2 3 4 5 6 8
libdvdread: Encrypted DVD support unavailable.
libdvdread: Could not open input: Permission denied
libdvdread: Can't open E: for reading
libdvdread: Device (null) inaccessible, CSS authentication not available.
[18:28:13] reader: end of chapter 1 (media 1) reached at media chapter 2
[18:28:13] reader: done. 0 scr changes
[18:28:13] sync: got 0 frames, 7504 expected
[18:28:13] work: average encoding speed for job is 0.000000 fps
[18:28:13] mpeg2 done: 0 frames
[18:28:13] render: lost time: 0 (0 frames)
[18:28:13] render: gained time: 0 (0 frames) (0 not accounted for)
[18:28:13] starting job
[18:28:13] work: sanitizing track 0 mixdown Dolby Pro Logic II to Stereo
[18:28:13] job configuration:
[18:28:13]  * source
[18:28:13]    + E:\VIDEO_TS
[18:28:13]    + title 1, chapter(s) 1 to 1
[18:28:13]  * destination
[18:28:13]    + D:\HBP Test.m4v
[18:28:13]    + container: MPEG-4 (.mp4 and .m4v)
[18:28:13]  * video track
[18:28:13]    + decoder: mpeg2
[18:28:13]      + bitrate 2901 kbps
[18:28:13]    + frame rate: same as source (around 25.000 fps)
[18:28:13]    + strict anamorphic
[18:28:13]      + modulus: 0
[18:28:13]      + storage dimensions: 720 * 576 -> 720 * 428, crop 74/74/0/0
[18:28:13]      + pixel aspect ratio: 64 / 45
[18:28:13]      + display dimensions: 1024 * 428
[18:28:13]    + filter
[18:28:13]      + Deinterlace (ffmpeg or yadif/mcdeint) (0)
[18:28:13]    + encoder: x264
[18:28:13]      + options: ref=2:bframes=2:subq=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0
[18:28:13]      + quality: 20.00 (RF)
[18:28:13]  * audio track 0
[18:28:13]    + decoder: English (MPEG) (2.0 ch) (track 3, id c2)
[18:28:13]    + mixdown: Stereo
[18:28:13]    + encoder: faac
[18:28:13]      + bitrate: 160 kbps, samplerate: 48000 Hz
libdvdnav: Using dvdnav version 4.1.3
[18:28:13] encx264: encoding with stored aspect 64/45
[18:28:13] encx264: Encoding at constant RF 20.000000
x264 [info]: using SAR=64/45
x264 [info]: libdvdread: Encrypted DVD support unavailable.
using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
[18:28:13] Yadif Deinterlace thread started for segment 1
[18:28:13] Yadif Deinterlace thread started for segment 0
libdvdread: Could not open input: Permission denied
libdvdread: Can't open E: for reading
libdvdread: Device (null) inaccessible, CSS authentication not available.
NAME OPEN FAILED
libdvdnav: Unable to find home directorylibdvdnav: DVD disk reports itself with Region mask 0x00400000. Regions: 1 2 3 4 5 6 8
libdvdread: Encrypted DVD support unavailable.
libdvdread: Could not open input: Permission denied
libdvdread: Can't open E: for reading
libdvdread: Device (null) inaccessible, CSS authentication not available.
x264 [info]: profile Main, level 3.0
[18:28:13] sync: expecting 7504 video frames
[18:28:13] reader: first SCR 146 id 224 DTS 21657
[18:28:13] mpeg2: "" (1) at frame 0 time 3600
[18:28:13] sync: first pts is 3600
[18:28:23] 18.120000s: Film -> Video
[18:28:25] 21.960000s: Video -> Film
[18:28:26] 22.440000s: Film -> Video
[18:28:26] 22.600000s: Video -> Film
[18:28:27] 24.000000s: Film -> Video
[18:28:28] 24.920000s: Video -> Film
[18:28:28] 25.000000s: Film -> Video
[18:28:28] 25.120000s: Video -> Film
[18:28:28] 25.800000s: Film -> Video
[18:28:31] 28.520000s: Video -> Film
[18:28:31] 28.640000s: Film -> Video
[18:28:31] 29.480000s: Video -> Film
[18:28:32] 30.360000s: Film -> Video
[18:28:42] 43.840000s: Video -> Film
[18:28:42] 44.040000s: Film -> Video
[18:28:44] 46.440000s: Video -> Film
[18:28:44] 46.680000s: Film -> Video
[18:28:45] 47.120000s: Video -> Film
[18:28:45] 47.440000s: Film -> Video
[18:28:46] 48.360000s: Video -> Film
[18:28:46] 48.600000s: Film -> Video
[18:28:46] 49.520000s: Video -> Film
[18:28:47] 49.800000s: Film -> Video
[18:28:47] 50.600000s: Video -> Film
[18:28:56] 62.640000s: Film -> Video
[18:28:57] 65.160000s: Video -> Film
[18:29:04] 73.760000s: Film -> Video
[18:29:16] 89.040000s: Video -> Film
[18:29:18] 90.600000s: Film -> Video
[18:29:48] 123.480000s: Video -> Film
[18:29:50] 125.280000s: Film -> Video
[18:29:54] 130.160000s: Video -> Film
[18:29:55] 131.040000s: Film -> Video
[18:30:00] 136.160000s: Video -> Film
[18:30:00] 136.280000s: Film -> Video
[18:30:09] 147.480000s: Video -> Film
[18:30:12] 150.400000s: Film -> Video
[18:30:24] 163.640000s: Video -> Film
[18:30:24] 163.920000s: Film -> Video
[18:30:32] 173.720000s: Video -> Film
[18:30:35] 176.320000s: Film -> Video
[18:30:40] 183.200000s: Video -> Film
[18:30:40] 183.280000s: Film -> Video
[18:30:42] 186.080000s: Video -> Film
[18:30:44] 188.400000s: Film -> Video
[18:30:48] 193.400000s: Video -> Film
[18:30:48] 193.520000s: Film -> Video
[18:30:51] 198.920000s: Video -> Film
[18:30:55] 203.400000s: Film -> Video
[18:30:56] 205.960000s: Video -> Film
[18:30:57] 206.880000s: Film -> Video
[18:31:05] 218.120000s: Video -> Film
[18:31:08] 222.720000s: Film -> Video
[18:31:11] 226.520000s: Video -> Film
[18:31:15] 231.600000s: Film -> Video
[18:31:17] 235.080000s: Video -> Film
[18:31:22] 241.600000s: Film -> Video
[18:31:24] 244.400000s: Video -> Film
[18:31:24] 244.480000s: Film -> Video
[18:31:30] 251.800000s: Video -> Film
[18:31:56] 290.680000s: Film -> Video
[18:32:01] reader: end of chapter 1 (media 1) reached at media chapter 2
[18:32:01] reader: done. 0 scr changes
[18:32:04] sync: got 7495 frames, 7504 expected
[18:32:04] work: average encoding speed for job is 32.485901 fps
[18:32:06] mux: track 0, 7494 frames, 40475748 bytes, 1079.79 kbps, fifo 64
[18:32:06] mux: track 1, 14057 frames, 5996598 bytes, 159.97 kbps, fifo 512
[18:32:06] mpeg2 done: 7496 frames
[18:32:06] render: lost time: 0 (0 frames)
[18:32:06] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: frame I:73    Avg QP:17.02  size: 27492  PSNR Mean Y:47.75 U:53.07 V:53.45 Avg:48.89 Global:48.07
x264 [info]: frame P:3514  Avg QP:20.58  size:  8867  PSNR Mean Y:44.22 U:51.07 V:51.64 Avg:45.53 Global:44.96
x264 [info]: frame B:3907  Avg QP:22.44  size:  1872  PSNR Mean Y:43.17 U:51.12 V:51.61 Avg:44.58 Global:43.91
x264 [info]: consecutive B-frames: 15.5% 22.3% 62.3%
x264 [info]: mb I  I16..4: 23.9%  0.0% 76.1%
x264 [info]: mb P  I16..4:  6.3%  0.0%  7.2%  P16..4: 50.5% 16.5%  7.2%  0.0%  0.0%    skip:12.3%
x264 [info]: mb B  I16..4:  3.2%  0.0%  0.6%  B16..8: 18.7%  1.3%  0.7%  direct: 9.8%  skip:65.7%  L0:30.6% L1:50.9% BI:18.5%
x264 [info]: coded y,uvDC,uvAC intra: 48.9% 52.5% 16.6% inter: 18.7% 13.2% 0.3%
x264 [info]: i16 v,h,dc,p: 35% 22% 18% 25%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 17% 21%  6%  7%  7%  5%  6%  4%
x264 [info]: Weighted P-Frames: Y:7.0%
x264 [info]: ref P L0: 62.0% 14.4% 23.5%
x264 [info]: SSIM Mean Y:0.9775856
x264 [info]: PSNR Mean Y:43.707 U:51.117 V:51.644 Avg:45.068 Global:44.399 kb/s:1080.30
[18:32:06] mp2-decoder done: 0 frames, 0 decoder errors, 0 drops
[18:32:06] libhb: work result = 0

Rip done!
HandBrake has exited.
User avatar
Rodeo
HandBrake Team
Posts: 12569
Joined: Tue Mar 03, 2009 8:55 pm

Re: 0.9.4 produces garbage

Post by Rodeo »

Your player apparently doesn't support weighted p-frame prediction. You can try adding weightp=0 to your x264 options.
Flo
Bright Spark User
Posts: 211
Joined: Thu Nov 26, 2009 5:41 pm

Re: 0.9.4 produces garbage

Post by Flo »

Thanks for the quick help!

My conversions are usually meant for playback on Xbox 360 or PS3, but I only checked my 0.9.4 test clips in WMP12 (Windows 7). Ironically, the 360 seems to have no problems with the new clips.
User avatar
Rodeo
HandBrake Team
Posts: 12569
Joined: Tue Mar 03, 2009 8:55 pm

Re: 0.9.4 produces garbage

Post by Rodeo »

Well that definitely sounds like it then (weighted P-frames), so adding weightp=0 should work.

Otherwise, assuming it works on the PS3 like it does on the 360, just use another player that supports weightp on your PC (e.g. VLC)…
Flo
Bright Spark User
Posts: 211
Joined: Thu Nov 26, 2009 5:41 pm

Re: 0.9.4 produces garbage

Post by Flo »

It's definitely WMP's fault as it works fine in VLC and Zoom Player (with ffdshow). I don't usually use WMP, it was just convenient for some quick testing.

You can consider this problem solved. Thanks again!
Post Reply