<p dir="ltr"><br>
On 30 Aug 2012 22:12, &quot;Richard&quot; &lt;<a href="mailto:peper03@yahoo.com">peper03@yahoo.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; Is anyone else having getting the error message &#39;Failed to get A/V sync&#39; when trying to play back a recording?  I don&#39;t get it all the time but it&#39;s often enough that it&#39;s irritating.  It doesn&#39;t seem to matter whether I select HD or SD material.<br>

&gt;<br>
&gt; I&#39;m running Mythbuntu 12.04 as a combined BE/FE with Myth v0.25.2-16-gd519276.  The graphics card is an NVidia GeForce 8400 GS using the 295.40 drivers.<br>
&gt;<br>
&gt; Here&#39;s an excerpt from the frontend log:<br>
&gt;<br>
&gt; Aug 30 21:19:57 dvr mythfrontend[2139]: I CoreContext tv_play.cpp:987 (TV) TV: Creating TV object<br>
&gt; Aug 30 21:19:57 dvr mythfrontend[2139]: N CoreContext mythmainwindow.cpp:2591 (PauseIdleTimer) Resuming idle timer<br>
&gt; Aug 30 21:19:57 dvr mythfrontend[2139]: N CoreContext mythmainwindow.cpp:2586 (PauseIdleTimer) Suspending idle timer<br>
&gt; Aug 30 21:19:57 dvr mythfrontend[2139]: I CoreContext tv_play.cpp:1206 (Init) TV: Created TvPlayWindow.<br>
&gt; Aug 30 21:19:57 dvr mythfrontend[2139]: I CoreContext tv_play.cpp:2121 (HandleStateChange) TV: Attempting to change from None to WatchingPreRecorded<br>
&gt; Aug 30 21:19:57 dvr mythfrontend[2139]: N CoreContext audioplayer.cpp:167 (ReinitAudio) AudioPlayer: Enabling Audio<br>
&gt; Aug 30 21:19:58 dvr mythfrontend[2139]: I CoreContext avformatdecoder.cpp:2102 (ScanStreams) AFD: Opened codec 0x19d7b70, id(H264) type(Video)<br>
&gt; Aug 30 21:19:58 dvr mythfrontend[2139]: I CoreContext avformatdecoder.cpp:1960 (ScanStreams) AFD: codec MP2 has 2 channels<br>
&gt; Aug 30 21:19:58 dvr mythfrontend[2139]: I CoreContext avformatdecoder.cpp:2102 (ScanStreams) AFD: Opened codec 0x34bf430, id(MP2) type(Audio)<br>
&gt; Aug 30 21:19:58 dvr mythfrontend[2139]: I CoreContext avformatdecoder.cpp:2102 (ScanStreams) AFD: Opened codec 0x7fb7840, id(DVB_SUBTITLE) type(Subtitle)<br>
&gt; Aug 30 21:19:58 dvr mythfrontend[2139]: I CoreContext avformatdecoder.cpp:1960 (ScanStreams) AFD: codec AC3 has 6 channels<br>
&gt; Aug 30 21:19:58 dvr mythfrontend[2139]: I CoreContext avformatdecoder.cpp:2102 (ScanStreams) AFD: Opened codec 0x50ca800, id(AC3) type(Audio)<br>
&gt; Aug 30 21:19:58 dvr mythfrontend[2139]: I CoreContext audio/audiooutputbase.cpp:791 (Reconfigure) AO: Opening audio device &#39;iec958:CARD=Intel,DEV=0&#39; ch 2(6) sr 48000 sf signed 16 bit reenc 1<br>
&gt; Aug 30 21:19:59 dvr mythfrontend[2139]: I CoreContext mythpainter_ogl.cpp:62 (ClearCache) Clearing OpenGL painter cache.<br>
&gt; Aug 30 21:19:59 dvr mythfrontend[2139]: I CoreContext mythrender_vdpau.cpp:1675 (CreatePresentationSurfaces) VDPAU: Created 2 output surfaces.<br>
&gt; Aug 30 21:19:59 dvr mythfrontend[2139]: I CoreContext mythrender_vdpau.cpp:401 (Create) VDPAU: Created VDPAU render device 1920x1080<br>
&gt; Aug 30 21:19:59 dvr mythfrontend[2139]: N CoreContext mythplayer.cpp:506 (CheckExtraAudioDecode) Player(4): Forcing decode extra audio option on (Video method requires it).<br>
&gt; Aug 30 21:19:59 dvr mythfrontend[2139]: I CoreContext mythplayer.cpp:1737 (InitAVSync) Player(4): Video timing method: USleep with busy wait<br>
&gt; Aug 30 21:19:59 dvr mythfrontend[2139]: I CoreContext tv_play.cpp:5169 (StartPlayer) TV: Created player.<br>
&gt; Aug 30 21:19:59 dvr mythfrontend[2139]: I CoreContext tv_play.cpp:2360 (HandleStateChange) TV: Changing from None to WatchingPreRecorded<br>
&gt; Aug 30 21:19:59 dvr mythfrontend[2139]: I CoreContext tv_play.cpp:2451 (HandleStateChange) TV: Main UI disabled.<br>
&gt; Aug 30 21:19:59 dvr mythfrontend[2139]: I CoreContext tv_play.cpp:378 (StartTV) TV: Entering main playback loop.<br>
&gt; Aug 30 21:19:59 dvr mythfrontend[2139]: I Decoder videoout_vdpau.cpp:627 (DrawSlice) VidOutVDPAU: Added 2 new buffers. New buffer size 16 (4 decode and 12 process)<br>
&gt; Aug 30 21:19:59 dvr mythfrontend[2139]: E Decoder mythrender_vdpau.cpp:734 (CreateDecoder) VDPAU: Error at mythrender_vdpau.cpp:734 (#23, The system does not have enough resources to complete the requested operation at this time.)<br>

&gt; Aug 30 21:19:59 dvr mythfrontend[2139]: E Decoder videoout_vdpau.cpp:670 (DrawSlice) VidOutVDPAU: Failed to create decoder.<br>
&gt; Aug 30 21:19:59 dvr mythfrontend[2139]: E Decoder videoout_vdpau.cpp:560 (DrawSlice) VidOutVDPAU: IsErrored() in DrawSlice<br>
&gt; Aug 30 21:19:59 dvr mythfrontend[2139]: E CoreContext videoout_vdpau.cpp:384 (ProcessFrame) VidOutVDPAU: IsErrored() in ProcessFrame<br>
&gt; Aug 30 21:19:59 dvr mythfrontend[2139]: E CoreContext mythplayer.cpp:1782 (AVSync) Player(4): AVSync: Unknown error in videoOutput, aborting playback.<br>
&gt; Aug 30 21:19:59 dvr mythfrontend[2139]: I CoreContext tv_play.cpp:2121 (HandleStateChange) TV: Attempting to change from WatchingPreRecorded to None<br>
&gt; Aug 30 21:19:59 dvr mythfrontend[2139]: W CoreContext mythplayer.cpp:2958 (PauseDecoder) Player(4): Waited 100ms for decoder to pause<br>
&gt; Aug 30 21:20:09  mythfrontend[2139]: last message repeated 99 times<br>
&gt; Aug 30 21:20:09 dvr mythfrontend[2139]: I CoreContext mythpainter_vdpau.cpp:111 (ClearCache) VDPAU Painter: Clearing VDPAU painter cache.<br>
&gt; Aug 30 21:20:09 dvr mythfrontend[2139]: I CoreContext tv_play.cpp:2360 (HandleStateChange) TV: Changing from WatchingPreRecorded to None<br>
&gt;<br>
&gt;<br>
&gt; The line that strikes me is:<br>
&gt;<br>
&gt; The system does not have enough resources to complete the requested operation at this time.)<br>
&gt;<br>
&gt; from the driver.  I would say 75-80% of the time everything works fine, so the card is perfectly capable of handling playback.<br>
&gt;<br>
&gt; It usually gets cleared up if I exit MythFrontend and start it again. Sometimes that&#39;s not enough and I have to kill MythWelcome as well.<br>
&gt;<br>
&gt; Is it possible that some VDPAU resources are sometimes not being cleaned up properly?<br>
&gt;<br>
&gt; In this particular case, we had been watching a recording and wanted to watch another.  The first recording had not been a problem.  After it finished, I moved around the menus a bit and then got this error when I tried to start the next recording.<br>

&gt;<br>
&gt; Occasionally, the popup &#39;Failed to get A/V sync&#39; appears and MythFrontend locks up completely.  I have to kill the process to continue.  The only thing that seems to be different in this case is that a tiny square appears in the top left corner of the popup, in case that gives anyone a clue as to what may be going wrong.<br>

&gt;<br>
&gt; If other traces are required I&#39;ll do my best to get them.  I haven&#39;t worked out yet exactly what causes this but it shouldn&#39;t take too long before it re-occurs.<br>
&gt;<br>
&gt; Any help/tips would be gratefully received!<br>
&gt;<br>
&gt; Richard.</p>
<p dir="ltr">Nothing very useful to add other than yes I see that too. Though I&#39;m on ubuntu 12.04 and 0.26. I&#39;ve not had a chance to investigate very far. </p>
<p dir="ltr">Stephen<br>
</p>