for f in The.Pitt.S01E*.mkv; do ffmpeg -i "$f" -c:v libx265 -crf 22 -preset medium \ -c:a aac -b:a 128k \ "$f%.mkv.hevc.mp4" done
ffmpeg -i input.mp4 -ss 00:00:10 -t 00:00:30 -c copy output.mp4 the pitt s01e14 ffmpeg
This command trims a 1-minute segment starting from 10 seconds into the video. for f in The
From 00:12:30 to 00:15:45 :
If subs are in the MKV: