FFmpeg

On March 20, 2010, in CentOS, Fedora, Linux, Open Source, Tips, Tricks, Web Application, by admin
FFmpeg

FFmpeg

# ffmpeg is a command line tool to convert one video file format to another. It can also grab and encode in real time from a TV card.
# ffserver is an HTTP and RTSP multimedia streaming server for live broadcasts. It can also time shift live broadcast.
# ffplay is a simple media player based on SDL and on the FFmpeg libraries.
# ffprobe is a command line tool to show media information.

# Convert video files into another format.
# flv -> avi
# flv -> mp4
# flv -> wmv
# flv -> swf
# avi -> mp4
# avi -> wmv
# avi -> flv
# avi -> swf
# mp4 -> avi
# mp4 -> wmv
# mp4 -> flv
# mp4 -> swf
# wmv -> mp4
# wmv -> avi
# wmv -> flv
# wmv -> swf
# divx -> mp4
# divx -> avi
# divx -> flv
# divx -> wmv
# divx -> swf
#
# Audio extraction
# flv -> mp3
# avi -> mp3
# mp4 -> mp3
# wmv -> mp3
# divx -> mp3
# swf -> mp3

if ($target == ‘mp3′)
{
$ffmpeg_cmd = exec($ffmpeg.” -y -i “.$source.” -acodec “.$acodec.” -vn “.$target);
} else {
$ffmpeg_cmd = exec($ffmpeg.” -y -i “.$source.” -acodec “.$acodec.” “. $ar .” -ab 128kb “.$vcodec.” “.$r.” -b 1200kb -mbd 2 -cmp 2 -subcmp 2 “.$size.” “.$aspect.” “.$target);
}

4 Responses to FFmpeg

  1. Anonymous says:

    To be sure completely together with your conclusions and imagine that you’ve made some excellent points. Also, I love the layout of your respective site plus the easier navigation. I’ve bookmarked your website and may return often!

  2. Anonymous says:

    Hi I ran across this great site in error when i was searching yahoo due to this issue, I need to say your websites are really helpful I additionally love the theme, its amazing!. I dont have a whole lot time to read all of your post presently but We have bookmarked it plus decided upon your RSS feeds. I’ll be back in a couple of days. thank you for an excellent site.

  3. Anonymous says:

    Thanks for sharing superb informations. Your websiteis so cool.My business is impressed by the important points that you’ve about this blog. It reveals how nicely you perceive this subject. Bookmarked this website page, should come backfor extra articles. You, my mate, ROCK! I ran across simply the info I already searched everywhere we look and merely couldn?t find. What ideal website. I love this web site whilst your website will probably be certainly one of my new favorite ones.I like this excellent website given and contains given me some type of dedication to ensure success for a few purpose, so thanks

  4. Anonymous says:

    Appreciate your sharing superb informations. Your websiteis so cool.My business is thankful for the details that you’ve for this blog. It reveals how nicely you perceive this subject. Bookmarked this web site, should come backfor extra articles. You, my pal, ROCK! I stumbled upon simply the info I already searched everywhere and just couldn?t discover. What a ideal website. I’m keen on this web site along with your website will probably be one of my new favorite ones.I’m keen on this fabulous website given and possesses given me some type of dedication to ensure success for most purpose, so thanks

Leave a Reply