by James Strickland March 24, 2008 6:10 pm
I was tired of using the web forms that my webhost provided to convert video to .flv format. So, I wrote this script which works fine and dandy:
#!/bin/bash ############################## # VIDEO CONVERTER (FLV) # # gi_james@strickstuff.com # # www.strickstuff.com # ############################## # all files that start with .m (eg mpeg mpg mod) # change to whatever you want... for file in ./*.mpg; # encode files and rename them to FLV do ffmpeg -i $file -ar 22050 -ab 32 -f flv -s 320x240 -aspect 16:9 -y ${file%.m*}.flv # all done! done
This makes it a little bit easier...
Now, since my camera shoots in 16:9 format, I decided to keep that aspect ratio, this can be changed to 4:3. We'll see how it looks.
Pages
Category
- Aikido (13)
- Family (36)
- General (67)
- Linux (18)
- Computer (3)
- Metal Detecting (1)
- Off Road (7)
- school (15)
- Travel (11)
- Uncategorized (1)
- Web (17)
- WII (2)
- work (22)
Archives
- January 2012
- December 2011
- August 2011
- April 2011
- November 2010
- October 2010
- September 2010
- July 2010
- June 2010
- May 2010
- February 2010
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- December 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- January 2007
- December 2006
- November 2006

Comments are closed.