如何用FFmpeg在几秒钟之间剪切视频?

时间:2017-08-08 10:45:35

标签: android ffmpeg trim

例如:

startMs = 2.4.   
endMs = 5.4  
I have tried this code:  
String[] complexCommand = {"-i", yourRealPath, "-ss", "" + startMs, "-acodec", "copy", "-vcodec", "copy", "-t", "" + (endMs - startMs), dest.getAbsolutePath()};

但是切割过程发生在Full值(int值)......从“sec 2”到“sec 5”
有没有办法用“浮动值”剪切视频?
感谢

1 个答案:

答案 0 :(得分:0)

你不能使用时间戳吗?类似的东西:

SELECT * FROM `orders` WHERE user_id = '1578' AND delivery_fee = '2000' AND DATE_FORMAT(created_at, '%Y') = YEAR(CURDATE())

{{3}}

你可能需要调整一些东西而我现在无法测试,但这是一次尝试。祝你好运!