Transcode audio but not video when recording a stream

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
mowsala
New Cone
New Cone
Posts: 2
Joined: 28 Sep 2015 09:42

Transcode audio but not video when recording a stream

Postby mowsala » 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:

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?

exedor
New Cone
New Cone
Posts: 6
Joined: 30 Sep 2015 09:53

Re: Transcode audio but not video when recording a stream

Postby exedor » 30 Sep 2015 17:42

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})"

mowsala
New Cone
New Cone
Posts: 2
Joined: 28 Sep 2015 09:42

Re: Transcode audio but not video when recording a stream

Postby mowsala » 02 Oct 2015 15:00

I had assumed that kind of syntax would result in an AVI file with no video stream.
Thank you, it works :)


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 119 guests