ModPlug Central

OpenMPT => Help and Questions => Topic started by: AmericanDiamond on September 10, 2008, 05:03:59

Title: surround volume
Post by: AmericanDiamond on September 10, 2008, 05:03:59
I hope that this is the correct form to post this in.

Does anyone know where I can find a VST effect/plugin that can increase the volume of the surround channel (I'm not sure if it's called the surround channel or the rear channel)?

I know of the 'surround encode', 'surround echo' and the 'surround panning' effects, but whenever I put sound on the surround channel, it tends to be lower in volume on the mp3 than I want it to be and not at the volume level that I set it in MPT.

So, I would like a VST effect that can allow me to take the surround channel on the completed WAV file and modify the volume/gain to what I desire it to be, like maybe some type of surround remixing tool.

NOTE:  This is for the ordinary stereo 2.1 surround, NOT 5.1 or 7.1 surround.

Thanks.
Title: surround volume
Post by: LPChip on September 10, 2008, 05:54:35
Note that when you export to wav or mp3, all surround information is lost, as a stereo file can't have any form of surround. (Someone, correct me if I'm wrong, but as far as I know, only AC3 supports surround)

Playback of surround, therefor, will only happen inside OpenMPT.

If your endgoal is to have it being played as mp3, then I strongly suggest to abandon the surround option.
Title: surround volume
Post by: Sam_Zen on September 10, 2008, 06:30:57
Weird. I read this post in the 'Open-source and free software', and thought indeed "not the proper form for this".
I wanted to reply, and in the meantime the post was moved as a proper thread here. Nice.

This is an area with many confusions. In terminology and technology.
So what does "stereo 2.1" means ? I haven't got a clue.
QuoteI'm not sure if it's called the surround channel or the rear channel
Channels that is. These terms are both by consumers used for the same horizontal speaker positions.
But that's not so relevant. It's about handling more than 2 channels of a soundfile.

LPChip is right, exporting to MP3 will loose the surround options.
A workaround could be to save the groups of channels with or without the surround enabled seperately into WAVs.
Then mix them into an OGG file, which can contain multi-channels.
Title: surround volume
Post by: LPChip on September 10, 2008, 08:08:00
Actually 2.1 is just stereo. The 2.1 is referred to a speaker setup with a front left, front right and subwoofer.
Title: surround volume
Post by: psishock on September 10, 2008, 10:33:25
this might be interesting for you:
http://en.wikipedia.org/wiki/MP3_Surround
Title: Thanks
Post by: AmericanDiamond on September 10, 2008, 22:45:15
Thanks to everyone that answered.

From what was said, I think I meant the rear channel, because, for instance, if I dedicate a channel in OMPT to surround (using the "S91" option) in a song and then export it to a WAV file, if I play the file and/or convert it to an MP3 file, I can still hear it "sort of" the way it was intended (that's why I think I meant to say the "rear channel" or maybe even the center channel).

I posted because the rear or center would be at a lower volume than expected only when I converted it to an MP3 file.  So, I think I understand what LP and you others said about the surround information being lost, and since you all said that, I'm thinking I was really talking about the rear or the center channel, since I can still hear that.

As you can probably see, I'm a bit confused with the difference between rear/center channel and surround.

Thanks for the link.
Title: surround volume
Post by: Sam_Zen on September 11, 2008, 00:17:05
Quote from: "LPChip"The 2.1 is referred to a speaker setup with a front left, front right and subwoofer.
Well, (you know my attitude about this), I was already afraid of that (imo silly) construction.

To attempt to decrease the confusion about this, it's important to realize first the difference between a stereo-source,
which is decoded by some circuit into more outputs in some way, or having discrete tracks, directly available to play back at the same time.

If decoding is concerned, the center channel is created by ignoring the differences between left and right channel, so only the common sounds.
Logically this result is decreased in volume, because a straight 50 % of both sides would be too loud. The mix is not lineair.
Of course this center-trick can emphasize some sounds. Quite logical, because most of the time talking heads or singers are produced in the center.

The same thing is valid for the center subwoofer. Most of the time a bass or a kick sound are produced in the center.
Plus the industry had the argument that one couldn't hear any panning difference of low frequencies anyway. Which I deny.

The downside of having a third speaker in the center of a stereo panorama will be an audible 'narrowing' of the experienced width.

Creating rear/surround channels is another aspect. If artificially decoded, most of the time it's some algorithm (S91) using phase shifts of the source.

Returning to the basic topic question here : why has the channel dropped in volume ?
Because phase shifts of the same original are involved here, it's not unthinkable that in the mixed result some things get weaker.
If you mix two versions, but one with a 180 degrees turn, the result will be silence.
Title: surround volume
Post by: Snu on September 12, 2008, 04:52:46
i dont know much about this either (i stick to just stereo), but i think before this gets too complicated we should make sure to differentiate between dolby pro logic surround (which is 4 channels encoded into 2) and plain surround (which could be 4 channels, 5, 7, whatever).

i have a couple questions:
are you exporting mp3s directly from modplug?
how does an exported wav file sound? is the volume wrong on that?
what player are you using to listen to the mp3? have you tried a different player?
what is your soundcard and speaker setup?
what windows sound devices are modplug, and your mp3 player using? its possible the back channel settings are different for the wave mapper and direct sound devices.

my first guess is the mp3 decoder you are using doesnt properly support dolby pro logic... it could be a variety of issues tho.

for the vst thing... your only option would be to try and find a vst dolby surround encoder, and set modplug to quad channel mode instead of stereo (this turns off modplug's dolby encoding). i dont know of any vst that does this tho.
Title: "Surround" in Finished MP3 Files (Continued)
Post by: AmericanDiamond on September 13, 2008, 04:50:54
Because of quality issues, I never encode to MP3 directly from Modplug; I only encode to WAV (I used to encode in 16-bit stereo but recently I began using 32-bit, both varying between 200% and 400% stereo separation) and then use a third-party MP3 encoder.

When I create the WAV file, there are absolutely no differences heard; everything is encoded as it's supposed to be, with the correct volume levels for the rear channels.  It's when I encode from WAV to MP3 that I lose the rear volume.

I asked myself the same question of whether it's the player, but I don't think it is; I use Winamp 5.3, but I can put the MP3s on a portable player or use RealPlayer (a sort of testing backup) and notice the same loss.

As far as my speakers and soundcard, I have what I call the "sufficient" Conexant sound card and the two monitor-detachable speakers that came with the HP Pavilion 6573Z (yes, old, but they still work).  The only way I can correct the rear volume issue is to redo the songs all over again with a higher volume setting for all notes/channels set to S91.  I tried that in the past, but it gets VERY time-consuming, not to mention tedious.

I have scoured my PC to look for any setting that may be causing this difference, but I haven't found anything that will allow me to modify any back channel settings.  By the way, in Winamp 5.3 I use a DSP called Surround Channel Mixer v. 0.1 that allows me to change the ratio of the surround channel with a range of 0% to 150% only during playback, but, alas, it's a DSP and not a VST.

And yes, I was talking about Dolby Pro-Logic Surround.  I didn't know the difference before.

Also, if there is a VST effect that could mix the front and rear channels independently, I would appreciate it if someone could advertise one to me, which would be a big help.  Could I translate the WAV or MP3 file to 5.1 and do that with some VST effect?
Title: surround volume
Post by: bvanoudtshoorn on September 13, 2008, 08:49:56
Perhaps try encoding to a format other than MP3, such as OGG, FLAC, or even WMA. I think it's an artifact of the MP3 compression.
Title: surround volume
Post by: LPChip on September 13, 2008, 09:00:20
Its indeed the encoder that makes this change. Perhaps the encoder has an option for surround, or there's a different encoder out there.

Alternativelly, you could try removing the surround settings and save it as wave to see if that compensates for the mp3 problem.
Title: surround volume
Post by: älskling on September 13, 2008, 09:23:02
I don't quite understand why you use surround effects with only stereo speakers in the first place. It's not meant as a stereo effect and it will cause unpredictable results.

Anyway, what MP3 encoder and settings are you using?
Title: surround volume
Post by: Sam_Zen on September 14, 2008, 00:06:55
QuoteI don't quite understand why you use surround effects with only stereo speakers in the first place.
Fully agree.
But the results aren't that unpredictable.
This simple surround mode copies the data from one channel to the other but with a reversed, so 180 degrees, phase.
This results in the sense of a 'wider' panorama, because some common sounds in the center are gone.

The advise by [BvO] is correct. Use other formats, which can contain multiple soundchannels.
But in the end, you'll still need the appropriate number of speakers to reproduce it.

I once made a test file with 9xy codes, to hear the result :
http://www.samshuijzen.nl/sam/plainmods/codetst2y.xm
Title: Possible Confusion and Temporary Resolve
Post by: AmericanDiamond on September 14, 2008, 04:35:16
I'm not sure if we're on the same page when we're talking about surround.  I've already made songs that are "surrround" capable, and the rear channels can be brought out with the Surround Channel Mixer DSP I mentioned in the previous post, meaning that the encoding IS there.  It's just that the volume isn't where I want it to be.

When I use PaceMaker in Winamp and select the voice removal option, those "S91" channels/notes are singled out, and whatever channel those are on, THAT'S what I wanted to make louder and/or manipulate in either WAV format or in the finished MP3 format.  I hope that illustrated more of what I was talking about earlier; sorry for any confusion on my part.

The other formats like AC3 and OGG sound great, but at this point I'm not sure if I would like to deal with switching between file formats.  However, if it can convert losslessly to WMA so I could squeeze it into my Nomad MuVo (the original; yes, I still use that and don't have an iPod yet), I'm on board.  I'm trying out LAME encoder to see if that makes a difference for the time being.

I would try saving the S91 channels as a separate WAV file, but that would go back to the OGG vs. MP3 thing.

O yeah, I use the freeware "WAV to MP3 Encoder 2.5" by Mthree Development to encode in 128 kbps Stereo.  I've tried 160 and 192 kbps, but there was no change.  So I'm definitely going to try LAME.
Title: surround volume
Post by: Sam_Zen on September 14, 2008, 06:08:05
Yep, LAME is the one, if you want to deal with MP3.
Some related tools :
Lame FE (http://www.louigiverona.com/webarchive/samzen/download/lamefe.7z) by Jacek Pazera (open source)
Lamedrop (http://www.louigiverona.com/webarchive/samzen/download/lamedropxpd397.7z) by John Edwards. WAV <--> MP3. Just drop file on object for conversion. (R-click for settings).
The same construction for another 'dropper' : Oggdrop (http://www.louigiverona.com/webarchive/samzen/download/oggdropxpd189.7z) regarding WAV <--> OGG.
A versatile multi-format converter is Winlame (http://www.louigiverona.com/webarchive/samzen/download/winlame.7z) by Michael Fink.
A list of compatible formats can be read here (http://www.louigiverona.com/webarchive/samzen/download/winlame.txt).

QuoteI would try saving the S91 channels as a separate WAV file, but that would go back to the OGG vs. MP3 thing.
I don't understand the OGG vs. MP3 thing here.
If you save a seperate WAV with the S91 channels, then I guess it's just a matter of increasing the volume, save it again.
And integrate it back in the target-file.

If talking about lossless, both MP3 and OGG aren't the ones to use (although OGG developments go in that direction).
Then you'll need the formats FLAC, WV or APE. Of FLAC I know it's multichannel.

My advice about hesitating switching file formats : just start implying it, wherever it can.
(an aspect when publishing tracks : the MP3 format has copyright, the OGG format is open source)
The next version of FireFox will have the OGG format fully integrated in the browser, so no plugin needed.
Title: surround volume
Post by: Snu on September 15, 2008, 19:59:15
pretty much any modern sound editor (such as audacity) would be able to edit a wave file with quad channels... but i dont know of any way to edit already-encoded dolby pro logic channels.
one question, are you using joint stereo when encoding the mp3? that would probably seriously screw up the extra encoded channels.

after a couple google searches, i came across this:  http://www.hydrogenaudio.org/forums/index.php?act=ST&f=15&t=4639
hase some crap, but also has some useful info.
looks like it might just be a limitation of the mp3 algorithm... try the '--alt-preset insane' with lame, and see if thats acceptable. otherwise, use ogg, or forget the dolby altogether and export a quad channel wave and use that mp3 surround format.

i dont think having a vst that mixes more than two sound channels wouldnt do any good, mpt should be encoding the dolby channels before the audio is sent to the vsts, thus the vst would only see two channels.

also, im rather confused on how you are listening to the rear channel and using only stereo speakers... specifically on the portable player.
before you get too much into surround you really need to get a surround speaker setup.
Title: Testing
Post by: AmericanDiamond on September 15, 2008, 22:24:31
Yeah, surround speakers are definitely the next step for me, in addition to a new power PC altogether.

When I was using the WAV to MP3 encoder program I mentioned in a previous post, it had no other options beyond selection of the bitrate and mono/stereo, so I didn't know if it was joint or not, didn't know what it was doing behind the scenes.  Actually, I hadn't tried quad channel or even 32-bit stereo WAV files earlier only because that encoder wouldn't encode those.

I recently got LameXP and LameDropXPd like Sam recommended, but I haven't used them yet.  I did look at the settings in LameXP and I don't see any presets or preset manager (I DID see it in Winamp in the plugin section).  Should this option and more options be in LameXP (for encoding WAV, etc. to MP3) or the Winamp Lame plugin (for encoding a new MP3 from an existing one all from Winamp directly)?  Where and how would I encode into MP3 Surround?

Snu, I see your point about the VST.  Anywhere I play the MP3 files, including the two speakers and the portable with my earphones, it has the same effect.  When it comes to the channel name, you're probably just as confused as I am.  :oops:  It might be the center channel or the rear channel, I'm not sure, but either way it's what I had previously set to S91.

Nevertheless, I'm going to try out LameXP/LameDropXPd and see what they do while also continuing to look into the other file formats.  Thanks for the continued advice/info.
Title: surround volume
Post by: Sam_Zen on September 16, 2008, 02:55:35
Maybe as an intermediate in this process, this free app could be useful : Multiwave (http://www.louigiverona.com/webarchive/samzen/download/multiwave.7z).
It makes a multi-channel WAV out of any number of mono WAVs into several configurations.

(http://www.louigiverona.com/webarchive/samzen/4c/multiw_seta.png)
Title: Re: Testing
Post by: älskling on September 16, 2008, 10:29:59
Quote from: "AnthonyGSSM"I did look at the settings in LameXP and I don't see any presets or preset manager (I DID see it in Winamp in the plugin section).
Use the command line version of LAME. I think RazorLame allows for custom commandlines ("--alt-preset insane") if you feel you need a GUI.