Trouble playing certain HD x264 files


#1

Hello,

This is cross posted at the WDTV Forum, but i though that I could increase my chances of running into a 264 guru here as well. I had a buddy encode some blu rays for me (I don’t have a blu ray drive in my comp) and about half of them work fine, he used a slightly different command line in handbrake for the encodes, but I don’t know which breaks functionality. From mediainfo on the two files this is what I get:

Plays fine:

cabac=0 / ref=3 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=7 / psy=1 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=6 / nr=0 / decimate=1 / mbaff=0 / constrained_intra=0 / bframes=6 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / wpredp=2 / keyint=240 / keyint_min=24 / scenecut=40 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=22.4 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00

No video (on the WDTV Live only - plays fine on comp):

cabac=0 / ref=3 / deblock=1:0:0 / analyse=0x1:0x131 / me=umh / subme=7 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=6 / nr=0 / decimate=1 / mbaff=0 / bframes=6 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / keyint=240 / keyint_min=24 / scenecut=40 / rc=crf / crf=22.4 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00

Pulling out the differences:

Extra flags in the ones that play fine:

psy=1 /
constrained_intra=0 /
wpredp=2 /
rc_lookahead=40 /
mbtree=1 /

Extra flag in the one that doesn’t play:

pb_ratio=1.30 /

Presumably it is the “pb_ratio” flag that is breaking it, but what does this mean? I have tried to search though some of the x264 documentation, but cannot find it anywhere. Of course my buddy doesn’t know either, he just pulled the line from the handbrake forum as a suggested encode method for blu ray movies.

If anyone can shed some light that would be fantastatic!

dp


#2

Welcome to the forums.

Here’s the suggested “light” – tell your buddy not to mess around with settings he doesn’t understand.  In Handbrake it’s quite simple: use the High Profile preset and change the output type to MKV and passthrough either AC3 or DTS audio and you’ll have a *perfect* file for blu-ray encodes to play on the Live.

If he wants to play with things, he can adjust the RF (the default on High Profile is 20, which *can* be adjusted to 22 for most people.  It will reduce size by about 25%, but I can notice some lesser quality on some movies and prefer to encode them all at 20.  Regular DVDs should definitely be left at 20).  That’s the only thing he should *ever* mess with.

If the CPU power of his computer isn’t very high he could use the Normal preset – this won’t result in as good a quality as the High Profile, but will work just fine and encode faster (quite a bit faster, in fact, but since I have a high power i7 machine and can encode overnight I prefer to use the best).

BTW, if he had asked on the Handbrake forum ANY of the regulars would have told him this.  In general the presets (that were developed by the experts) are the only things you ever need to know about using Handbrake (unless you’re an expert yourself, which he obviously is not).


#3

Just to back up what Mike is saying, I use the Handbrake High or Normal presets (running one of the Nightly Builds) and have no issues playing any files and they all look great.  ;)

I did try lowering the RF to 22 on some DVD TV eps once and the quality dipped a bit too much.  I went with 21 after that but really 20 (the Default) was better.  I had to encode them fast so made the compromise.


#4

Thanks for the replys so far. I am wondering if anyone has an answer to my question though? I do understand that changing settings without fully understanding them is not a good idea - especially for compatibility issues. But if I could go back in time I would… He has encoded these blu-rays for my HTPC which they work just fine on. Some do not work on my WDTV Live. He did just over 70 discs for me, and about 30 of them (as encoded above) do not work.

For the sake both of our education, I am wondering if anyone knows the answer - I understand that they will need to be re-encoded.

Not to get too off topic, but I have figured out my perosnal favourite settings for Handbrake for SD content through sampling of many scenes and have come up with this:

b-adapt=2:rc-lookahead=50:ref=6:bframes=6:deblock=-1,-1:direct=auto:subq=8:no-fast-pskip=1:no-dct-decimate=1

with a RF of 18.75. Anything higher RF and I started to get noticable artifacting in dark scenes.All with either DTS or AC3 pass thru. Encoding on my X3210 (Q6600 equiv) with a modest OC to 3.4Ghz runs anywhere between 20-35fps.

I have done about 2000 episodes of TV (mix of 1/2 hr and 1 hr episodes - 810GB) and about 200 movies (300GB) and they look great, and the space isn’t too bad IMO.

Thanks if anyone can shed some light on the OP!!


#5

If you want to find out the answer, post on the Handbrake forum.  The experts there will tell you in a hot New York minute (after they tell you to stop mucking about with settings you don’t understand :>)


#6

Hi all, first time posting and need some advice. I’m having video stutter issues with HD football videos (HD content like movies, even 1080p work fine), and I’m not sure if it’s the media player or the TV that’s the cause of it. I’m using a Panasonic plasma 42’’ with an HDMI connection, external HDD usb source.  The mediainfo below, appreciate any help at all

General
Complete name                    : 720p HDTV - GER-ENG DD5.1- MASSA.mkv
Format                           : Matroska
File size                        : 1.51 GiB
Duration                         : 57mn 8s
Overall bit rate                 : 3 772 Kbps
Writing application              : Lavf52.62.0
Writing library                  : Lavf52.62.0

Video
ID                               : 1
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : Main@L4.1
Format settings, CABAC           : Yes
Format settings, ReFrames        : 2 frames
Muxing mode                      : Container profile=Unknown@4.1
Codec ID                         : V_MPEG4/ISO/AVC
Duration                         : 57mn 8s
Bit rate                         : 3 000 Kbps
Width                            : 1 280 pixels
Height                           : 720 pixels
Display aspect ratio             : 16:9
Frame rate mode                  : Variable
Frame rate                       : 25.000 fps
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.130
Stream size                      : 1.17 GiB (78%)
Writing library                  : x264 core 96
Encoding settings                : cabac=1 / ref=1 / deblock=1:0:0 / analyse=0x1:0x131 / me=hex / subme=7 / psy=0 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=3 / weightb=1 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=abr / mbtree=1 / bitrate=3000 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / vbv_maxrate=24000 / vbv_bufsize=24000 / ip_ratio=1.40 / aq=1:1.00 / nal_hrd=none

Audio #1
ID                               : 2
Format                           : AC-3
Format/Info                      : Audio Coding 3
Mode extension                   : CM (complete main)
Codec ID                         : A_AC3
Duration                         : 57mn 8s
Bit rate mode                    : Constant
Bit rate                         : 384 Kbps
Channel(s)                       : 5 channels
Channel positions                : Front: L C R, Side: L R
Sampling rate                    : 48.0 KHz
Stream size                      : 157 MiB (10%)
Language                         : German

Audio #2
ID                               : 3
Format                           : AC-3
Format/Info                      : Audio Coding 3
Mode extension                   : CM (complete main)
Codec ID                         : A_AC3
Duration                         : 57mn 8s
Bit rate mode                    : Constant
Bit rate                         : 384 Kbps
Channel(s)                       : 2 channels
Channel positions                : Front: L R
Sampling rate                    : 48.0 KHz
Video delay                      : 95ms
Stream size                      : 157 MiB (10%)
Language                         : English