On Thu, Nov 15, 2018 at 09:14:40AM +0530, Mettavihari D wrote: > Greetings > > I need a bit of help to understand how to use filter_complex > I have a video file where I need to insert a logo in the video file. > > I have been suggested the following command > > ffmpeg -y -threads 16 -i $FILE1.mp4 -i vidasa11.png -filter_complex > [1:v]scale=100:-1[logo]; "[0:v]scale=720:576[vid];" > [vid][logo]overlay=590:40[out] -map [out] -map 0:a -preset slower > -profile:v main -level 3.1 -c:v libx264 -g 24 -bf 3 -b_strategy 2 > -coder 1 -r 25000/1000 -b:v 1650k -maxrate:v 1650k -minrate:v 1650k > -bufsize:v 330k -flags +ilme+ildct -x264opts bff=1 -color_primaries 1 > -color_trc 1 -colorspace 1 -c:a mp2 -b:a 128k -nal-hrd cbr -muxrate > 1900k -f mpegts $FILE1.ts &> output.log & [snip] > This is my log file. > ./logo-comp-10to11-V0.sh: line 24: [0:v]scale=720:576[vid];: command not found > > Any hint on corrections in the command is much appreciated.
I would be sure all the text is in one line, e.g. ffmpeg -y -threads 16 -i $FILE1.mp4 -i vidasa11.png -filter_complex [1:v]scale=100:-1[logo]; "[0:v]scale=720:576[vid];" [vid][logo]overlay=590:40[out] -map [out] -map 0:a -preset slower -profile:v main -level 3.1 -c:v libx264 -g 24 -bf 3 -b_strategy 2 -coder 1 -r 25000/1000 -b:v 1650k -maxrate:v 1650k -minrate:v 1650k -bufsize:v 330k -flags +ilme+ildct -x264opts bff=1 -color_primaries 1 -color_trc 1 -colorspace 1 -c:a mp2 -b:a 128k -nal-hrd cbr -muxrate 1900k -f mpegts $FILE1.ts &> output.log & or alternately paste this into the terminal: ffmpeg -y -threads 16 -i $FILE1.mp4 -i vidasa11.png -filter_complex \ [1:v]scale=100:-1[logo]; "[0:v]scale=720:576[vid];" \ [vid][logo]overlay=590:40[out] -map [out] -map 0:a -preset slower \ -profile:v main -level 3.1 -c:v libx264 -g 24 -bf 3 -b_strategy 2 \ -coder 1 -r 25000/1000 -b:v 1650k -maxrate:v 1650k -minrate:v 1650k \ -bufsize:v 330k -flags +ilme+ildct -x264opts bff=1 -color_primaries 1 \ -color_trc 1 -colorspace 1 -c:a mp2 -b:a 128k -nal-hrd cbr -muxrate \ 1900k -f mpegts $FILE1.ts &> output.log & ok? > with metta > Mettavihari > _______________________________________________ > ffmpeg-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > [email protected] with subject "unsubscribe". -- Joel Roth _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
