[vlc-devel] Libvlc how to play stream data incoming by a buffer

aurquiel . aurquiel at gmail.com
Mon Mar 13 14:05:28 CET 2017


I developed an aplication that receives TS (Transport stream packets) in a
buffer of 2014 bytes, then the buffer was wrote to a file called "data.ts"
and after will call the libvlc to reproduce it. This is happening in
diferent threads, one thread is receiving and the main thread of my
aplication allocates the vlc player (Just open the file and play it)

The problem of that is that the file comes bigger to quickly if you keep
playing the video enough time could fill for complete your hard driver.

How would be a good aproach to resolve that problem?

Trying to handle the file and vlc to set a file size so when reach certain
position in the file, the writting buffer will start in the begining of the
file and vlc seek to the begining of the file too.

Or is there another function in libvlc that can help my to fire data from
the buffer to the player.?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20170313/0f86fcc9/attachment.html>


More information about the vlc-devel mailing list