A Blog about technology, linux, peer2peer, cool new downloads and software development.

Monday, September 21, 2009

ubuntu linux - how to watermark a video from cli


# Download video from youtube :
sudo apt-get install youtube-dl
youtube-dl -b -l "link to youtube video"
[or: youtube-dl -b -t "link to youtube video"]

sudo apt-get isntall ffmpeg

ffmmpeg -i in.flv out.avi
--------------------------
sudo apt-get install avidemux avidemux2_cli

# prepare the logo
cat > logo.avidemux_filters
<?xml version="1.0"?>
<filters FilterNumber="1">
<Filter Tag="79" Conf="Logo at 0 0, alpha 194067208">
<Parameters Number="4">
<image>/tmp/dollar-small.png</image>
<x>0</x>
<y>0</y>
<alpha>255</alpha>
</Parameters>
</Filter>
</filters>
<ctrl>-d

avidemux2_cli --load "41wL9Nko4aI.flv" --audio-codec MP3 --video-codec XVID4 --filters "logo.avidemux_filters" --output-format AVI --save "myvideo01avi" --quit

1 comment:

Michael said...
This comment has been removed by the author.