User Tools

Site Tools


ffmpeg:encoding:batch_encode_all_files_in_a_directory

ffmpeg - Encoding - Batch encode all files in a directory

for f in *.mp4; do ffmpeg -i "$f" "${f%.*}.mp4"; done
 
for f in *.mp4; do ffmpeg -i "$f" <additional options> "encoded/${f%.*}.mp4"; done

for %f in (*.mkv) do ffmpeg -i %f <additional options> %~nf.mp4

NOTE:

  • ~n: Removes the extension from the filename in batch mode.
ffmpeg/encoding/batch_encode_all_files_in_a_directory.txt · Last modified: 2023/11/02 20:54 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki