Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Well, ffmpeg's default audio format for the mpeg container is an mp2 stream, and its default bitrates are always set very low, so yes, that's what you got. I just ran a test myself, and the output showed this for audio:
Setting -acodec to copy will give you whatever the original stream is encoded as, no matter what the output filename is. Look at the corresponding input line.
But nothing's keeping you from configuring the command to make it give you the kind of output you want. Just read the ffmpeg man page and/or search the web.
As for mp3 support, it's usually handled by the external libmp3lame library. Run ffmpeg -codecs |grep mp3 and see if there's a line in it for libmp3lame with an "E" (for encode) at the front. Since mp3 is a patent-encumbered codec, I don't think the default debian version of ffmpeg has support for liblame enabled, but I may be wrong.
In any case, you can get better versions of ffmpeg and other similar programs by adding the debian-multimedia repository to your apt sources. These have most of the common codecs enabled. http://debian-multimedia.org/
Once you have a version with liblame support installed, just use -acodec libmp3lame in your command, along with -ab to set the bitrate you want, or -aq to set the quality level.
I refer to it myself, because I figured it out once, then forgot, because I didn't write it down. So I had to figure it out again, but this time I wrote it down.
will extract the audio stream, where .ext would be something like mp3 or aac or whatever - you'l have to look it up with ffprobe first. Or alternatively you can use
Hi,
I am novice to Linux (Mint in my case) and I followed quite few forums to find working and easy solution. And the easiest for me is to use ... outsanding Audiacity (file/import/audio) and than (fie/export and choose mp3 in right down corner).
Have fun!
anyhow, looking at both articles, it seems indeed that "libav is ffmpeg".
but 2 more years have passed since 2015.
anyhow, archlinux uses ffmpeg. searching package database for "libav" returns ffmpeg. it is not possible to install "libav" or "avconv". that is good enough for me.
Last edited by ondoho; 11-28-2017 at 01:41 PM.
Reason: added one 'm'
anyhow, looking at both articles, it seems indeed that "libav is ffmpeg".
but 2 more years have passed since 2015.
anyhow, archlinux uses ffmpeg. searching package database for "libav" returns ffmpeg. it is not possible to install "libav" or "avconv". that is good enough for me.
avconv is actually the most recent, but ffmpeg claims to be the most maintained.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.