HOME - Recent Changes - Search:

Academic Work


Personal

* pot de départ


dblp


(:twitter:)

-----

[ edit | logout ]
[ help | sandbox | passwd ]

How to extract audio from .flv files?

#############################

#!/usr/bin/bash

# check for proper number of command line arguments
ERROR_PAR=65

if [ $# -ne 1 ]
   then
      echo "Usage: $0 <input.flv>"
      exit $ERROR_PAR
fi

OUTPUT=`basename $1 .flv`

ffmpeg -i $1 -ab 128k -ar 44100 $OUTPUT.mp3
soundconverter -b -m audio/mpeg -s .tmp.mp3 $OUTPUT.mp3
\mv $OUTPUT.tmp.mp3 $OUTPUT.mp3

Strangely, I cannot play the mp3 file produced by ffmpeg on my iPod Nano. However, if I convert this mp3 to mp3 again with soundconverter, then it's OK.

More info at http://linux.byexamples.com/archives/229/extract-audio-from-video-or-online-stream/ .

Cloud City


anime | bash | blogs | bsd | c/c++ | c64 | calc | comics | convert | cube | del.icio.us | digg | east | eBooks | egeszseg | elite | firefox | flash | fun | games | gimp | google | groovy | hardware | hit&run | howto | java | javascript | knife | lang | latex | liferay | linux | lovecraft | magyar | maths | movies | music | p2p | perl | pdf | photoshop | php | pmwiki | prog | python | radio | recept | rts | scala | scene | sci-fi | scripting | security | shell | space | súlyos | telephone | torrente | translate | ubuntu | vim | wallpapers | webutils | wikis | windows


Blogs and Dev.

* Ubuntu Incident
* Python Adventures
* me @ GitHub


Places

Debrecen | France | Hungary | Montreal | Nancy


Notes

full circle | km


Hobby Projects

* Jabba's Codes
* PmWiki
* Firefox
* PHP
* JavaScript
* Scriptorium
* Tutorials
* me @ GitHub


Quick Links


[ edit ]

View - Edit - History - Attach - Print *** Report - Recent Changes - Search
Page last modified on 2009 February 15, 08:54