caching error when looping multiple player from same instance
Posted: 25 Jan 2016 15:09
Hi,
I'm playing videos using VLC (3.0.0-git Vetinari (revision 2.2.0-git-5479-gc4cd717)) qt5 + vaapi on linux to play video, and when libvlc_MediaPlayerEndReached I emit a qt signal and call libvlc_media_player_stop(); libvlc_media_player_play(); in the corresponding slot to restart the videos. I don't know if it's the best solution, but it works ok.
I'm trying the same trick starting 2 players on 2 different window from the same instance (or from different instance, the result seems the same) but when I start the video for the second time I'm getting:
On the the second endreached, the result is a bit better as I don't get the core input error and the restart is faster.
I don't get any of these errors when playign only one video.
Any idea of what I may be doing wrong?
Thanks!
I'm playing videos using VLC (3.0.0-git Vetinari (revision 2.2.0-git-5479-gc4cd717)) qt5 + vaapi on linux to play video, and when libvlc_MediaPlayerEndReached I emit a qt signal and call libvlc_media_player_stop(); libvlc_media_player_play(); in the corresponding slot to restart the videos. I don't know if it's the best solution, but it works ok.
I'm trying the same trick starting 2 players on 2 different window from the same instance (or from different instance, the result seems the same) but when I start the video for the second time I'm getting:
The second video stops playing for a bit, and the first video ends ups starting after a couple of seconds.[b2a27204] cache_read stream error: cannot pre fill buffer
[b2a27204] es demux error: cannot peek (4x)
[b2a27204] ps demux error: cannot peek
[b2a27204] mjpeg demux error: cannot peek
[b2a27204] mpgv demux error: cannot peek
[0895504c] core input error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 300 ms)
[0895504c] core input error: ES_OUT_RESET_PCR called
[b2a27204] ps demux error: cannot peek
[b2a59eec] core input source error: cannot parse file:///
On the the second endreached, the result is a bit better as I don't get the core input error and the restart is faster.
I don't get any of these errors when playign only one video.
Any idea of what I may be doing wrong?
Thanks!