for %f in (*.mp4) do @ffprobe -v error -of csv -show_entries format=filename:format_tags=title %f >> list.txt
ffmpeg -i <input-file> -preset fast -crf 18 -vf scale=720:-2 -an output.mp4
flags:
-
scales to 720 x <auto>
note that it's-2
and not-1
because sometimes ffmpeg complains about the dimension not divisble by 2. see here for answer. -
-an
removes audio channel
combine stream specifiers s
and m:key:value
to select the first matching subtitle:
ffmpeg -i file.mkv -map 0:s:m:language:eng eng_subtitle.srt
reference(s):