Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-11-2009, 06:51 PM   #16
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57

Sorry, it didn't work for you. It happens once in awhile a file has an unsupported codec that ffmpeg and mplayer will not understand.

But, I am happy with these two programs as they play and convert
the majority of the files I pass to it.

Ffmpeg and mplayer are always in development and soon it will get better and support more codec options.

- Cheers

PS: You could try this last suggestion but there is no guarantees. Search for the file within your windows file system. If you have it copy it to your /usr/lib/win32 directory.

If that doesn't work, well at least we try....

Last edited by dv502; 10-21-2010 at 03:34 PM.
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 10-21-2010, 03:23 PM   #17
LQ Newbie
Registered: Sep 2010
Posts: 6

Rep: Reputation: 0

lock @ this
Old 01-25-2013, 05:20 PM   #18
LQ Newbie
Registered: Jan 2013
Posts: 3

Rep: Reputation: Disabled
In addition to the previous answer I suggest to set the audio bitrate option to 320kb/s if you want to have good audio quality, ffmpeg default bitrate is 64kb/s.

ffmpeg -i input.flv -ab 320k output.mp3
I know this is an old thread, I write this reply because it still shows up in the the first result page of Google.
1 members found this post helpful.
Old 01-27-2013, 01:22 PM   #19
David the H.
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,837

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
I don't think that setting a high bitrate on a conversion from a file that's already lossy, and probably encoded at low-quality too, is going to do all that much to help the sound. The best it can do is help avoid further degradation.

However, since the majority of flv files have their audio in mp3 format already, a simple "-acodec copy" in ffmpeg or -dumpaudio in mplayer (see post #11) is probably all you need to use to rip it out of the flv container. This will give you the original audio, as good as you're going to get, although you may have playback trouble on some devices if it's in a non-standard rate (i.e. anything other than the cd quality 16/44100 ).

If you really must convert it, and really want to preserve the best sound possible, you should encode it to flac or another lossless format when possible. Then at least you'll be getting a perfect copy of the original. Do be careful to clearly label it as a re-encoded lossy file if you do though, as most people assume "flac" = "cd quality".

BTW, post #12 shows the user having trouble because the codec was aac instead of mp3. That can generally be handled by ensuring that you have faad/libfaad2 installed, and a version of ffmpeg/mplayer/whatever compiled with support for that library. Or just rip it straight again; most players these days have support aac playback too.
2 members found this post helpful.
Old 04-26-2013, 01:57 PM   #20
LQ Newbie
Registered: Jan 2009
Location: Estonia
Distribution: Linux Mint 13, PCLinuxOS
Posts: 3

Rep: Reputation: 0
Originally Posted by Didier Spaier View Post
ffmpeg -i /path/to/video.flv /path/to/song.mp3
tnx, it worked for me.
Old 04-26-2013, 09:16 PM   #21
Registered: Apr 2013
Posts: 39

Rep: Reputation: 1
ffmpeg -i video.flv -vn -acodec libmp3lame -ab 192k output.mp3
-vn means do not include video
-acodec libmp3lame means use lame mp3 encoding

You can add these if you want

-ac 2 means converts mono to stereo
-ar <freq> sets audio frequency i.e 44100, 48000, etc
Old 11-05-2014, 12:42 AM   #22
LQ Newbie
Registered: Nov 2014
Posts: 1

Rep: Reputation: Disabled
Faasoft FLV to MP3 Converter works smooth as silk to convert FLV to MP3, MP4, AVI, MOV, WMV, WAV, etc for me.

Happy with it.
Old 11-05-2014, 07:19 AM   #23
Senior Member
Registered: Nov 2011
Distribution: Debian
Posts: 1,248

Rep: Reputation: 253Reputation: 253Reputation: 253
If you want sound+video (as mp4) then handbrake handles many codecs and is an excellent program - its also available as a GUI.
Old 12-24-2014, 02:21 PM   #24
Registered: Dec 2014
Distribution: Linux Mint 17.*
Posts: 326

Rep: Reputation: 106Reputation: 106
since flv contains aac, you can actually get the music file without any loss in quality:

ffmpeg -i file.flv -vn -acodec copy file.aac

-vn disable video, -acodec copy don't re-encode, just grab the audio and copy it to the file.

It'll actually work very fast too as no de/reencoding was done.

Last edited by Miati; 12-24-2014 at 02:24 PM.
1 members found this post helpful.
Old 12-25-2014, 08:01 PM   #25
LQ Newbie
Registered: Dec 2014
Location: usa
Distribution: ZorinOS, Tails
Posts: 9

Rep: Reputation: 1
youtube-dl not only download videos. It can do post-processing on the fly. For example

youtube-dl -x --audio-format mp3 --audio-quality 1 "youtube_URL" -o "%(title)s.mp3"
excerpt from youtube-dl --help
Post-processing Options:
-x, --extract-audio convert video files to audio-only files (requires ffmpeg or avconv
and ffprobe or avprobe)

--audio-format FORMAT "best", "aac", "vorbis", "mp3", "m4a", "opus", or "wav"; best by

--audio-quality QUALITY ffmpeg/avconv audio quality specification, insert a value between 0
(better) and 9 (worse) for VBR or a specific bitrate like 128K
(default 5)

Last edited by Tasker; 12-25-2014 at 08:03 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert flv files? fireblade_spark Linux - Software 14 05-25-2013 02:22 AM
convert flv file to be played in XP ufmale Linux - Newbie 1 09-13-2008 08:13 PM
Trying to convert from flv to mp4 (for iPod) using mencoder. alkos333 Slackware 6 11-03-2007 02:36 PM
How to convert flv to ipod format? depam Linux - Software 1 10-25-2006 08:21 AM
how do i convert wmv to flv using ffmpeg? farmerjoe Linux - Software 0 11-15-2005 02:20 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:37 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration