ffmpeg: added trim example plus augmented precision to seconds (#2099)

italian
Francesco Yoshi Gobbo 2018-05-06 20:28:30 +02:00 committed by Agniva De Sarker
parent 57849426b3
commit a3ac6db8d2
1 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,10 @@
`ffmpeg -ss {{mm:ss}} -i {{video.mp4}} -frames 1 -s {{128x128}} -f image2 {{image.png}}`
- Trim a video from a given start time mm:ss to a duration of mm2:ss2 from that time. (Omit the -t flag to trim till the end):
`ffmpeg -ss {{mm:ss}} -i {{video.mp4}} -codec copy -t {{mm2:ss2}} {{output.mp4}}`
- Convert AVI video to MP4. AAC Audio @ 128kbit, h264 Video @ CRF 23:
`ffmpeg -i {{input_video}}.avi -codec:audio aac -b:audio 128k -codec:video libx264 -crf 23 {{output_video}}.mp4`