This #ffmpeg command string adds a watermark to the input mp4, but it's clobberi...

@pronounshe@lgbtqia.space

This #ffmpeg command string adds a watermark to the input mp4, but it's clobbering the audio of the input mp4 and I can't figure out why:

ffmpeg -i ./"$vfil" -i ./Watermarks/"$wtr".png -filter_complex "[0:v][1:v]overlay=800:800[outv]" -map [outv] -c:a aac -c:v libx264 -crf 22 ./"$vfil"_marked.mp4

The input mp4 is already encoed with both aac and libx264 formats, but just using -c:a copy and -c:v copy still results in the output file having no audio.

This string preserves the audio, but isn't embedding the png watermark:

ffmpeg -i "$vfil" -i ./Watermarks/"$wtr".png -map 1 -map 0 -c:a copy -c:v copy -disposition:0 attached_pic "$vfil"_marked.mp4

#AskFedi