

To cut a specific part of a video, you use the seeking option -ss to get to a specific part that you want to cut. We'll take a look at how to use the seeking parameter -ss, but you can also use other commands such as the trim filter. Cut/trim a video with FFmpegįFmpeg offers different commands that you can use to split up a video. We'll finish off by looking at how you can achieve the same results using Shotstack - a cloud-based video editing API. We'll look at some FFmpeg commands that you can use to trim a video into different parts and then see how you can take different videos and concatenate them into a single video.


We'll see how to do exactly that using FFmpeg - a command-line utility that can be used to create, edit and process different types of media. When editing a video, you might want to cut out some parts or you might want to stitch together different videos by cutting sections from different sources and concatenating them into a single video. In your app level adle, add a dependency for FFmpeg.A common feature of video editing applications is the ability to cut/trim videos. In order to use FFmpeg in your android project, you have to follow a few simple steps,ġ. I have developed a simple library that enables you to trim and crop a video, additionally you can compress any video and convert it into any format that you desire. To make it easy, I will summarise the basics of video manipulations using FFmpeg which, then you can use in your own applications or libraries that you are working on. I prefer FFmpeg-all which is a Bible for FFmpeg but it is difficult to read if you do not know what you are looking for. With the help of these tools, you can develop and application that can manipulate any form of media to the desired output. FFmpeg is a powerful multimedia framework which allows us to decode, encode, transcode, stream, filter and play most of the media content available now.
