Adding a watermark to MP4 with FFmpeg, compatible with Flash and HTML5 players
- by ?????? ?????
How can I add watermark to my MP4 (compatible with Flash player and HTML5 player)?
ffmpeg -y -i video.mp4 -acodec copy -b 400k -vf "movie=logo.png [watermark]; [in][watermark] overlay=main_w/2-overlay_w/2:main_h/2-overlay_h/2 [out]" /var/www/videos/out.mp4
The above command works fine in VLC, Windows Media Player, but the HTML5 player can't play out.mp4, Flash player plays only sound.
ffmpeg was installed with this command:
sudo apt-get install ffmpeg.
What am I doing wrong?