CocoaFFmpeg
CocoaFFmpeg copied to clipboard
Usage examples
Hello,
I'm am confused about how this ffmpeg app can be used in an iOS app.
Can you give example of usage in an Objective-C code ?
For example, is it possible to call an equivalent of this ffmpeg command line :
ffmpeg -i bg.mp4 -i video1.mp4 -i video2.mp4 -filter_complex \
"[0:v][1:v]setpts=PTS-STARTPTS,overlay=20:40[bg]; \
[bg][2:v]setpts=PTS-STARTPTS,overlay=(W-w)/2:(H-h)/2[v]; \
[1:a][2:a]amerge=inputs=2[a]" \
-map "[v]" -map "[a]" -ac 2 output.mp4
And replace bg.mp4
, video1.mp4
, video2.mp4
and output.mp4
with local file on the iOS device ?