Is it possible to Create sample movie ( mini movie) with ffmpeg?
Is it possible to create a mini movie ( if i have a movie which is 1 hour - i want 3 seconds o开发者_Go百科f it) with ffmpeg ?
How do i do it ?
This command will copy the first 3 seconds of input.avi
to output.avi
.
ffmpeg -ss 0 -t 3 -i input.avi -codec copy output.avi
This will stream copy (re-mux), so no encoding is occurring.
If you want to re-encode then remove -codec copy
:
ffmpeg -ss 0 -t 3 -i input.avi output.flv
精彩评论