Monday, June 1, 2009

superimpose images and video with ffmpeg | vhooks

?? : to place or lay over or above something "superimposed images" ??
links and more detailed info at bottom of post.
******************************
extrack still A image with ffmpeg.
(-itsoffset 0 ) =start at frame zero.
(-vcodec png) = were extracting to a png file.
(-an) = audio no
=================
####################
PART 1 of 3 $ ffmpeg -itsoffset 0 \ -i source1file.mov -vcodec png \ -vframe 1 -an -format rawvideo \ -s 320x240 still-image1.png (sample video posted here http://wardcraft.blogspot.com/2009/05/loop-still-png-image-to-mpeg-video-with.html) ----------------------------------------------- #################### # PART 2 of 3 NOW extend the still image into a short STILL movie clip. (-t 3) = three seconds.
$ ffmpeg -loop_input -i still-image1.png \ -r 29.97 -t 3 -qscale 2 still-background-video1.mpg -----------------------
#######################
# PART 3 of 3 .
# use vhook to super_impose a rising video.????

$ ffmpeg -i still-background-video1.mpg -vhook \
'/usr/lib/vhook/imlib2.so -x 0 \
-y (-N*3) -i foreground-pic.png' \
-qscale 2 -an superIMposed-vids.mpg
____________________________
#////////////////////////
#/////////////////
#/////////////
#////////
#///
#//
#/
ffmpeg -i *.avi -vhook \
'/usr/lib/vhook/imlib2.so -x 0 \
-y (-N*3) -i foreground-pic.png' \
-qscale 2 -an superIMposed-vids.mpg
________________________
************************
links: has a ffmpeg how-to flash video sample..
http://www.linuxjournal.com/video/linux-howto-video-editing-magic-ffmpeg
______________________
**********************
links : is just a lot of text codes for ffmpeg..
http://read.pudn.com/downloads110/sourcecode/unix_linux/453401/ffmpeg/doc/hooks.texi__.htm
_____________________
*********************

No comments: