[mythtv-users] Trylock has spun XX times - problems with .avi playback

Andrey Zhunev a-j at a-j.ru
Sat Oct 4 11:38:35 UTC 2014


>> On 3 Oct 2014, at 2:27 am, "Andrey Zhunev" <a-j at a-j.ru> wrote:
>> 
>> Hello All,
>> 
>> I asked this question on the forum, but got only 10 views over the
>> last 24 hours - so maybe the mailing list is more popular...
>> 
>> I'm running Myth 0.27.3 (build from a relatively fresh source) on a
>> CentOS 6.4. I have an issue with internal player while playing back
>> some .avi files. In some cases a video becomes "a slideshow" for a
>> couple of seconds (lots of frames get dropped while audio still sounds
>> smooth), then the playback continues normally. I think this happens
>> only in places where the video was previously cut and 'glued' back
>> together, so this looks to be an .avi file issue. But it only behaves
>> this way when played by Myth's internal player. The same video file
>> plays perfectly smooth in mplayer as well as several Windows-based
>> players that I tried.
>> 
>> Also, I see exactly the same behavior on my backend/frontend machine
>> running Intel video + VAAPI and on my dedicated frontend with an
>> NVIDIA + VDPAU. Both machines are powerful enough to handle the task
>> without being heavily loaded (the BE machine is a Core i7, SATA HDDs,
>> plenty of RAM, etc.). So this does not seem to be something
>> hardware-specific.
>> 
>> Whenever this happens, mythfrontend log shows 'TryLock has spun'
>> followed by 'Video is XX frames ahead of audio'. Full log is here:
>> http://pastebin.com/raw.php?i=vBRXeQ0u
>> 
>> The issue started long ago - I don't remember exactly when. I guess it
>> first appeared when I switched from 0.26 to 0.27 (or maybe when Myth
>> moved to using internal player by default). Now my wife complained
>> about this issue - so I have to find a solution!
>> 
>> 
>> 
>> -- 
>> Best regards,
>> Andrey                    
>> 
>> _______________________________________________

> Maybe try a demux / remux of one of your files to see if that
> cleans it up. I don't remember the ffmpeg switches (google will get
> you plenty of examples) but something like

> ffmpeg -i infile -acodec copy -vcodec copy outfile


I believe a demux / remux should help. I did it to some of my videos
already (due to another issue mostly related to inability to do a fast 
forward / rewind).

I thought I'm not the only one facing this issue, so I thought
something could be adjusted in the player itself... If not, I'll sort
it out for myself by going the demux / remux way.

Thanks!



-- 
Best regards,
 Andrey             






More information about the mythtv-users mailing list