[FFmpeg-user] creating a transparent Video from PNG or Gif files

srakesh rakesh.sankz at gmail.com
Mon Jun 11 15:52:21 CEST 2012


I am facing the similar problem and I couldn't get same output that you get.
Please help:

This is what I have done so far:

*Command to create a transparent PNG image:*

convert -size 640x480 -background transparent -fill blue \
-gravity South label:ROCK image1-0.png

*Command to create a transparent video:*

ffmpeg -loop 1 -f image2 -i image1-0.png -r 20 -vframes 100 \
-vcodec png -pix_fmt bgra mov-1.mov
(as per this post) - I expect this video to be a transparent video.

*Command to overlay a video with another:*

ffmpeg -i final-video.mov -sameq -ar 44100 \
-vf "movie=mov-1.mov [logo];[in][logo] overlay=0:0 [out]" \
-strict experimental final-video.mov

Above commands works perfect and I have not faced any problem, but I don't
get what I expect which is kinda watermarking effect, I want mov-1.mov to be
transparent with final-video.mov.

Please help.
Lorenz Martens wrote
> 
> thanks a million 
> that helped me a lot!
> 
> kind regards
> Lorenz 
> 
> Am 05.01.2012 um 20:27 schrieb Carl Eugen Hoyos:
> 
>> Please try
>> ffmpeg -loop 1 -s 4cif -i label1-0.gif -r 25 -vframes 250 -vcodec png
>> -pix_fmt
>> bgra test.mov
> 
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user@
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 

Lorenz Martens wrote
> 
> thanks a million 
> that helped me a lot!
> 
> kind regards
> Lorenz 
> 
> Am 05.01.2012 um 20:27 schrieb Carl Eugen Hoyos:
> 
>> Please try
>> ffmpeg -loop 1 -s 4cif -i label1-0.gif -r 25 -vframes 250 -vcodec png
>> -pix_fmt
>> bgra test.mov
> 
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user@
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 

Lorenz Martens wrote
> 
> thanks a million 
> that helped me a lot!
> 
> kind regards
> Lorenz 
> 
> Am 05.01.2012 um 20:27 schrieb Carl Eugen Hoyos:
> 
>> Please try
>> ffmpeg -loop 1 -s 4cif -i label1-0.gif -r 25 -vframes 250 -vcodec png
>> -pix_fmt
>> bgra test.mov
> 
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user@
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 


--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/image-Overlay-tp4253142p4650831.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list