PDA

View Full Version : Save a stream to file and simultaneously play it in VLC


ollolollo
09-15-2014, 05:25 AM
Hello,
I don't know if the following command should work, but it doesn't as required.
rtmpdump -r "rtmp://mtvnyc.dyndns.tv/repeater/MayapurTV" -a "repeater/MayapurTV" -f "WIN 15,0,0,152" -W "http://mayapur.tv/Nrsimhadeva.swf" -p "http://mayapur.tv/" -y "MayapurTV" -o "MayapurTV.flv" | C:\Programme\VideoLAN\VLC\vlc.exe
I want to play the livestream with VLC player and simultaneously save it to a file. The stream will saved correctly, VLC starts but doesn't play the stream.

hasomaso
09-15-2014, 05:36 AM
i do not know if that's possible simultaneously?
but recording and playing with vlc separately works fine

ollolollo
09-15-2014, 01:27 PM
Thank You.
That solves the problem.
I found out the following, which is also working:
rtmpdump -r "rtmp://mtvnyc.dyndns.tv/repeater/MayapurTV" -a "repeater/MayapurTV" -f "WIN 15,0,0,152" -W "http://mayapur.tv/Nrsimhadeva.swf" -p "http://mayapur.tv/" -y "MayapurTV" -o "MayapurTV.flv" | C:\Programme\VideoLAN\VLC\vlc.exe MayapurTV.flvorrtmpdump -r "rtmp://mtvnyc.dyndns.tv/repeater/MayapurTV" -a "repeater/MayapurTV" -f "WIN 15,0,0,152" -W "http://mayapur.tv/Nrsimhadeva.swf" -p "http://mayapur.tv/" -y "MayapurTV" -o "path_to_the_file\MayapurTV.flv" | C:\Programme\VideoLAN\VLC\vlc.exe path_to_the_file\MayapurTV.flv where "path_to_the_file" has to be replaced by the real path. Sometimes VLC is playing the stream, but often I have to press the play button first to start the stream playing. I don't know how to achieve, that VLC plays the stream everytime then the command is entered, without the need for klicking the play button.