Am Sat, 18 Mar 2017 17:48:45 +0100 schrieb tu...@posteo.de: > Hi, > > very often I use mpv to watch videos. > > On my old root, the start of that tool > was nearly instantly. > > With my new root, it seems, that mpv > is waiting for something. For example: > > Playing: <Some videoZ=> > [ffmpeg/demuxer] flv: video stream discovered after head already > parsed [ffmpeg/demuxer] flv: audio stream discovered after head > already parsed (+) Video --vid=1 (h264) > (+) Audio --aid=1 (aac) > AO: [alsa] 48000Hz stereo 2ch float > VO: [opengl] 480x360 yuv420p > > The above is printed instantly onto the console...than it waits > ~5 seconds, then the video is started and this is printed > and updated: > > AV: 00:00:00 / 01:25:09 (0%) A-V: 0.000 > > > . This happens with flv, mp4 but it happens to pure audio > files like ogg and wav also. > > I have no idea, for what mpv is waiting for -- but it annoys me. > > > Is it fixable...and > if( true ) > then > how( "?" ) > fi > > :)
There's a good chance it's waiting for pulseaudio autospawning... Did you try starting pulseaudio manually first, then mpv? Just to see if it makes a difference? Maybe add your user to the audio group... Or remove him from the group. Can make a difference. A modern system should not need the user to be in video and audio groups as udev/policykit should do proper ACL setups. Having those groups added to the user may even make problems occur (at least that happened to me once). Also, you could start mpv with strace and see at which point the system waits, then inspect the previous function calls. If it's a permission error, you should see errors. If you start processes with "sudo" and not "sudo -i" or "sudo -H", there's a slight chance that root is already owning files in your $HOME. Please check this: # find $HOME -user root And fix it if it finds something: # find $HOME -user root -print0 | sudo xargs -0 chown $(id -u) -- Regards, Kai Replies to list-only preferred.