r1 - 15 May 2009 - 03:33:41 - PorchLightYou are here: TWiki >  Main Web > VideoToFLV

Overview

A set of seripts to covert any video to FLV format. Useful for embedding into a webpage with http://flowplayer.org/. I get very high quality with the below settings. The files are attached to this topic. No need to copy and paste.

if [ -e $1.flv ]; then.
echo *****SKIPPING $1******
 exit
fi

/usr/local/bin/ffmpeg -i "$1" -vcodec flv -deinterlace -f flv -ss 00:00:00 -r 15 -b 500kb -g 160 -cmp 2 -subcmp 2 -mbd 2 -flags +aic+cbp+mv0+mv4+trell -a
/usr/local/bin/ffmpeg -i "$1" -vcodec flv -deinterlace -f flv -ss 00:00:00 -r 15 -b 500kb -g 160 -cmp 2 -subcmp 2 -mbd 2 -flags +aic+cbp+mv0+mv4+trell -a

.
flvtool2 -U "$1.tmp.flv" "$1.flv"

/usr/local/bin/ffmpeg -i "$1.flv" -an -ss 00:00:30 -an -r 1 -vframes 1 -y %d.jpg

convert 1.jpg play.png -gravity center -composite -format jpg -quality 90 "$1.jpg"
rm 1.jpg
rm ffmpeg2pass-0.log
rm "$1.tmp.flv"
rm NUL.avi

-- PorchLight - 15 May 2009

Topic attachments
I Attachment Action Size Date Who Comment
elseEXT convdir manage 0.1 K 15 May 2009 - 03:29 PorchLight  
elseEXT convflash manage 0.9 K 15 May 2009 - 03:30 PorchLight  
pngpng play.png manage 3.5 K 15 May 2009 - 03:32 PorchLight  
elseEXT thumb manage 0.2 K 15 May 2009 - 03:33 PorchLight  
Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions

tip TWiki Tip of the Day
Disabling links in large blocks of text
You can disable automatic linking of WikiWords by surrounding the text with noautolink and /noautolink ... Read on Read more

 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback