Adding a watermark to MP4 with FFmpeg, compatible with Flash and HTML5 players
Posted
by
?????? ?????
on Ask Ubuntu
See other posts from Ask Ubuntu
or by ?????? ?????
Published on 2012-06-09T10:03:03Z
Indexed on
2012/06/09
10:47 UTC
Read the original article
Hit count: 285
ffmpeg
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?
© Ask Ubuntu or respective owner