Posted: . At: 12:27 PM. This was 2 years ago. Post ID: 15694
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.



Sponsored



How to encode a movie clip with FFmpeg and have the encoding start right away.


Encoding a movie clip with FFmpeg is very simple, but getting the encoding to start right away is the hard part.

Sometimes it will take many seconds to start, but this is due to the slow searching through the file looking for the right section.

Putting the “-ss 01:58:11” parameter before the “-i” parameter is the key to fixing this, it uses faster keyframes to search for the correct time in the video to begin encoding from.

┌──[jason@11000000.10101000.00000001.00000011][/media/jason/Seagate Expansion Drive/My Movies/F9]
└──╼  ╼ $ ffmpeg -ss 01:58:11 -i F9.mkv -t 16 -vf scale=640:480 -c:v libvpx -b:v 2700k -c:a libvorbis -threads 4 -sn space.webm

This will start encoding instantly and it is very efficient as well. Plus this gives very good video quality. A very neat and simple trick, this is awesome once you discover how to do it.

A neat and very simple trick, this is very useful for ripping a scene from a long video file. This will save a bit of time.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.