level 11
asillychild
楼主
目的: 13-87秒加速为10倍速, 其它正常转码.
-i /storage/emulated/0/149.mp4 -filter_complex "[0:v]crop=720:576:280:32,split=3[1v][2v][3v],[1v]trim=0:13,setpts=PTS-STARTPTS[1],[2v]trim=13:85,setpts=(PTS-STARTPTS)/10[2],[3v]trim=85:178,setpts=PTS-STARTPTS[3],[0:a]atrim=0:13,asetpts=PTS-STARTPTS[a1],[0:a]atrim=13:85,asetpts=PTS-STARTPTS/10[a2],[0:a]atrim=85:178,asetpts=PTS-STARTPTS[a3],[1][2][3][a1][a2][a3]concat=n=3:v=1:a=1[gg][hh]" -map "[gg]" -map "[hh]" -crf 25 -ab 128k /storage/emulated/0/149+.mp4 -y
试了单独视频可以,但如果用上面的把音频加上
就以下出错
Parsed_setpts_5 @ 0xb3625300] Media type mismatch between the 'Parsed_setpts_5' filter output pad 0 (video) and the 'Parsed_concat_14' filter input pad 1 (audio)
[AVFilterGraph @ 0xb3617100] Cannot create the link setpts:0 -> concat:1
Error initializing complex filters.
Invalid argument
2019年02月25日 09点02分
1
-i /storage/emulated/0/149.mp4 -filter_complex "[0:v]crop=720:576:280:32,split=3[1v][2v][3v],[1v]trim=0:13,setpts=PTS-STARTPTS[1],[2v]trim=13:85,setpts=(PTS-STARTPTS)/10[2],[3v]trim=85:178,setpts=PTS-STARTPTS[3],[0:a]atrim=0:13,asetpts=PTS-STARTPTS[a1],[0:a]atrim=13:85,asetpts=PTS-STARTPTS/10[a2],[0:a]atrim=85:178,asetpts=PTS-STARTPTS[a3],[1][2][3][a1][a2][a3]concat=n=3:v=1:a=1[gg][hh]" -map "[gg]" -map "[hh]" -crf 25 -ab 128k /storage/emulated/0/149+.mp4 -y
试了单独视频可以,但如果用上面的把音频加上
就以下出错
Parsed_setpts_5 @ 0xb3625300] Media type mismatch between the 'Parsed_setpts_5' filter output pad 0 (video) and the 'Parsed_concat_14' filter input pad 1 (audio)
[AVFilterGraph @ 0xb3617100] Cannot create the link setpts:0 -> concat:1
Error initializing complex filters.
Invalid argument
