caching error when looping multiple player from same instance

This forum is about all development around libVLC.
myun
New Cone
New Cone
Posts: 2
Joined: 25 Jan 2016 14:55

caching error when looping multiple player from same instance

Postby myun » 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:
[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:///
The second video stops playing for a bit, and the first video ends ups starting after a couple of seconds.
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!

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: caching error when looping multiple player from same instance

Postby Rémi Denis-Courmont » 25 Jan 2016 15:33

No data received.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

myun
New Cone
New Cone
Posts: 2
Joined: 25 Jan 2016 14:55

Re: caching error when looping multiple player from same instance

Postby myun » 25 Jan 2016 15:36

Thanks for the quick reply, however I'm not sure how to interpret it.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 19 guests