Go Back   Club Myce > Software > General Software

Reply
 
LinkBack Thread Tools
Old 20-01-2009   #1
New on Forum
 
Join Date: Jan 2009
Posts: 5
Extracting WMA channels

Hello!

I have an iRiver E100 that is capable of recording audio from its built-in microphone, external microphone and line-in. Most of the time I make recordings with its built-in one which is mono, though the format it's recording is a Stereo WMA, 192kbps and it's a waste of disk capacity, since both audio tracks contain the same material. There is no option adjusting the channels for recording.

I'm looking for a (command line if there's one) tool that can extract one channel from a WMA file and save to another. For instance my 192kbps WMAs consist two 96kbps WMA audio streams, one for each channel (2). I'd like to extract one of these channels to a new file, that'd be Mono and 96 kbps.

I'm pretty sure that audio channels are stored somehow separately. For example, I have a recording, speech-of-my-friend-in-the-school.wma that is 11 682 672 in bytes and 8:04 long (484 seconds). At 192kbps a 484 seconds long audio clip would be (192000*484)/8 = 11 616 000 bytes which is almost the same as the real size (maybe there are more frames than exactly 484 seconds and the real bitrate doesn't end with 000, there's a header, that's why the real size is bigger), so I don't think it spares disk space by summing/differencing audio tracks, because in this case the size should be around half as big as a conventional 192kbps clip.

I have WinAmp and audio editing softwares, but I would not like to convert my clips. I could downmix them and convert them using ffmpeg/lame/etc. but this will result in the loss of quality. The only option for me is copying one channel and saving it as a mono-channel WMA.

Tried using AsfBin, but couldn't figure out how to separate a stereo audio tracks into two mono channels without re-encoding. Tried: asfbin -i <inputfile> -o <outputfile> -nostream 2 , but it handles the audio part as one stream.

Also tried with ffmpeg -i <inputfile> -ab 96k -ac 1 -acodec copy <outputfile>, no success, it generates an output file arund the same size and bitrate as the input.

Thanks in advance
Zooya
Zooya is offline   Reply With Quote
Old 25-01-2009   #2
New on Forum
 
Join Date: Jan 2009
Posts: 5
Re: Extracting WMA channels

Anyone here who could help?
Zooya is offline   Reply With Quote
Old 26-01-2009   #3
Senior Moderator
 
olyteddy's Avatar
 
Join Date: Nov 2006
Location: In the present, the past was so long ago...
Posts: 6,596
Re: Extracting WMA channels

You'll likely meet the same folks here as at the other forum you posted this at. How much quality do you imagine you'd lose resampling a voice recording, anyway?
olyteddy is offline   Reply With Quote
Old Today
Always the best offers
 
 
Join Date: Today
Location: Myce HQ
Posts: Zillions
Old 26-01-2009   #4
New on Forum
 
Join Date: Jan 2009
Posts: 5
Re: Extracting WMA channels

Quote:
Originally Posted by olyteddy View Post
You'll likely meet the same folks here as at the other forum you posted this at. How much quality do you imagine you'd lose resampling a voice recording, anyway?
That much I can hear with my ears. I've already tried resampling it to a mono MP3 using lame (with these options: -a -b96 -q0). Also tried using mp3sencoder (by Fraunhofer) with options -q 1 -c 1. Surprisingly, Fraunhofer's stuff produced even worse quality than lame.
Zooya is offline   Reply With Quote
Old 29-01-2009   #5
MyCE Resident
 
Join Date: Oct 2008
Location: Pennsylvania
Posts: 1,461
Re: Extracting WMA channels

The only easy way I can think of would be to convert them to WAV (or play them back as analog audio) then compress them as mp3's.

alternatly you could much more easily remove your root concern
(use of excess storage space) by simply getting a larger HDD.


AD
AllanDeGroot is offline   Reply With Quote
Old 10-02-2009   #6
New on Forum
 
Join Date: Jan 2009
Posts: 5
Re: Extracting WMA channels

Quote:
Originally Posted by AllanDeGroot View Post
The only easy way I can think of would be to convert them to WAV (or play them back as analog audio) then compress them as mp3's.

alternatly you could much more easily remove your root concern
(use of excess storage space) by simply getting a larger HDD.


AD
I have a HDD large enough (1TB), there is 100 GB of these recordings which could be 50GB without any quality loss if I could figure out how to extract one channel from them. I won't buy a new HDD, because I don't agree with wasting resources and disk space just because Microsoft wants me to.
Zooya is offline   Reply With Quote
Old 10-02-2009   #7
CDFreaks Resident
 
Ibex's Avatar
 
Join Date: Apr 2006
Location: Woostershire (UK)
Posts: 1,617
Re: Extracting WMA channels

You could give dBpowerAMP a try. There is a Channel Split utility codec, but the audio is probably re-encoded in the process.
Ibex is offline   Reply With Quote
Old 11-02-2009   #8
New on Forum
 
Join Date: Jan 2009
Posts: 5
Re: Extracting WMA channels

Quote:
Originally Posted by Ibex View Post
You could give dBpowerAMP a try. There is a Channel Split utility codec, but the audio is probably re-encoded in the process.
Thanks, dBpowerAMP looks like a great app. Although it can't channel split without re-encoding, I was able to convert a bunch of my recordings to mono-equivalent bitrate 96kbps MP3 in batch mode. Unfortunately the result is as bad as I had used lame or mp3sencoder (fraunhofer) from command line.
Zooya is offline   Reply With Quote
Old 12-02-2009   #9
CDFreaks Resident
 
Ibex's Avatar
 
Join Date: Apr 2006
Location: Woostershire (UK)
Posts: 1,617
Re: Extracting WMA channels

Ah... (If my memory is correct) WMA always uses joint stereo for multi-channel audio files, so lossless splitting of the audio channels is impossible.

I have experienced sound quality problems before when transcoding audio from another lossy codec to MP3. For example, after converting radio comedy programmes from 44Kbit Real Audio 8 to MP3 whenever there was laughter the sound would break up badly and there would be metallic artifacts, even when encoded at a very high MP3 bitrate. Converting to WMA instead solved the problem. Keeping the destination bitrate slightly higher than the source bitrate also helps to maintain sound quality and avoid artifacts.

But, as I am sure you have already discovered, WMA only allows certain combinations of bitrate, sample frequency & channels. For mono at 44KHz the maximum bitrate is only 48Kbit.

You can try converting to AAC or Ogg Vorbis. Both are very good lossy compression codecs and of a similar sound quality to WMA.
Ibex is offline   Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Loss of channels manicfi Consumer electronics 0 05-08-2007 11:29
converting MP3 TO WMA or cd to wma BongMasterP General Software 3 22-02-2004 08:16


All times are GMT +2. The time now is 08:38.
Top