[FFmpeg-user] Unable to execute FFMPEG command

Ravi Kumar ravi.k at brihaspatitech.com
Wed May 16 09:14:06 EEST 2018


Hello Team,

Hope you people are doing well.

Actually i am working on video app there is video call between two 
people using twillio. After their call finish i am taking videos and 
audios files from their room id and trying to merge all in a single 
mp4/webm file but leaving with synchronization issue. To solve that 
issue i have read a tutorial(URL : 
https://gist.github.com/igracia/581a8dfb8b88aa624c1d456adc6affb2) 
suggested by ffmpeg and implemented code but some of the commands are 
not working well. so if any one can help there is great appreciation.

We have implemented the new code. and final command that is created for 
merging videos is as below

ffmpeg -i /var/www/html/swipr/uploads/test/video1.mkv -i 
/var/www/html/swipr/uploads/test/video2.mkv -acodec libopus -i 
/var/www/html/swipr/uploads/test/audio1.mka -acodec libopus -i 
/var/www/html/swipr/uploads/test/audio2.mka -y -filter_complex " 
[0]scale=512:-2,pad=512:768:(ow-iw)/2:(oh-ih)/2[vs0],color=black:size=512x768:duration=2.716[b0],[b0][vs0]concat[r0c0];\[1]scale=512:-2,pa=512:768:(ow-iw)/2:(oh-ih)/2[vs1],color=black:size=512x768:duration=0[b1],[b1][vs1]concat[r0c1];\[r0c0][r0c1]hstack=inputs=2[video];\[2]aresample=async=1,adelay=2743.0|2743.0[a0];[3]aresample=async=1,adelay=5.0|5.0[a1];\[a0][a1]amix=inputs=2[audio]" 
-map[video] \ -map[audio] \ -acodec libopus \ -vcodec libvpx \ output.webm

After trying above command with different scenarios we are getting 
following errors.

#1)[AVFilterGraph @ 0x67fef00] No such filter: ' '
Error initializing complex filters.
Invalid argument

#2)Unrecognized option 
'filter_complex\[0]scale=512:-2,pad=512:768:(ow-iw)/2:(oh-ih)/2[vs0],color=black:size=512x768:duration=2.716[b0],[b0][vs0]concat[r0c0];\[1]scale=512:-2,pa=512:768:(ow-iw)/2:(oh-ih)/2[vs1],color=black:size=512x768:duration=0[b1],[b1][vs1]concat[r0c1];\[r0c0][r0c1]hstack=inputs=2[video];\[2]aresample=async=1,adelay=2743.0|2743.0[a0];[3]aresample=async=1,adelay=5.0|5.0[a1];\[a0][a1]amix=inputs=2[audio]-map[video]-map[audio]-acodec'.
Error splitting the argument list: Option not found

#3)Unrecognized option 'map[video]'.
Error splitting the argument list: Option not found

If we remove all the filters then we are getting a final output but that 
is not useful

Thanks






-- 

Kindly Regards
*Ravi Kumar*

TBI Logo
Sr. PHP Developer

*The Brihaspati Infotech Pvt. Ltd.*
*T* +917696981981 +918146052020

F-169, Sector 74, Phase-8B
Industrial Focal Point, Mohali (Punjab)
www.brihaspatitech.com <http://www.brihaspatitech.com>


More information about the ffmpeg-user mailing list