Keep original video and change only audio codec

About encoding, codec settings, muxers and filter usage
carlos_am_2003
Blank Cone
Blank Cone
Posts: 12
Joined: 17 Aug 2023 22:50

Keep original video and change only audio codec

Postby carlos_am_2003 » 18 Aug 2023 22:02

Hello!

I have a video file (avc video and ac3 audio). I need, using command line, convert only the audio to aac. How can I do this?

Using ffmpeg we have vcodec=copy but how we can do this using VLC command line?

I tried:

Code: Select all

--sout="#transcode{vcodec=dump,acodec=aac,ab=128,channels=2,samplerate=48000}
and

Code: Select all

--sout="#transcode{vcodec=keep,acodec=aac,ab=128,channels=2,samplerate=48000}
and

Code: Select all

--sout="#transcode{vcodec=copy,acodec=aac,ab=128,channels=2,samplerate=48000}
Help me please!

Rémi Denis-Courmont
Developer
Developer
Posts: 15272
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Keep original video and change only audio codec

Postby Rémi Denis-Courmont » 19 Aug 2023 18:06

Don't specify a video codec at all.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

carlos_am_2003
Blank Cone
Blank Cone
Posts: 12
Joined: 17 Aug 2023 22:50

Re: Keep original video and change only audio codec

Postby carlos_am_2003 » 19 Aug 2023 19:22

Perfect!
Thanks!


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 9 guests