Page 1 of 1

Streaming and Launching VLC

Posted: 22 Apr 2008 20:08
by davmt
Hi, im receiving a stream of data from a mobile phone via bluetooth and writing to a file. The file is a 3gp container encoded in h263 and audio in amr-nb.
I have been successfull in launching the player with the receiving file, prior to file completion.

My problem is now the following, I need to receive an amount of bytes prior to playing else VLC will not start playback.

How can I exactly know how much data I need prior to start playback, and
If I launch playback and the file is not ready to be opened (or let's say I have a buffer underrun) will VLC send a system error code so I can trap it and resume playback/restart playback?

Thanks
davi

Re: Streaming and Launching VLC

Posted: 29 Apr 2008 18:48
by davmt
hmm ok let me reformulate the question.
is there any way to open the vlc in stream mode but instead of supplying an IP address I supply a file? So that when playback finishes due to incomplete data it starts buffering rather than signalling end of playback?