banner
Tenifs

Tenifs

雄关漫道真如铁,而今迈步从头越。
github
follow
zhihu
email

Separate video stream and audio stream using ffmpeg

The video contains video stream and audio stream. If a video only has a video stream, then there will be only visuals without sound, and vice versa.

View the two streams in the video#

ffmpeg -i test.mp4

Using parameters -vcodec copy -an and -acodec copy -vn can separate the video stream and audio stream.

Separate the video#

ffmpeg -i test.mp4 -vcodec copy -an output.mp4

Separate the audio#

ffmpeg -i test.mp4 -acodec copy -vn output.aac

Directly transcode the video to mp3 format#

ffmpeg -i test.mp4 output.mp3
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.