Page 1 of 1

Transcode audio but not video when recording a stream

Posted: 28 Sep 2015 09:55
by mowsala
I am trying to save a stream from an audio/video capture device on my local network. I want to do this via the command line interface. I am using VLC 2.2.1 for Windows. The following command works for me:

Code: Select all

vlc "rtsp://username:password@10.2.0.1:554/mpeg4/media.amp" --sout "#transcode{vcodec="theo",vb="512",fps="25",scale="1",acodec="mp3",channels="1",samplerate="8000"}:standard{access=file,mux=avi,dst=C:\output.avi})"
However, what I really want is to transcode the audio stream (to mp3 at 8000kHz, as in my current command) but NOT to transcode the video stream, and to store the original video stream muxed with the transcoded audio stream in an AVI container file.

Is this possible using VLC on the command line, and if so, can anyone help me as to how?

Re: Transcode audio but not video when recording a stream

Posted: 30 Sep 2015 17:42
by exedor
Then just don't transcode the video. Have you tried this?

Code: Select all

vlc "rtsp://username:password@10.2.0.1:554/mpeg4/media.amp" --sout #transcode{acodec="mp3",channels="1",samplerate="8000"}:standard{access=file,mux=avi,dst=C:\output.avi})"

Re: Transcode audio but not video when recording a stream

Posted: 02 Oct 2015 15:00
by mowsala
I had assumed that kind of syntax would result in an AVI file with no video stream.
Thank you, it works :)