Virtual World  
Virtual World. Real Profit!
Home | Sign In | Join Now | Find Friends | Learn More | Help Center | Media Center
Search Blogs
See other's Blogs
Blog Categories
All
Art and Photography
Automotive
Blogging
Dreams and the Supernatural
Fashion, Style, Shopping
Food and Restaurants
Friends
Games
Goals, Plans, Hopes
Jobs, Work, Careers
Life
Movies, TV, Celebrities
Music
News and Politics
Parties and Nightlife
Pets and Animals
Podcast
Quiz/Survey
Religion and Philosophy
Romance and Relationships
School, College, Greek
Sports
Travel and Places
Web, HTML, Tech
Writing and Poetry

FFMEPG

By:  WebloJunior -- Jul 28, 2008 11:07:03  Category: Blogging
FFMPEG useful commands FFMPEG is a very power full tool for video manipulation. Mostly developers use the different command to convert video from one format to another e.g ( avi to flv ) . Mostly developers search different type of command via search engines e.g google.com . Exert of FFMPEG use the different parameters for different scenarios. The purpose of this blog to write down common command that will be very useful while developing video sites. 1- Live Stream Conversion In Window ffmpeg.exe -i http://serveraddress/streamvideo.asf -target ntsc-dvd -aspect 1.3333 -s 176x108 yourvideo.flv In Linux exec('/user/bin/ffmpeg -i http://serveraddress/streamvideo.asf -target ntsc-dvd -aspect 1.3333 -s 176x108 yourvideo.flv'); 2- Creat Movie from Images Note: Your folder contain images with discrete unique name e.g image1, image2, image3..... In Window ffmpeg.exe -r 2 -i images/image%d.jpg -ar 22050 -s 320x240 -aspect 4:3 -f flv ' yourflvname.flv In Linux exec('/usr/local/bin/ffmpeg -r 2 -i images/image%d.jpg -ar 22050 -s 320x240 -aspect 4:3 -yourflvname. flv '.$movie_Store_Path,$output,$return); 3- Get the single Frame of Specific movie Time $curFrameTime = "00:00:05"; exec('/usr/local/bin/ffmpeg -i yourfile.flv -an -ss '.$curFrameTime.' -an -r 1 -vframes 1 images/img%d.jpg'); 4- Get multiple frames from movie exec('/usr/local/bin/ffmpeg -i ./yourfile.wmv -an -ss 00:00:01 -t 00:01:31 -r 10 -s 550x450 -aspect 5:3 ./img/%d.png',$output,$result); 4- Avi to flv Conversion exec('/usr/local/bin/ffmpeg -i ./youravifile.avi -pass 2 -s 448x336 -ab 56k -ar 22050 -ac 1 -vcodec flv -b 500k -g 160 -cmp 3 -subcmp 3 -mbd 2 -flags aic+cbp+mv0+mv4+trell -y yourfilename.flv',$output,$result); 5-Remove the Audio Stream Let's say you have recorded a video that has a lot of background noise and undesired commentary, so you decide to remove the audio component of the video completely. To accomplish this, all you have to do is add the -an option to the command line, and FFmpeg automatically removes all audio from the output. Keep in mind that using this option negates any other option that affects the audio stream. So, in our example, to remove the audio component, we would run the following command: exec('/usr/local/bin/ffmpeg -i InputFile.mpg -an -b 1200 OutputFile.avi'); 5-Remove the Video Stream Let's say you downloaded a news video from the Net that you want to listen to on your iPod on the way to work, but in order to do that, you have to remove the video component from the output file. FFmpeg allows you to remove the video component of the file completely by adding the -vn option to the command line. Using this option negates any other option that affects the video stream. So, in our example, to remove the video component and save the audio as a 256kbps MP3 file, we would run the following command: exec('/usr/local/bin/ffmpeg -i InputFile.mpg -vn -ab 256 OutputFile.mp3');

Comments

  Currently no comments found on this blog.

Post Your Comments

 
Terms of Service | Privacy Policy | Company Info | Contact Us | | Add Weblo to My Favorites | Media Center | Help | Advertise | Site Map
Copyright © 1994-2009 Weblo.com Inc. All rights reserved.
All times on the site are indicated in Eastern Time Zone (US & Canada)