Trim video with reference to a start time and end time using FFMPEG

て烟熏妆下的殇ゞ 提交于 2020-07-22 21:34:16

问题


I am trying to do an application in which I would like to give option to user to clip a video using double seekbar so that video can be cropped.

I had hassle importing FFmpeg into Eclipse. However, that pain is over, and I got two points of video and can instantiate FFmpeg's instant.

My focus is to know to know the method and procedure to crop a video.

I got the command of cutting it, that is,

ffmpeg -ss [start] -i in.mp4 -t [duration] -c:v copy -c:a copy out.mp4

However, how do I use this in code?

来源:https://stackoverflow.com/questions/28360691/trim-video-with-reference-to-a-start-time-and-end-time-using-ffmpeg

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!