1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-30 04:17:58 +01:00

ffmpeg: simplified video trimming (#2232)

This commit is contained in:
Francesco Yoshi Gobbo 2018-08-12 18:20:09 +02:00 committed by Agniva De Sarker
parent 27b1b47f5f
commit 4a2d83c6af

View file

@ -18,9 +18,9 @@
`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):
- Trim a video from a given start time mm:ss to an end time mm2:ss2 (omit the -to flag to trim till the end):
`ffmpeg -ss {{mm:ss}} -i {{video.mp4}} -codec copy -t {{mm2:ss2}} {{output.mp4}}`
`ffmpeg -ss {{mm:ss}} -to {{mm2:ss2}} -i {{video.mp4}} -codec copy {{output.mp4}}`
- Convert AVI video to MP4. AAC Audio @ 128kbit, h264 Video @ CRF 23: