Transcode audio but not video when recording a stream
Posted: 28 Sep 2015 09:55
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:
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?
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})"
Is this possible using VLC on the command line, and if so, can anyone help me as to how?