vlc no error logged but does not write to file
Posted: 28 Oct 2011 16:33
Hi,
We are running a setup where vlc is being used to transcode rtmp urls serving live content to mp3 files and also publishing to a sdp file (which is then picked up by Wowza).
Usually the rtmp url would redirect to some music after the live content was over and because of this we found that sometimes vlc would overwrite the file and truncate it to zero.
To avoid this, we used a --play-and-stop parameter.
However, this meant we had to monitor the timestamp of the file and kill the vlc process manually.
Now we have a different problem, sometimes the vlc process is being killed much too early. We actually have a timeout of 5 mins (ie we check file has not been modified in 5 mins) before killing vlc.
Even then, every once in a while we kill vlc before the live stream is over.
On looking at the vlc logs, it does not indicate any network issue or other error causing it to stop playing. (we already use -vvv).
Is there anything we are missing or doing wrong here?
We are running a setup where vlc is being used to transcode rtmp urls serving live content to mp3 files and also publishing to a sdp file (which is then picked up by Wowza).
Usually the rtmp url would redirect to some music after the live content was over and because of this we found that sometimes vlc would overwrite the file and truncate it to zero.
To avoid this, we used a --play-and-stop parameter.
However, this meant we had to monitor the timestamp of the file and kill the vlc process manually.
Now we have a different problem, sometimes the vlc process is being killed much too early. We actually have a timeout of 5 mins (ie we check file has not been modified in 5 mins) before killing vlc.
Even then, every once in a while we kill vlc before the live stream is over.
On looking at the vlc logs, it does not indicate any network issue or other error causing it to stop playing. (we already use -vvv).
Is there anything we are missing or doing wrong here?