How to implement filter_complex on the PHP-FFMpeg

Viewed 158

How to using filter_complex on the PHP-FFMpeg? I need to implement the following FFMpeg command:

ffmpeg -i test.mp4 -filter_complex \
"[0:v]trim=start=10:end=11,setpts=PTS-STARTPTS[a]; \
 [0:v]trim=start=20:end=21,setpts=PTS-STARTPTS[b]; \
  [a][b]concat[c]; \
 [0:v]trim=start=30:end=31,setpts=PTS-STARTPTS[d]; \
 [0:v]trim=start=40:end=41,setpts=PTS-STARTPTS[f]; \
   [d][f]concat[g]; \
 [c][g]concat[out1]" -map [out1] testout.mp4
0 Answers
Related