ffmpeg-rs icon indicating copy to clipboard operation
ffmpeg-rs copied to clipboard

How can I use it to cut video?

Open hellostephanie2022 opened this issue 2 years ago • 1 comments
trafficstars

I see that the av_seek_frame method is included in this source code, which is not available in [rust-ffmpeg](https://github.com/zmwangx/rust-ffmpeg), I wonder if it currently supports cutting video ?

This looks like this on the command line of ffmpeg: ffmpeg -ss 30 -i input.wmv -c copy -t 10 output.wmv, can you tell me how to do it?

hellostephanie2022 avatar Jan 06 '23 05:01 hellostephanie2022

As this project is merely a wrapper around the FFmpeg API, the official documentation would be the best place to find more information on this topic. That being said, I'd suggest taking a look at the transcoding example to get a general idea on how to transcode a video. The example can be modified to support seeking of the input video, which should achieve what you described.

nullsauce avatar Jan 27 '23 18:01 nullsauce