[mythtv-users] vdpau and .mp4 playback

Kevin Ross kevin at familyross.net
Sun Nov 28 23:00:48 UTC 2010


On 11/28/2010 7:07 AM, Gerald Brandt wrote:
> Hi,
>
> ----- Original Message -----
>> From: "Jean-Yves Avenard"<jyavenard at gmail.com>
>> To: "Discussion about MythTV"<mythtv-users at mythtv.org>
>> Sent: Saturday, November 27, 2010 7:26:14 PM
>> Subject: Re: [mythtv-users] vdpau and .mp4 playback
>> Hi
>>
>> On 28 November 2010 11:29, Gerald Brandt<gbr at majentis.com>  wrote:
>>> Hi,
>>>
>>> I use MythBuntu 10.10 running .23 fixes.
>>>
>>> Lately, I've been finding H264 .mkv and .mp4 files that won't
>>> (can't?) use vdpau acceleration. From my brief looks at the files,
>>> it all looks OK, h264 video at 1280 x 5xx (528 or 544), 24 FPS, and
>>> MPEG-4 ACC or Dolby AC-3 audio. I really can't see a difference
>>> between one that works, and one that doesn't.
>> What H264 encoding profile are they using ?
>>
>> VDPAU only supports supports some h264's profiles (4:2:0 profiles such
>> as baseline/main/high). Things like lossless h264 or High 4:4:4
>> Predictive Profile aren't supported by VDPAU.
>>
>> But it's been a while since I looked into VDPAU (over a year now) this
>> may have changed by now.
>>
>> Regarding what Robert said, the resolutions restrictions also differ
>> according to the nvidia cards you are using
> My system is an ION based one.
>
> This file plays:
> Format                           : Matroska
> File size                        : 2.17 GiB
> Duration                         : 2h 6mn
> Overall bit rate                 : 2 470 Kbps
> Encoded date                     : UTC 2008-09-13 04:20:47
> Writing application              : mkvmerge v2.2.0 ('Turn It On Again') built on Mar  4 2008 12:58:26
> Writing library                  : libebml v0.7.7 + libmatroska v0.8.1
>
> Video
> ID                               : 1
> Format                           : AVC
> Format/Info                      : Advanced Video Codec
> Format profile                   : High at L3.1
> Format settings, CABAC           : Yes
> Format settings, ReFrames        : 5 frames
> Codec ID                         : V_MPEG4/ISO/AVC
> Duration                         : 2h 6mn
> Bit rate                         : 1 780 Kbps
> Nominal bit rate                 : 4 325 Kbps
> Width                            : 1 280 pixels
> Height                           : 528 pixels
> Display aspect ratio             : 2.40:1
> Frame rate                       : 23.976 fps
> Color space                      : YUV
> Chroma subsampling               : 4:2:0
> Bit depth                        : 8 bits
> Scan type                        : Progressive
> Bits/(Pixel*Frame)               : 0.110
> Stream size                      : 1.57 GiB (72%)
> Writing library                  : x264 core 61 r957 7ce0f2c
> Encoding settings                : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=6 / brdo=1 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=0 / threads=6 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=1 / bime=1 / keyint=250 / keyint_min=25 / scenecut=40(pre) / rc=2pass / bitrate=4325 / ratetol=1.0 / qcomp=1.00 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=2:1.00
> Language                         : English
>
> Audio
> ID                               : 2
> Format                           : AC-3
> Format/Info                      : Audio Coding 3
> Mode extension                   : CM (complete main)
> Codec ID                         : A_AC3
> Duration                         : 2h 6mn
> Bit rate mode                    : Constant
> Bit rate                         : 640 Kbps
> Channel(s)                       : 6 channels
> Channel positions                : Front: L C R, Side: L R, LFE
> Sampling rate                    : 48.0 KHz
> Bit depth                        : 16 bits
> Compression mode                 : Lossy
> Stream size                      : 577 MiB (26%)
> Title                            : AC 640 Kbps
> Language                         : English
>
> And this file does not:
>
> Format                           : Matroska
> File size                        : 1.35 GiB
> Duration                         : 2h 20mn
> Overall bit rate                 : 1 382 Kbps
> Encoded date                     : UTC 2010-11-24 12:50:05
> Writing application              : mkvmerge v3.0.0 ('Hang up your Hang-Ups') built on Dec 29 2009 00:24:14
> Writing library                  : libebml v0.7.7 + libmatroska v0.8.1
>
> Video
> ID                               : 1
> Format                           : AVC
> Format/Info                      : Advanced Video Codec
> Format profile                   : Main at L3.1
> Format settings, CABAC           : No
> Format settings, ReFrames        : 3 frames
> Codec ID                         : V_MPEG4/ISO/AVC
> Duration                         : 2h 20mn
> Nominal bit rate                 : 1 800 Kbps
> Width                            : 1 280 pixels
> Height                           : 528 pixels
> Display aspect ratio             : 2.40:1
> Frame rate                       : 23.976 fps
> Color space                      : YUV
> Chroma subsampling               : 4:2:0
> Bit depth                        : 8 bits
> Scan type                        : Progressive
> Bits/(Pixel*Frame)               : 0.111
> Writing library                  : x264 core 79
> Encoding settings                : cabac=0 / ref=3 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=7 / psy=1 / psy_rd=1.0:0.0 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=3 / nr=0 / decimate=1 / mbaff=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=0 / wpredp=2 / keyint=240 / keyint_min=24 / scenecut=40 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=1800 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
> Color primaries                  : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
> Transfer characteristics         : BT.709-5, BT.1361
> Matrix coefficients              : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177
>
> Audio
> ID                               : 2
> Format                           : AAC
> Format/Info                      : Advanced Audio Codec
> Format version                   : Version 4
> Format profile                   : LC
> Codec ID                         : A_AAC
> Duration                         : 2h 20mn
> Channel(s)                       : 6 channels
> Channel positions                : Front: L C R, Side: L R, LFE
> Sampling rate                    : 48.0 KHz
> Compression mode                 : Lossy
> Language                         : English
>
>
> What's the best app to convert the bad playing file into a good one?  Arista?
>
> Gerald

It looks like you found some encoder settings that will work.  Just use 
those settings when you convert your Blu-Ray or TV recordings to .mkv 
files.  The ones with the settings that don't work, you'll have to 
transcode again.  If you're using Handbrake, then I know for a fact the 
"High Profile" preset works well with VDPAU.




More information about the mythtv-users mailing list