Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

拼接视频concat filter不能用 #78

Open
alienwings opened this issue Sep 3, 2019 · 3 comments
Open

拼接视频concat filter不能用 #78

alienwings opened this issue Sep 3, 2019 · 3 comments

Comments

@alienwings
Copy link

alienwings commented Sep 3, 2019

ffmpeg -i video1.avi -i video2.avi -filter complex “[0:v:0] [0:a:0] [1:v:0] [1:a:0] concat=n=2:v=1:a=1 [v] [a]” -map “[v]” -map “[a]” output_video.avi

由于demo里空格的问题,自己转成数组后调用runFFmpegCmd,返回ffmpeg_parse_options_error错误,请问一下是什么原因?谢谢

@microshow
Copy link
Owner

检查一下命令,或者查看一下本文的命令例子,有介绍

@mxruan
Copy link

mxruan commented Mar 25, 2020

ffmpeg -i video1.avi -i video2.avi -filter complex“ [0✌️0] [0🅰️0] [1✌️0] [1🅰️0] concat = n = 2:v = 1:a = 1 [v] [a]” -map“ [v]” -map“ [a]” output_video.avi

由于demo里空格的问题,自己转成成片后调用runFFmpegCmd,返回ffmpeg_parse_options_error错误,请问一下是什么原因?谢谢

老哥,请问你最后是怎么解决的?我现在也遇到了同样的问题 。 感谢🙏

@sakurahongbocui
Copy link

同样的命令我直接使用mac端命令行,就可以成功执行,但是使用RxFFMpeg却提示“ ffmpeg_parse_options_error”!!!
1,以下命令将原视频三倍速输出,在MAC端执行成功
ffmpeg -y -i src.mp4 -filter_complex "[0:v]setpts=PTS/3[v];[0:a]atempo=3[a]" -map [v] -map [a] -preset superfast result.mp4
2,但在Android手机上,会提示ffmpeg_parse_options_error。
尝试过[0:v]setpts=PTS/3[v];[0:a]atempo=3[a]这一部分前后加双引号或去掉都不行。MAC端要加双引号才可以,去掉是不行的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants