Buffering behaviour of file/fifo vs network

This forum is about all development around libVLC.
jdwiegman
New Cone
New Cone
Posts: 8
Joined: 29 May 2013 20:11

Buffering behaviour of file/fifo vs network

Postby jdwiegman » 17 Mar 2015 19:33

I have an application where I take transport stream formatted content, pass it through some analysis, and then send it through a Linux named pipe to be read by a libVLC instance. I have found some content with extreme errors that causes VLC to stop reading from the fifo for a period of time, which is causing a back log in my write buffer. I see the same behaviour if I simply pass a file through to VLC via a normal pipe. The pipe write behaviour looks like:

Image.

If I playout the same file over UDP and recieve it in VLC, the buffering is fine... similarily if I play in using another player through a pipe (FFPLAY), the behaviour is ok and the buffering looks like:
Image.

When receiving over network, I get messages of audio and video frames being dropped that I don't when reading over file. I've tried adjusting --file-caching but it has no effect on this behaviour. Is there any other setting I can adjust to have VLC play 'file' content like it does over a network? It seems when it treats the content as real-time it just drops it when its getting overrun, but over a file it will try and make sense of the content coming in (sorting bad/out of order packets, etc) and just pause the incoming data until it is caught up.

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

Re: Buffering behaviour of file/fifo vs network

Postby Rémi Denis-Courmont » 17 Mar 2015 20:10

The caching code in VLC is beyong its age and needs fixing. There are no magic work-arounds here.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 14 guests