LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 06-11-2009, 06:51 PM   #16
dv502
Member
 
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 wmavds32.ax 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.
 
Old 10-21-2010, 03:23 PM   #17
panonoobis
LQ Newbie
 
Registered: Sep 2010
Posts: 6

Rep: Reputation: 0
http://www.linuxquestions.org/questi...script-839619/

lock @ this
 
Old 01-25-2013, 05:20 PM   #18
ffffdisk
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.

Code:
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.
 
Old 01-27-2013, 01:22 PM   #19
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946
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.
 
1 members found this post helpful.
Old 04-26-2013, 01:57 PM   #20
Ugri
LQ Newbie
 
Registered: Jan 2009
Location: Estonia
Distribution: Linux Mint 13, PCLinuxOS
Posts: 3

Rep: Reputation: 0
Quote:
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
H5X00R
Member
 
Registered: Apr 2013
Posts: 39

Rep: Reputation: 1
Code:
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
 
  


Reply


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


All times are GMT -5. The time now is 05:23 AM.

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