You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
644 B

# straight copy
ffmpeg -ss 00:05:00 -i /var/lib/mythtv/recordings/1061_20181210162900.ts -to 00:02:00 -c copy 1061_20181210162900-cut.ts
# decent visual quality, 31M vs 237M for straight copy
ffmpeg -ss 00:05:00 -i /var/lib/mythtv/recordings/1061_20181210162900.ts -to 00:02:00 -c:v libx264 -preset slow -crf 20 -filter:v scale=800:-1,setdar=16/9 -c:a copy 1061_20181210162900-cut-800x-1.ts
# subtitles
ffmpeg -f lavfi -i movie=1061_20181210162900-cut.ts[out+subcc] -map 0:1
ffmpeg -f lavfi -ss 00:05:00 -i movie=/var/lib/mythtv/recordings/1061_20181210162900.ts[out+subcc] -to 00:02:00 -map 0:1