8 lines
644 B
Plaintext
8 lines
644 B
Plaintext
|
# 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 1061_20181210162900.srt
|
||
|
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 1061_20181210162900.srt
|