[mythtv-users] VAAPI failing on playback

Karl Newman newmank1 at asme.org
Wed Jun 27 04:36:49 UTC 2012


On Tue, Jun 26, 2012 at 6:17 PM, jr <jraymyth at gmail.com> wrote:
> As I said in another post, I am having troubles managing my STB via IR
> blaster.  The overwhelming suggestion was to manage my STB by firewire
> instead.  Unfortunately, my MB is a mini itx Intel with one regular
> pci-e slot, which is occupied by a nvidia 210 for VDPAU.  So, this
> evening, in an attempt to free up that pci-e slot, I decided to test
> out VAAPI.
>
> MythTV is giving me CoreContext vaapicontext.cpp:143 (Create) VAAPI:
> Error at vaapicontext.cpp:143 (#-1, unknown libva error).  I have
> found several posts questioning this error, but no resolutions.
>
> Ubuntu 12.04
> DQ67EP Mini-itx (i5)
>
>
>
> Jun 26 20:44:01 Jotun mythfrontend[5694]: I CoreContext
> tv_play.cpp:987 (TV) TV: Creating TV object
> Jun 26 20:44:01 Jotun mythfrontend[5694]: N CoreContext
> mythmainwindow.cpp:2588 (PauseIdleTimer) Resuming idle timer
> Jun 26 20:44:01 Jotun mythfrontend[5694]: N CoreContext
> mythmainwindow.cpp:2583 (PauseIdleTimer) Suspending idle timer
> Jun 26 20:44:01 Jotun mythfrontend[5694]: I CoreContext
> tv_play.cpp:1206 (Init) TV: Created TvPlayWindow.
> Jun 26 20:44:01 Jotun mythfrontend[5694]: I CoreContext
> tv_play.cpp:2121 (HandleStateChange) TV: Attempting to change from
> None to WatchingVideo
> Jun 26 20:44:01 Jotun mythfrontend[5694]: I CoreContext
> mythcorecontext.cpp:1178 (CheckProtoVersion) Using protocol version 72
> Jun 26 20:44:01 Jotun mythfrontend[5694]: I CoreContext
> mythcorecontext.cpp:1178 (CheckProtoVersion) Using protocol version 72
> Jun 26 20:44:01 Jotun mythfrontend[5694]: I CoreContext
> audio/audiopulsehandler.cpp:320 (SuspendInternal) Pulse: PulseAudio
> suspend OK
> Jun 26 20:44:01 Jotun mythfrontend[5694]: N CoreContext
> audioplayer.cpp:167 (ReinitAudio) AudioPlayer: Enabling Audio
>
> ##LOOK HERE
> Jun 26 20:44:02 Jotun mythfrontend[5694]: E CoreContext
> vaapicontext.cpp:143 (Create) VAAPI: Error at vaapicontext.cpp:143
> (#-1, unknown libva error)
> Jun 26 20:44:02 Jotun mythfrontend[5694]: E CoreContext
> vaapicontext.cpp:311 (CreateDisplay) VAAPI: Invalid display
> ##
>
> Jun 26 20:44:02 Jotun mythfrontend[5694]: I CoreContext
> avformatdecoder.cpp:2100 (ScanStreams) AFD: Opened codec 0x30812b0,
> id(H264) type(Video)
> Jun 26 20:44:02 Jotun mythfrontend[5694]: I CoreContext
> avformatdecoder.cpp:1958 (ScanStreams) AFD: codec AAC has 2 channels
> Jun 26 20:44:02 Jotun mythfrontend[5694]: I CoreContext
> avformatdecoder.cpp:2100 (ScanStreams) AFD: Opened codec 0x4d03b00,
> id(AAC) type(Audio)
> Jun 26 20:44:02 Jotun mythfrontend[5694]: I CoreContext
> avformatdecoder.cpp:1958 (ScanStreams) AFD: codec AC3 has 6 channels
> Jun 26 20:44:02 Jotun mythfrontend[5694]: I CoreContext
> avformatdecoder.cpp:2100 (ScanStreams) AFD: Opened codec 0x5cec260,
> id(AC3) type(Audio)
> Jun 26 20:44:02 Jotun mythfrontend[5694]: I CoreContext
> audio/audiooutputbase.cpp:764 (Reconfigure) AO: Opening audio device
> 'hdmi:CARD=PCH,DEV=0' ch 2(2) sr 48000 sf signed 16 bit r
> eenc 0
> Jun 26 20:44:02 Jotun mythfrontend[5694]: E CoreContext
> audio/audiooutputalsa.cpp:195 (SetPreallocBufferSize) ALSA: Setting
> hardware audio buffer size to 128
> Jun 26 20:44:02 Jotun mythfrontend[5694]: E CoreContext
> audio/audiooutputalsa.cpp:211 (SetPreallocBufferSize) ALSA: Error
> opening /proc/asound/card0/pcm3p/sub0/prealloc: Permission d
> enied.
> Jun 26 20:44:02 Jotun mythfrontend[5694]: E CoreContext
> audio/audiooutputalsa.cpp:213 (SetPreallocBufferSize) ALSA: Try to
> manually increase audio buffer with: echo 128 | sudo tee /p
> roc/asound/card0/pcm3p/sub0/prealloc
> Jun 26 20:44:02 Jotun mythfrontend[5694]: E CoreContext
> audio/audiooutputalsa.cpp:545 (OpenDevice) ALSA: Unable to
> sufficiently increase ALSA hardware buffer size - underruns are lik
> ely
> Jun 26 20:44:02 Jotun mythfrontend[5694]: E CoreContext
> audio/audiooutputalsa.cpp:975 (OpenMixer) ALSA: no playback control
> PCM found on mixer device default
> Jun 26 20:44:02 Jotun mythfrontend[5694]: E CoreContext
> audio/audiooutputalsa.cpp:550 (OpenDevice) ALSA: Unable to open audio
> mixer. Volume control disabled
> Jun 26 20:44:02 Jotun mythfrontend[5694]: I CoreContext
> mythpainter_ogl.cpp:62 (ClearCache) Clearing OpenGL painter cache.
>
> ##WHY IS IT TRYING TO USE VDPAU?  DEFAULT FALL BACK?
> Jun 26 20:44:02 Jotun mythfrontend[5694]: E CoreContext
> mythrender_vdpau.cpp:1539 (CreateDevice) VDPAU: Error at
> mythrender_vdpau.cpp:1539 (#1, Unknown)
> Jun 26 20:44:02 Jotun mythfrontend[5694]: E CoreContext
> mythrender_vdpau.cpp:1543 (CreateDevice) VDPAU: Failed to create VDPAU
> device.
> Jun 26 20:44:02 Jotun mythfrontend[5694]: E CoreContext
> mythrender_vdpau.cpp:389 (Create) VDPAU: No VDPAU device
> Jun 26 20:44:02 Jotun mythfrontend[5694]: E CoreContext
> mythrender_vdpau.cpp:405 (Create) VDPAU: Failed to create VDPAU render
> device.
> Jun 26 20:44:02 Jotun mythfrontend[5694]: E CoreContext
> videoout_vdpau.cpp:147 (InitRender) VidOutVDPAU: Failed to initialise
> VDPAU
> Jun 26 20:44:02 Jotun mythfrontend[5694]: I CoreContext
> openglvideo.cpp:230 (Init) GLVid: Using custom UYVY input textures.
> Jun 26 20:44:02 Jotun mythfrontend[5694]: I CoreContext
> mythplayer.cpp:1738 (InitAVSync) Player(3): Video timing method: DRM
> Jun 26 20:44:02 Jotun mythfrontend[5694]: I CoreContext
> tv_play.cpp:5167 (StartPlayer) TV: Created player.
> Jun 26 20:44:02 Jotun mythfrontend[5694]: I CoreContext
> tv_play.cpp:2358 (HandleStateChange) TV: Changing from None to
> WatchingVideo
> Jun 26 20:44:02 Jotun mythfrontend[5694]: I CoreContext
> tv_play.cpp:2449 (HandleStateChange) TV: Main UI disabled.
> Jun 26 20:44:02 Jotun mythfrontend[5694]: I CoreContext
> tv_play.cpp:378 (StartTV) TV: Entering main playback loop.
> Jun 26 20:44:35 Jotun mythfrontend[5694]: E Decoder
> avformatdecoder.cpp:4374 (GetFrame) decoding error#012#011#011#011eno:
> Broken pipe (32)
> Jun 26 20:44:36 Jotun mythfrontend[5694]: I CoreContext
> tv_play.cpp:2121 (HandleStateChange) TV: Attempting to change from
> WatchingVideo to None
> Jun 26 20:44:36 Jotun mythfrontend[5694]: I CoreContext
> audio/audiopulsehandler.cpp:320 (SuspendInternal) Pulse: PulseAudio
> resume OK

I can't help you with the VDPAU issue, but I assume you created a new
playback profile for VAAPI with only one entry with no resolution
conditions (or just everything larger than 0,0), correct? You should
see what vainfo reports--that might give some clues. Check the other
intel/VAAPI thread for details about the drivers and library versions
I have installed and make sure you have at least all the required
packages. Also make sure your GUI painter is set to Auto or OpenGL or
VAAPI won't work.

Karl


More information about the mythtv-users mailing list