KLoning Spoon

ffmpeg is a multiplatform, open-source library for video and audio files. I have compiled 19 useful and amazing commands covering almost all needs: video conversion, sound extraction, encoding file for iPod or PSP, and more.

Getting infos from a video file
ffmpeg -i video.avi
Turn X images to a video sequence
ffmpeg -f image2 -i image%d.jpg video.mpg

This command will transform all the images from the current directory (named image1.jpg, image2.jpg, etc…) to a video file named video.mpg.

Turn a video to X images
ffmpeg -i video.mpg image%d.jpg

This command will generate the files named image1.jpg, image2.jpg, …

The following image formats are also availables : PGM, PPM, PAM, PGMYUV, JPEG, GIF, PNG, TIFF, SGI.

Encode a video sequence for the iPpod/iPhone
ffmpeg -i source_video.avi input -acodec aac -ab 128kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 320x180 -title X final_video.mp4

Explanations :

  • Source : source_video.avi
  • Audio codec : aac
  • Audio bitrate : 128kb/s
  • Video codec : mpeg4
  • Video bitrate : 1200kb/s
  • Video size : 320px par 180px
  • Generated video : final_video.mp4
Encode video for the PSP
ffmpeg -i source_video.avi -b 300 -s 320x240 -vcodec xvid -ab 32 -ar 24000 -acodec aac final_video.mp4

Explanations :

  • Source : source_video.avi
  • Audio codec : aac
  • Audio bitrate : 32kb/s
  • Video codec : xvid
  • Video bitrate : 1200kb/s
  • Video size : 320px par 180px
  • Generated video : final_video.mp4
Extracting sound from a video, and save it as Mp3
ffmpeg -i source_video.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 sound.mp3

Explanations :

  • Source video : source_video.avi
  • Audio bitrate : 192kb/s
  • output format : mp3
  • Generated sound : sound.mp3
Convert a wav file to Mp3
ffmpeg -i son_origine.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 son_final.mp3
Convert .avi video to .mpg
ffmpeg -i video_origine.avi video_finale.mpg
Convert .mpg to .avi
ffmpeg -i video_origine.mpg video_finale.avi
Convert .avi to animated gif(uncompressed)
ffmpeg -i video_origine.avi gif_anime.gif
Mix a video with a sound file
ffmpeg -i son.wav -i video_origine.avi video_finale.mpg
Convert .avi to .flv
ffmpeg -i video_origine.avi -ab 56 -ar 44100 -b 200 -r 15 -s 320x240 -f flv video_finale.flv
Convert .avi to dv
ffmpeg -i video_origine.avi -s pal -r pal -aspect 4:3 -ar 48000 -ac 2 video_finale.dv

Or:

ffmpeg -i video_origine.avi -target pal-dv video_finale.dv
Convert .avi to mpeg for dvd players
ffmpeg -i source_video.avi -target pal-dvd -ps 2000000000 -aspect 16:9 finale_video.mpeg

Explanations :

  • target pal-dvd : Output format
  • ps 2000000000 maximum size for the output file, in bits (here, 2 Gb)
  • aspect 16:9 : Widescreen
Compress .avi to divx
ffmpeg -i video_origine.avi -s 320x240 -vcodec msmpeg4v2 video_finale.avi
Compress Ogg Theora to Mpeg dvd
ffmpeg -i film_sortie_cinelerra.ogm -s 720x576 -vcodec mpeg2video -acodec mp3 film_terminée.mpg
Compress .avi to SVCD mpeg2

NTSC format:

ffmpeg -i video_origine.avi -target ntsc-svcd video_finale.mpg

PAL format:

ffmpeg -i video_origine.avi -target pal-svcd video_finale.mpg
Compress .avi to VCD mpeg2

NTSC format:

ffmpeg -i video_origine.avi -target ntsc-vcd video_finale.mpg

PAL format:

ffmpeg -i video_origine.avi -target pal-vcd video_finale.mpg
Multi-pass encoding with ffmpeg
ffmpeg -i fichierentree -pass 2 -passlogfile ffmpeg2pass fichiersortie-2

How can you embed mp3 files into web pages? Google audio player is a cool way to embed and play any music mp3 file on your website. This will allow your readers to play audio files directly from web pages.

Google Audio Player Embeds Mp3 Files

So what code do you embed in your webpage

<embed type="application/x-shockwave-flash" src="http://www.google.com/reader/ui/3523697345-audio-player.swf" quality="best" flashvars="audioUrl=MP3link" width="500" height="27"></embed>

You can change the width of the Google audio player to fit your content width. If you increase the height, a black empty zone starts to appear, so best keep it at 27px. Remember to change MP3link with the link to your mp3 file url. This means the mp3 is hosted on your site or on some mp3 hosting services.

an easy way make any MP3 playable directly on most any web site (to those with Flash & javaScript enabled),
using the sleek Flash Single MP3 Player & the fantabulous jQuery.

VoodooHDA is an open source audio driver for devices compliant with the Intel High Definition Audio (HDA) specification, based primarily on code from the FreeBSD hdac driver. It is intended as an Intel-only replacement for AppleHDA on Mac OS X with support for a wide range of audio controllers and codecs.

All major VoodooHDA development for the past year has been going on from a Project OS X thread, so check that out for the latest source code and updates.

This page will be, at least for now, a resource to get installer packages which installs the kext for either 10.5 or 10.6, prefPane, Launch Agent, as well as an uninstall script for those who wish to roll back to their previous state after installing VoodooHDA.

You need more than just the kernel extension, so I suggest you use the install package.

-nawcom

This is a reference to compare the monophonic (not stereophonic) audio quality and compression bitrates of the different codecs available for .wav files including PCM, ADPCM, Microsoft GSM 06.10, CELP, SBC, Truespeech and MPEG Layer-3.

This is a reference to compare the monophonic (not stereophonic) audio quality and compression bitrates of the different codecs available for .wav files including PCM, ADPCM, Microsoft GSM 06.10, CELP, SBC, Truespeech and MPEG Layer-3.

MusicBrainz Picard is a cross-platform (Linux/Mac OS X/Windows) application written in Python and is the official MusicBrainz tagger.
Picard supports the majority of audio file formats, is capable of using audio fingerprints (PUIDs, AcoustIDs), performing CD lookups and disc ID submissions, and it has excellent Unicode support. Additionally, there are several plugins available that extend Picard&#8217;s features.
When  tagging files, Picard uses an album-oriented approach. This approach  allows it to utilize the MusicBrainz data as effectively as possible and  correctly tag your music. For more information, see the illustrated quick start guide to tagging.
Picard is named after Captain Jean-Luc Picard from the TV series Star Trek: The Next Generation.

MusicBrainz Picard is a cross-platform (Linux/Mac OS X/Windows) application written in Python and is the official MusicBrainz tagger.

Picard supports the majority of audio file formats, is capable of using audio fingerprints (PUIDs, AcoustIDs), performing CD lookups and disc ID submissions, and it has excellent Unicode support. Additionally, there are several plugins available that extend Picard’s features.

When tagging files, Picard uses an album-oriented approach. This approach allows it to utilize the MusicBrainz data as effectively as possible and correctly tag your music. For more information, see the illustrated quick start guide to tagging.

Picard is named after Captain Jean-Luc Picard from the TV series Star Trek: The Next Generation.


.ogg  is a free audio format alternative. It features sound quality that is  generally higher than MP3, and has no licensing fees. Ogg Drop will  encode audio tracks and CD&#8217;s into .oggs. Ogg Drop is entirely free.

 
Ogg  Drop includes a CDDB lookup of the FreeDB music database. Stick an  audio CD into Ogg Drop, and it should be able to identify the songs  automatically, and tag the songs for you.Ogg Drop is an open beta application. We haven&#8217;t  declared it final yet because there are still features being added, but  we felt it is stable enough to be available to the public as-is. We&#8217;ll  be moving the next update to the Cocoa platform, which will likely be  the first 1.0.

.ogg is a free audio format alternative. It features sound quality that is generally higher than MP3, and has no licensing fees. Ogg Drop will encode audio tracks and CD’s into .oggs. Ogg Drop is entirely free.

 
Ogg Drop includes a CDDB lookup of the FreeDB music database. Stick an audio CD into Ogg Drop, and it should be able to identify the songs automatically, and tag the songs for you.

Ogg Drop is an open beta application. We haven’t declared it final yet because there are still features being added, but we felt it is stable enough to be available to the public as-is. We’ll be moving the next update to the Cocoa platform, which will likely be the first 1.0.
SoX Wrap is a wrapper for the conversion routines of the open source sound utility SoX (Sound eXchange).  It transfers to and from the following formats: 8svx, aiff, al, au,  avr, cdr, cvs, dat, gsm, hcom, la, lu, maud, mp3, nul, ogg, prc, raw,  sb, sf, sl, sph, smp, snd, sndt, sw, txw, ub, ul, uw, vms, voc, wav, and  wve.
SoX Wrap is a free application. It’s merely a GUI wrapped around the  standard distrubtion; an attempt to make SoX accessible for people  unfamiliar with the UNIX environment that it runs in. I encourage anyone  who is interested in the application and has some programming skill to  visit SoX’s SourceForge page (linked above) and participate in the  project.
Please note that SoX does not support the Sound Designer II format.
For help using SoX Wrap, and on the formats it handles, visit the help page.
OS Required: MacOS 10.2.8 or later

SoX Wrap is a wrapper for the conversion routines of the open source sound utility SoX (Sound eXchange). It transfers to and from the following formats: 8svx, aiff, al, au, avr, cdr, cvs, dat, gsm, hcom, la, lu, maud, mp3, nul, ogg, prc, raw, sb, sf, sl, sph, smp, snd, sndt, sw, txw, ub, ul, uw, vms, voc, wav, and wve.

SoX Wrap is a free application. It’s merely a GUI wrapped around the standard distrubtion; an attempt to make SoX accessible for people unfamiliar with the UNIX environment that it runs in. I encourage anyone who is interested in the application and has some programming skill to visit SoX’s SourceForge page (linked above) and participate in the project.

Please note that SoX does not support the Sound Designer II format.

For help using SoX Wrap, and on the formats it handles, visit the help page.

OS Required: MacOS 10.2.8 or later

Adopting P2P(Peer-to-Peer) technology, It is very efficient and easy to use. Let anyone become a broadcaster without the costs of a powerful server and vast bandwidth. You can build your own TV stations comparable with large commercial sites with minimal resources. Using SopCast, you can serve 10,000 online users with a personal computer and a home broadband connection.

SoP is the abbreviation for Streaming over P2P. Sopcast is a Streaming Direct Broadcasting System based on P2P. The core is the communication protocol produced by Sopcast Team, which is named sop://, or SoP technology.

Vibe Streamer features the following and much more:

  • Free music streaming server.
  • Easy installation and configuration.
  • Share unlimited files and directories.
  • Full support for Windows 2000/XP/2003/Vista/2008/7.
  • Full support for Linux through Wine
  • Protect your directories with user accounts and groups.
  • Easily manage your users, groups and their access rights.
  • High performance and well designed web client that supports large collections.
  • SSL support for secure traffic
  • Last.fm audio scrobbling integration
  • UPnP support for simple router configuration
  • Unlimited skin possibilities, create your own or download new skins as they appear on our website.
  • The included standard skin support most commonly used browsers.
  • A script language that is fully integrated with the server.
  • Guaranteed free from backdoors, spyware, adware and other non-requested software.