DVD vs Apple TV CQ 62% at 1080p, artifact question

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
unimatrix0
Posts: 7
Joined: Thu Jan 29, 2009 8:49 am

DVD vs Apple TV CQ 62% at 1080p, artifact question

Post by unimatrix0 »

Hey guys I've been noticing jagged edges on some of my encodes, I'm not sure why but it's been bothering me quite a bit. This may be normal but I just don't remember having these jagged edges before, so I'm not sure if I changed a setting or what. The artifacts are seen when the video is shown on a 1080p screen. The encode was done using an Apple TV preset with Cabac on, Trellis 0, and CQ ~62%, RF19. Below is a comparison of the HB encode vs the DVD, enlarged on VLC to fit the 1080p screen; notice the edge of the face isn't anti-aliased properly as the DVD:

Image

Does anyone have any idea on what could be wrong? Dark_Shikari suggested changing the AQ-Strength, which I did but it didn't seem to make much difference.

Code: Select all

### Windows GUI svn2418 2009051401 
### Running: Microsoft Windows NT 6.0.6001 Service Pack 1 
###
### CPU: Intel(R) Core(TM)2 CPU          6600  @ 2.40GHz 
### Ram: 2047 MB 
### Screen: 1400x1050 
### Temp Dir: C:\Users\Mike\AppData\Local\Temp\ 
### Install Dir: C:\Users\Mike\Desktop\handbrake-2418-20090514 
### Data Dir: C:\Users\Mike\AppData\Roaming\HandBrake\HandBrake\0.9.3.0 
#########################################

### CLI Query:  -i "E:\Encodes\MADE_OF_HONOR" -t 2 -c 1-3 -o "E:\Encodes\Made of honor test RF 19 no cabac.mkv" -f mkv -P  -e x264 -q 19 -a 1 -E ac3 -6 auto -R Auto -B auto -D 1 --markers="C:\Users\Mike\AppData\Local\Temp\Made of honor test RF 19 no cabac-2-chapters.csv" -x level=30:cabac=0:ref=3:mixed-refs=1:bframes=6:weightb=1:direct=auto:no-fast-pskip=1:me=umh:subq=7:analyse=all -v 1

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

[17:48:57] hb_init: checking cpu count
[17:48:57] hb_init: starting libhb thread
HandBrake svn2418 (2009051401) - Cygwin i686 - http://handbrake.fr
2 CPUs detected
Opening E:\Encodes\MADE_OF_HONOR...
[17:48:57] hb_scan: path=E:\Encodes\MADE_OF_HONOR, title_index=2
[17:48:57] scan: trying to open with libdvdread
libdvdread: Encrypted DVD support unavailable.
libdvdread: Couldn't find device name.
[17:48:57] scan: DVD has 30 title(s)
[17:48:57] scan: scanning title 2
[17:48:57] scan: opening IFO for VTS 2
[17:48:57] pgc_id: 1, pgn: 1: pgc: 0x1cdb2b0
[17:48:57] scan: vts=2, ttn=1, cells=0->28, blocks=187->1911420, 1911234 blocks
[17:48:57] scan: duration is 01:41:25 (6085053 ms)
[17:48:57] scan: checking audio 1
[17:48:57] scan: id=80bd, lang=English (AC3), 3cc=eng ext=0
[17:48:57] scan: checking audio 2
[17:48:57] scan: id=81bd, lang=Francais (AC3), 3cc=fra ext=0
[17:48:57] scan: checking audio 3
[17:48:57] scan: id=82bd, lang=English (AC3) (Director's Commentary 1), 3cc=eng ext=3
[17:48:57] scan: checking subtitle 1
[17:48:57] scan: id=20bd, lang=English, 3cc=eng
[17:48:57] scan: checking subtitle 2
[17:48:57] scan: id=21bd, lang=Francais, 3cc=fra
[17:48:57] scan: checking subtitle 3
[17:48:57] scan: id=22bd, lang=English (Director's Commentary), 3cc=eng
[17:48:57] scan: title 2 has 29 chapters
[17:48:57] scan: chap 1 c=0->0, b=187->124981 (124795), 383683 ms
[17:48:57] scan: chap 2 c=1->1, b=124982->188556 (63575), 209377 ms
[17:48:57] scan: chap 3 c=2->2, b=188557->256262 (67706), 212392 ms
[17:48:57] scan: chap 4 c=3->3, b=256263->379311 (123049), 388892 ms
[17:48:57] scan: chap 5 c=4->4, b=379312->452085 (72774), 256626 ms
[17:48:57] scan: chap 6 c=5->5, b=452086->538853 (86768), 270775 ms
[17:48:57] scan: chap 7 c=6->6, b=538854->619253 (80400), 246608 ms
[17:48:57] scan: chap 8 c=7->7, b=619254->644939 (25686), 81162 ms
[17:48:57] scan: chap 9 c=8->8, b=644940->741424 (96485), 294516 ms
[17:48:57] scan: chap 10 c=9->9, b=741425->823356 (81932), 271496 ms
[17:48:57] scan: chap 11 c=10->10, b=823357->887102 (63746), 209553 ms
[17:48:57] scan: chap 12 c=11->11, b=887103->959251 (72149), 222543 ms
[17:48:57] scan: chap 13 c=12->12, b=959252->1027788 (68537), 249648 ms
[17:48:57] scan: chap 14 c=13->13, b=1027789->1107288 (79500), 254612 ms
[17:48:57] scan: chap 15 c=14->14, b=1107289->1145764 (38476), 115212 ms
[17:48:57] scan: chap 16 c=15->15, b=1145765->1194351 (48587), 149281 ms
[17:48:57] scan: chap 17 c=16->16, b=1194352->1220878 (26527), 83155 ms
[17:48:57] scan: chap 18 c=17->17, b=1220879->1281766 (60888), 191388 ms
[17:48:57] scan: chap 19 c=18->18, b=1281767->1342198 (60432), 166478 ms
[17:48:57] scan: chap 20 c=19->19, b=1342199->1423702 (81504), 257471 ms
[17:48:57] scan: chap 21 c=20->20, b=1423703->1493714 (70012), 234597 ms
[17:48:57] scan: chap 22 c=21->21, b=1493715->1542049 (48335), 146422 ms
[17:48:57] scan: chap 23 c=22->22, b=1542050->1626194 (84145), 233730 ms
[17:48:57] scan: chap 24 c=23->23, b=1626195->1692731 (66537), 206548 ms
[17:48:57] scan: chap 25 c=24->24, b=1692732->1732780 (40049), 119385 ms
[17:48:57] scan: chap 26 c=25->25, b=1732781->1808134 (75354), 247444 ms
[17:48:57] scan: chap 27 c=26->26, b=1808135->1829409 (21275), 59304 ms
[17:48:57] scan: chap 28 c=27->27, b=1829410->1911233 (81824), 322566 ms
[17:48:57] scan: chap 29 c=28->28, b=1911234->1911420 (187), 176 ms
[17:48:57] scan: aspect = 0
[17:48:57] scan: decoding previews for title 2
[17:48:57] scan: title angle(s) 1
[17:48:57] scan: audio 0x80bd: AC-3, rate=48000Hz, bitrate=384000 English (AC3) (5.1 ch)
[17:48:57] scan: audio 0x81bd: AC-3, rate=48000Hz, bitrate=384000 Francais (AC3) (5.1 ch)
[17:48:57] scan: audio 0x82bd: AC-3, rate=48000Hz, bitrate=192000 English (AC3) (Director's Commentary 1) (Dolby Surround)
[17:48:57] scan: 10 previews, 720x480, 23.976 fps, autocrop = 60/66/0/2, aspect 16:9, PAR 32:27
[17:48:57] scan: title (0) job->width:720, job->height:304
[17:48:57] libhb: scan thread found 1 valid title(s)
+ title 2:
  + vts 2, ttn 1, cells 0->28 (1911234 blocks)
  + duration: 01:41:25
  + size: 720x480, aspect: 1.78, 23.976 fps
  + autocrop: 60/66/0/2
  + chapters:
    + 1: cells 0->0, 124795 blocks, duration 00:06:24
    + 2: cells 1->1, 63575 blocks, duration 00:03:29
    + 3: cells 2->2, 67706 blocks, duration 00:03:32
    + 4: cells 3->3, 123049 blocks, duration 00:06:29
    + 5: cells 4->4, 72774 blocks, duration 00:04:17
    + 6: cells 5->5, 86768 blocks, duration 00:04:31
    + 7: cells 6->6, 80400 blocks, duration 00:04:07
    + 8: cells 7->7, 25686 blocks, duration 00:01:21
    + 9: cells 8->8, 96485 blocks, duration 00:04:55
    + 10: cells 9->9, 81932 blocks, duration 00:04:31
    + 11: cells 10->10, 63746 blocks, duration 00:03:30
    + 12: cells 11->11, 72149 blocks, duration 00:03:43
    + 13: cells 12->12, 68537 blocks, duration 00:04:10
    + 14: cells 13->13, 79500 blocks, duration 00:04:15
    + 15: cells 14->14, 38476 blocks, duration 00:01:55
    + 16: cells 15->15, 48587 blocks, duration 00:02:29
    + 17: cells 16->16, 26527 blocks, duration 00:01:23
    + 18: cells 17->17, 60888 blocks, duration 00:03:11
    + 19: cells 18->18, 60432 blocks, duration 00:02:46
    + 20: cells 19->19, 81504 blocks, duration 00:04:17
    + 21: cells 20->20, 70012 blocks, duration 00:03:55
    + 22: cells 21->21, 48335 blocks, duration 00:02:26
    + 23: cells 22->22, 84145 blocks, duration 00:03:54
    + 24: cells 23->23, 66537 blocks, duration 00:03:27
    + 25: cells 24->24, 40049 blocks, duration 00:01:59
    + 26: cells 25->25, 75354 blocks, duration 00:04:07
    + 27: cells 26->26, 21275 blocks, duration 00:00:59
    + 28: cells 27->27, 81824 blocks, duration 00:05:23
    + 29: cells 28->28, 187 blocks, duration 00:00:00
  + audio tracks:
    + 1, English (AC3) (5.1 ch), 48000Hz, 384000bps
    + 2, Francais (AC3) (5.1 ch), 48000Hz, 384000bps
    + 3, English (AC3) (Director's Commentary 1) (Dolby Surround), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English (iso639-2: eng)
    + 2, Francais (iso639-2: fra)
    + 3, English (Director's Commentary) (iso639-2: eng)
    + 4, Closed Captions (iso639-2: eng)
Reading chapter markers from file C:\Users\Mike\AppData\Local\Temp\Made of honor test RF 19 no cabac-2-chapters.csv
Invalid sample rate 0, using input rate 48000
[17:48:57] 1 job(s) to process
[17:48:57] starting job
[17:48:57] job configuration:
[17:48:57]  * source
[17:48:57]    + E:\Encodes\MADE_OF_HONOR
[17:48:57]    + title 2, chapter(s) 1 to 3
[17:48:57]  * destination
[17:48:57]    + E:\Encodes\Made of honor test RF 19 no cabac.mkv
[17:48:57]    + container: Matroska (.mkv)
[17:48:57]      + chapter markers
[17:48:57]  * video track
[17:48:57]    + decoder: mpeg2
[17:48:57]      + bitrate 9800 kbps
[17:48:57]    + frame rate: same as source (around 23.976 fps)
[17:48:57]    + loose anamorphic
[17:48:57]      + storage dimensions: 720 * 480 -> 720 * 352, crop 60/66/0/2
[17:48:57]      + pixel aspect ratio: 169 / 144
[17:48:57]      + display dimensions: 845 * 352
[17:48:57]    + encoder: x264
[17:48:57]      + options: level=30:cabac=0:ref=3:mixed-refs=1:bframes=6:weightb=1:direct=auto:no-fast-pskip=1:me=umh:subq=7:analyse=all
[17:48:57]      + quality: 19.00 (RF)
[17:48:57]  * audio track 0
[17:48:57]    + decoder: English (AC3) (5.1 ch) (track 1, id 80bd)
[17:48:57]      + bitrate: 384 kbps, samplerate: 48000 Hz
[17:48:57]    + AC3 passthrough
libdvdread: Encrypted DVD support unavailable.
libdvdread: Couldn't find device name.
[17:48:57] reader: first SCR 146
[17:48:57] encx264: keyint-min: 24, keyint-max: 240
[17:48:57] encx264: encoding with stored aspect 169/144
[17:48:57] encx264: Encoding at constant RF 19.000000
x264 [info]: using SAR=169/144
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
x264 [info]: profile Main, level 3.0
[17:48:57] mpeg2: "Chapter 1" (1) at frame 0 time 3003
No accelerated IMDCT transform found
[17:48:57] sync: expecting 19335 video frames
[17:48:57] sync: first pts is 3003
[17:54:29] mpeg2: "Chapter 2" (2) at frame 9200 time 34537503
[17:54:29] sync got new chapter 2
[17:57:36] mpeg2: "Chapter 3" (3) at frame 14224 time 53396343
[17:57:36] sync got new chapter 3
[18:00:46] reader: end of chapter 3 (media 3) reached at media chapter 4
[18:00:46] reader: done. 0 scr changes
[18:00:48] sync: got 19325 frames, 19335 expected
[18:00:48] work: average encoding speed for job is 27.198645 fps
[18:00:49] mux: track 0, 19325 frames, 137525193 bytes, 1364.99 kbps, fifo 16
[18:00:49] mux: track 1, 25184 frames, 38682624 bytes, 383.94 kbps, fifo 512
[18:00:49] mpeg2 done: 19326 frames
[18:00:49] render: lost time: 0 (0 frames)
[18:00:49] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: slice I:189   Avg QP:15.83  size: 32203  PSNR Mean Y:47.81 U:49.86 V:50.85 Avg:48.41 Global:47.45
x264 [info]: slice P:8404  Avg QP:18.07  size: 12011  PSNR Mean Y:45.05 U:47.49 V:48.07 Avg:45.70 Global:44.62
x264 [info]: slice B:10732 Avg QP:20.49  size:  2841  PSNR Mean Y:44.68 U:47.79 V:48.51 Avg:45.39 Global:44.21
x264 [info]: consecutive B-frames: 10.7% 41.8% 16.2% 16.6% 11.4%  2.0%  1.4%
x264 [info]: mb I  I16..4: 14.8%  0.0% 85.2%
x264 [info]: mb P  I16..4:  1.5%  0.0%  8.3%  P16..4: 43.4% 28.7% 11.7%  1.0%  1.0%    skip: 4.4%
x264 [info]: mb B  I16..4:  0.1%  0.0%  0.6%  B16..8: 44.7%  2.8%  3.0%  direct: 4.6%  skip:44.3%  L0:31.8% L1:55.6% BI:12.6%
x264 [info]: direct mvs  spatial:96.3%  temporal:3.7%
x264 [info]: coded y,uvDC,uvAC intra:86.6% 94.6% 79.4% inter:22.7% 33.7% 6.2%
x264 [info]: ref P L0  80.7% 11.8%  7.6%
x264 [info]: ref B L0  89.4% 10.6%
x264 [info]: SSIM Mean Y:0.9835535
x264 [info]: PSNR Mean Y:44.873 U:47.679 V:48.343 Avg:45.554 Global:44.406 kb/s:1364.99
[18:00:49] libhb: work result = 0

Rip done!
HandBrake has exited.


 ############ End of Log ############## 
cvk_b
Veteran User
Posts: 527
Joined: Sun Mar 18, 2007 2:11 am

Re: DVD vs Apple TV CQ 62% at 1080p, artifact question

Post by cvk_b »

The dev who uses mkv the most uses this:
  • < j45> generally, for blu-ray i use constant quality 59% and these x264 opts
    "ref=2:mixed-refs:bframes=3:b-pyramid:weightb:analyse=all:8x8dct:me=umh:subme=7:b-adapt=2". Full resolution 1080p encodes come out to about 8 to 10 GB.
Also, you should not be setting a level. x264 will do it for you and get it right.
unimatrix0
Posts: 7
Joined: Thu Jan 29, 2009 8:49 am

Re: DVD vs Apple TV CQ 62% at 1080p, artifact question

Post by unimatrix0 »

cvk_b thanks for the comments. If anyone got any other ideas please chime in.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: DVD vs Apple TV CQ 62% at 1080p, artifact question

Post by JohnAStebbins »

I'm just throwing sh1t against a wall here, but you may want to try disabling psy-rd (psy-rd=0,0). It has a tendency to add high frequencies which usually improves perceived quality. But it may be having the effect you're finding objectionable.
eddyg
Veteran User
Posts: 798
Joined: Mon Apr 23, 2007 3:34 am

Re: DVD vs Apple TV CQ 62% at 1080p, artifact question

Post by eddyg »

Try removing the level - it may be limiting you too much.
Post Reply