Categories
FFMPEG FFMPEG Examples

Use Google to find FREE music on the web

Use Google operators to find unprotected directories of audio files or files of type .mp3.

-inurl:(htm|html|php) intitle:"index of" +"last modified" +"parent directory" +description +size +(wma|mp3) "Nickelback"

This will turn up several directory listings of Nickelback MP3’s. Replace “Nickelback” with the artist, genre or keyword of your liking.

Note: this is not intended to be used to download mp3’s illegally.

More:

Categories
FFMPEG FFMPEG Examples WGET wget examples

Download mp3 (music) files with wget

wget -nd -r --no-parent -A.mp3 -A.wma http://www.domain.com/music/

Brief explanation of wget options:
-nd – don’t create directories
-r – recursively download
–no-parent – don’t ascend to the parent directory
-A – allows you to specify which types of accepted files should be downloaded. In this case, all files with the .wma and .mp3 file extension will be downloaded.

More:
Categories
FFMPEG FFMPEG Examples

Converting Audio Files and Videos Using FFMPEG

ffmpeg can be used to easily convert audio or video files on any OS – Windows, Linux, or Mac.

Common ffmpeg Parameters

  • -i <filename> – PathFilename of source file
  • -y – Overwrite the existing output file without prompting
  • -an – Disable audio

Video Related ffmpeg Parameters

  • -aspect <aspect ratio> – Set Aspect Ratio for the video (4:3, 16:9 or 1.3333, 1.7777)
  • -r <rate> – Set frame rate in Hz for the video
  • -s <size> – Set video resolution size (Width x Height)
  • -sameq – Use same video quality as source

Audio Related ffmpeg Parameters

  • -ar <rate> – Set audio sampling rate (in Hz)
  • -acodec <codec> – Force audio codec, example mp3
  • -vol <volume> – Change audio volume (256=normal)
  • -ab <rate> – Set audio bit rate (in bits/s)

Advanced ffmpeg Parameters

  • -map_meta_data output file:<input file> – Copy the metadata from input file to converted output file

ffmpeg Command Line Syntax

ffmpeg –i <input filename> <output filename>

ffmpeg Video Examples:

  • Converting MOV to FLV using FFMPEG:

    ffmpeg -i movie.mov movie.flv

  • Converting Mpeg to FLV using FFMPEG:

    ffmpeg -i movie.mpeg movie.flv

  • Converting AVI to FLV using FFMPEG – convert movie.avi to movie.flv and resize the video resolution to 500×500:

    ffmpeg -i movie.avi -s 500×500 movie.flv

  • Converting 3GP to FLV using FFMPEG – convert movie.3gp to movie.flv, keep the original file settings and disable the audio content:

    ffmpeg -i movie.3gp -sameq -an movie.flv

  • Converting MPEG to 3GP using FFMPEG:

    ffmpeg -i movie.mpeg -ab 8.85k -acodec libamr_wb -ac 1 -ar 16000 -vcodec h263 -s qcif movie2.3gp

ffmpeg Audio Examples:

  • Converting aac to mp3 using FFMPEG with MetaData – convert audio.aac to audio.mp3 with an audio rate of 22.05 Khz and audio BitRate of 32Khz, and will copy the metadata from .aac file to .mp3 file:

    ffmpeg -i audio.aac -ar 22050 -ab 32 -map_meta_data audio.mp3:audio.aac audio.mp3

  • Converting WMV to MP3 using FFMPEG

    ffmpeg -i audio.wmv audio.mp3

  • Converting WMV to FLV using FFMPEG – convert audio.wmv to audio.flv, generating only audio content:

    ffmpeg -i audio.wmv audio.flv

  • Converting AMR to MP3 using FFMPEG – convert audio.amr to audio.mp3, with an audio rate of 22.05 Khz:

    ffmpeg -i audio.amr -ar 22050 audio.mp3

  • Converting aac to mp3 using FFMPEG – convert audio.aac to audio.mp3, with an audio rate of 22.05 Khz and audio BitRate or 32Khz:

    ffmpeg -i audio.aac -ar 22050 -ab 32 audio.mp3

Download ffmpeg.exe for Windows (direct link) (8.5MB)

More:

ffmpeg windows 7, vista, windows 2008
Categories
Audacity Audio Convert FFMPEG FFMPEG Examples Flash Video FLV FREE Freeware MP4 Music Video

How to Convert a Flash Video File (.flv) to MP4 with FFMpeg

  1. Download Flash Video using something like Video DownloadHelper (plugin for FireFox) or KeepVid.
  2. Now you have the file you want; it’s time to convert the .flv file to something a little easier to work with. 
  3. FFMpeg is very easy to use and can be downloaded here.
  4. Open a command prompt.
    • Note: It may be easiest to place the .flv file in the same folder as ffmpeg.exe.
  5. In the command line enter “ffmpeg -i FILE_NAME.flv -ar 22050 NEW_FILE_NAME.mp4”.
    • This basically says “Using ffmpeg, take the file FILE_NAME.flv, change the sample rate (this is the -ar 22050 part, and it makes a world of difference to the audio quality), and output a file called NEW_FILE_NAME in the mp4 format.”

Instead of mp4, you could output an avi, wmv, mpg, or almost any other video file, or eve audio file like mp3.

That’s it. Now you have your converted video file.

Download ffmpeg.exe for Windows (direct link) (8.5MB)

Tips

More:
Categories
FFMPEG WGET wget examples

How to create your own YouTube Flash Video Serving site

This post at Daniel’s Random Mutterings explains exactly how to create your own video hosting site allowing users to upload video, automatically convert it to FLV and make it available for anyone to view – all with open source tools. Using a Django CMS system, FFMpeg for the FLV encoding, FLVtools2 for writing meta information, and FlowPlayer for embedding the SWF file you’ll have everything you need to get started.

Download the latest FFmpeg Windows Builds (ffmpeg.exe compiled for Windows).

More: