[FFmpeg-user] Getting issue in command prompt because of exceeded string limit

MANI PADDA paddastudy at gmail.com
Wed Jun 23 09:51:44 EEST 2021


how to get multiple inputs in FFmpeg using inp.txt file
here is original command :
ffmpeg -i sample.mp4 -i img0.png -i img1.png -i img2.png
-filter_complex
"[0][1]overlay=x=20:y=20:enable='between(t,1.5,1.8)'[v1];
[v1][2]overlay=x=20:y=20:enable='between(t,1.8,3)'[v2];
[v2][3]overlay=x=20:y=20:enable='gt(t,3)'[v3]"         -map "[v3]"
-map 0:a  outa.mp4


but I tried to get inputs from *inp.txt (I have sent this file in
attachment)* here is that command :


ffmpeg -f concat -i inp.txt -filter_complex
"[0][1]overlay=x=20:y=20:enable='between(t,1.5,1.8)'[v1];
[v1][2]overlay=x=20:y=20:enable='between(t,1.8,3)'[v2];
[v2][3]overlay=x=20:y=20:enable='gt(t,3)'[v3]"  -map "[v3]" -map 0:a
outa.mp4
but the above command is showing an error ::
*Invalid file index 0 in filtergraph description
 [0][1]overlay=x=20:y=20:enable='between(t,0,1)'[v1];*

I donot know how to give inputs by using input file

 I am attaching my inp.txt file.
the first input is of mp4 type and the rest are of .png

>
>
>
-------------- next part --------------
file 'sample.mp4'
file 'img0.png'
file 'img1.png'
file 'img2.png'


 


More information about the ffmpeg-user mailing list