yangjie10930/EpMedia

什么时候可以添加视频转gif的功能

tyl210110 opened this issue · 4 comments

什么时候可以添加视频转gif的功能

自定义命令:
-y -ss 2 -t 5 -i in.mp4 -s 300x200 - r 10 out.gif

2秒到5秒 大小300x200 10帧

@tyl210110 @yangjie10930 我按照上面的写法 报错了
E/FFmpeg_EpMedia: Unable to find a suitable output format for 'pipe:'
E/FFmpeg_EpMedia: pipe:: Invalid argument
能帮我解答一下吗?

String execCmd = "-y -ss 0 -t 2 -i " + localFilePath + " -s " + w + "x" + h + " - r 20 " + localGifPath;
EpEditor.execCmd(execCmd, 2000, new OnEditorListener() {}

我的 命令 -y -ss 0 -t 2 -i /storage/emulated/0/Android/data/包名/cache/mopin/1545914745700.mp4 -s 540x540 - r 20 /storage/emulated/0/Android/data/包名/cache/mopin/1545914763726.gif

ffmpeg -y -ss 00:00:05 -t 00:00:02 -i /storage/emulated/0/1/input.mp4 -s 540x960 -r 8 -preset superfast /storage/emulated/0/1/result.gif
试试这个