Extract audio
  • Order of the Butterfly
    Order of the Butterfly
    maurensen
    Posts: 358 from 2003/10/3
    From: Padova - Italy
    Hi,
    I'm trying to extract audio from a .flv downloaded from youtube but I'm having some troubles.
    I'm trying to use ffmpeg and mencoder but I'm not able to rip the mp3 of the video.

    With ffmpeg using the -acodec copy out.mp3 i get only garbage sound (the flv sholud be a container am I right?)

    and trying to re-encode with the option
    -acodec libmp3lame
    I get an error message such "codec not supported"...

    No more luck with mencoder...
    Someone know what can I try?
    Thanx in advance
    -------------------
  • »08.01.11 - 13:56
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Jambalah
    Posts: 820 from 2008/3/30
    From: Roma, Italy
    Try with ffmpeg:
    http://morphos.lukysoft.cz/en/vypis.php?hledat=ffmpeg
    Example:
    ffmpeg -i Sourcevideo.flv -f mp3 ExtractedAudio.mp3
    I tried with V. 0.4.9 pre 1 and it works.

    You tried with ffmpeg.... I noticed only now! :-D
    I'm a little bit tired....

    [ Edited by Jambalah on 2011/1/8 16:54 ]
    Pegasos II 1 ghz
    Powermac G4 Quicksilver with Sonnet Encore 1.8 ghz
    Powermac G4 MDD single 1.25 ghz, silenced for ears health...
    Powermac G5 dual 2.7 ghz I'll be back...
    Powermac G5 dual 2.0 ghz
    Powerbook G4 1.67 ghz 17
  • »08.01.11 - 14:42
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    maurensen
    Posts: 358 from 2003/10/3
    From: Padova - Italy
    Strange behaviour really. I've re-downloaded ffmpeg just to be 100% sure to have the same version.
    with Jambala's command line suggestion -f mp3 out.mp3
    I get this error:
    Unsupported codec (id=0) for input stream #0.1

    with the oprion -acodec copy put.mp3
    I get a corrupted mp3.
    I've tried with no luck several files dowloaded from youtube all correctly played with my Amiga (ahem, mac :-)) via mplayer...
    -------------------
  • »08.01.11 - 17:07
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Amigaharry2
    Posts: 1282 from 2010/1/6
    From: EU-Austria (Wien)
    You may also have a look at this tread, done some days ago....

    https://morph.zone/modules/newbb_plus/viewtopic.php?topic_id=7640&forum=9

    mencoder can decode many formats.....


    [ Editiert durch Amigaharry2 an 2011/1/8 19:09 ]
    Peg2, 3xPowerMac G5, 2xPowerbookG4, 2x MacMiniG4, Efika (again), A3000T and life is never boring.....
  • »08.01.11 - 17:08
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12163 from 2003/5/22
    From: Germany
    > http://morphos.lukysoft.cz/en/vypis.php?hledat=ffmpeg

    Just in case someone is not aware:

    https://morph.zone/modules/newbb_plus/viewtopic.php?topic_id=6901&forum=3&post_id=70939#70939
  • »08.01.11 - 17:26
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    maurensen
    Posts: 358 from 2003/10/3
    From: Padova - Italy
    Thanx very much to all, the ubiquitus mencoder did it!
    With:

    mencoder "Five Little Monkeys_.flv" -of rawaudio -oac mp3lame -ovc copy -o a.mp3

    I get the audio file correct.

    As Andreas_Wolf pointed out with Fab's reply to the link, seems the mp3lame side of ffmpeg is somewhat broken.
    Nevermind now my gf has many songs to work with babies at school :-)
    Thanx mates!
    -------------------
  • »08.01.11 - 18:11
    Profile
  • Butterfly
    Butterfly
    pecanK
    Posts: 70 from 2004/11/5
    From: Czech Republic...
    Hi,try the latest Mplayer release(11.11.2010) . Run Gmplayer,click right mouse button,select "settings" and "preferences". Change audio driver to "pcm" and click "Use". Then load your flv file. video is being played while sound isn't being played but stored to the Mplayer drawer as "audiodump.wav". Then you can convert it to mp3 with Lame...
    pecaN of the Czech PowerPC User Group
  • »08.01.11 - 19:49
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Jambalah
    Posts: 820 from 2008/3/30
    From: Roma, Italy
    Thanks for the tips, mates! I didn't read previous thread... Nice solution!!!
    Pegasos II 1 ghz
    Powermac G4 Quicksilver with Sonnet Encore 1.8 ghz
    Powermac G4 MDD single 1.25 ghz, silenced for ears health...
    Powermac G5 dual 2.7 ghz I'll be back...
    Powermac G5 dual 2.0 ghz
    Powerbook G4 1.67 ghz 17
  • »09.01.11 - 13:52
    Profile
  • rms
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    rms
    Posts: 602 from 2004/11/27
    Hi, this is really great and usefull/helpfull info! Thanks very much.
  • »10.01.11 - 04:28
    Profile Visit Website