LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
Search this Thread
Old 10-11-2011, 10:29 PM   #16
odoepner
LQ Newbie
 
Registered: Oct 2011
Distribution: Debian stable, backports kernel, XFCE
Posts: 3

Rep: Reputation: Disabled
ffmpeg -acodec libvorbis -aq 4


You might get a warning about "-acodec vorbis" being experimental. You can use "-acodec libvorbis" instead.

Be careful with the "-aq" option, the value 100 (as suggested by a previous post in this thread) is definitely too high. The supported values are listed in the "Technical details" section of the Vorbis wikipedia page.

I used "-qa 4" (roughly 128 kbit/s):

for wma in *.wma; do ffmpeg -i "$wma" -acodec libvorbis -aq 4 "$wma"_aq4.ogg; done
 
Old 10-12-2011, 02:55 AM   #17
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,718

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Wma is lossy, ogg vorbis is lossy, lossy-> lossy transcodes will make the files sound worse.

Its better to rerip as ogg vorbis, and if thats not an option, then maybe its possible to find the same files in MP3, ogg vorbis or a lossless codec.

Quote:
Originally Posted by 1kyle View Post
Why not convert to FLAC (free lossless codec). You can convert WMA to FLAC directly --even on Windows and if you are in Windows Winamp (free) can play FLAC files directly.
Wma is lossy (and I dont trust wma 'lossless' to be lossless). Transcoding a lossy-> lossless file is just a good way to use space, its not going to sound any better.

For sane transcodes (lossless->lossy, lossless->lossless) you can normally use soundconvter (GTK) or soundkonverter (Qt). Some of the linux media players will transcode as well. No need to go poking around the command line to transcode, unless you want to.
 
Old 10-12-2011, 07:53 AM   #18
odoepner
LQ Newbie
 
Registered: Oct 2011
Distribution: Debian stable, backports kernel, XFCE
Posts: 3

Rep: Reputation: Disabled
Lossless, lossy - I don't care as long as I don't hear the difference ...

I have not noticed any difference between the wma files (that I found in a torrent download) and the ogg files that I converted them to (using ffmpeg -acodec libvorbis -aq 4).

Maybe other people's ears are finer or other people are of the "audiophile" type and have stereo systems worth thousands of dollars that make those subtle differences noticeable.

For me, using a relatively cheap compact stereo and my laptop as the aux sound source, this doesn't matter.

And I just wanted to have the songs in my collection so I did not spend time hunting for the same tracks in other (lossless) formats.
 
Old 10-12-2011, 08:35 AM   #19
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,718

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Personally I dont need thousands of $$$ worth of stereo to be able to tell the difference between low bitrate lossy files and lossless. I cant deal with any lossy file at lower than 160-192K, to me they sound flat, lifeless and bland.

Most wma files I've ever seen have been 192k/sec, vorbis -q 4 is 128k/sec. AFAIK the ffmpeg 'aq' is a 0-100 quality level, not the q-2 (32k/sec) to q10 (500k/sec) of standard vorbis. It thats right, I'd love to know what bitrate those vorbis files encoded at, it could be a tiny bitrate.

Quote:
Vorbis is a variable bit rate (VBR) codec, which means that you tell it to create audio of a given quality and it uses however many bytes of data it takes to achieve that goal. The (undocumented in the man page!) "-aq" option of ffmpeg is how you tell it what audio quality to ask of a VBR codec, and the numerical value you give is interpreted differently by different codecs. In the case of the Vorbis codec, "0" is the poorest quality available, getting better with larger values. The value of "60" used here results in audio at roughly 160 kbit/s, which is very good.
http://howto-pages.org/ffmpeg/

Even if wma and ogg vorbis used the same method for discarding information from the audio track (they dont) the ogg vorbis file should sound worse than the wma.

If you cant pick the difference, thats fine for your use. But I wouldnt assume that the limit is your ears, laptops tend to have pretty lame sound chips, and the 'bookshelf'/compact speakers wont be helping.
 
Old 10-12-2011, 04:44 PM   #20
odoepner
LQ Newbie
 
Registered: Oct 2011
Distribution: Debian stable, backports kernel, XFCE
Posts: 3

Rep: Reputation: Disabled
vorbis vs libvorbis

There is a difference between
-acodec vorbis (-aq values 0..60)
-acodec libvorbis (-aq values -1..10) <= This is what I used

See http://www.linuxquestions.org/questi...6/#post3827342
 
Old 10-12-2011, 05:58 PM   #21
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 643

Rep: Reputation: 90
It is more of a sidenote than any great help but you can always pipe ffmpeg output directly to oggenc if you like:

Code:
ffmpeg -i input.wma -f wav - | oggenc - -q 6 -o output.ogg
 
  


Reply

Tags
audio, conversion, convert, format, ogg, wma


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
Converting from .wma to .mp3/.ogg Napalm Llama Linux - Software 2 09-10-2005 11:18 AM
mp3 and wma to ogg, how can I do that? TruongAn Linux - Software 6 08-30-2005 03:04 AM
mp3 / wma / ogg ...etc crazibri Linux - Software 8 07-04-2004 01:42 PM
how to convert a wma to mp3?? yenonn Linux - General 2 04-26-2004 07:25 PM
Where can I find a WMA to Mp3 (or Ogg) converter? Pcghost Linux - Software 3 07-23-2003 04:16 PM


All times are GMT -5. The time now is 03:56 PM.

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