1
mirror of https://github.com/RealOrangeOne/notes.git synced 2024-06-29 06:56:59 +01:00
notes/notes/ffmpeg-remove-stream.md
2022-09-09 17:11:51 +01:00

406 B

title tags emoji link
Strip audio / subtitle stream with ffmpeg
Media
🎵 https://stackoverflow.com/a/38162168
ls -1 *.mp4 | xargs -I{} ffmpeg -y -i {} -map 0 -map -0:a:0 -c copy /path/to/out/{}

-map -0:a:0 removes the 0th audio stream.

  • v - video, such as -map -0:v
  • a - audio, such as -map -0:a
  • s - subtitles, such as -map -0:s
  • d - data, such as -map -0:d