Basically i am doing this:
for i in *.mp4;
do ffmpeg -i "${i}" -vf "movie=logo.png [watermark]; [in][watermark] overlay=10:10 [out]" -strict -2 -qscale 0 "${i}-watermarked.mp4";
done;
but this effectively does this command
do ffmpeg -i "video.mp4" -vf "movie=logo.png [watermark];\
[in][watermark] overlay=10:10 [out]" -strict -2 -qscale 0 "video.mp4-watermarked.mp4";
the bit at the end - video.mp4-watermarked.mp4 is my issue. i want it to be video-watermarked.mp4.
how can i do this ?
basename
command to strip the first mp4 extension.