Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Replaygain For Movies (Read 19365 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Replaygain For Movies

So, Doom9 is without a doubt the best place to talk about video compression techniques, but every film has an audio track that's just as important as the video stream. Doom9 folks know a lot about video but nowhere near quite as much about audio.

The most recommended gain/normalization technique there is using either BeSweet/Oggmachine or HeadAC3he's built-in normalization setting. I'm pretty sure this is an Azid setting and not the HA-preferred ReplayGain/WaveGain technique as it's displayed as Normalize to: 98% with an adjustable percentage setting.

Since I'm fairly certain that this is the case, my question then is: would you recommend that I stop using HeadAC3he (tool that passes Azid out (AC3->WAV) to the Vorbis encoder) and instead use Azid to get AC3->WAV, and then use the Vorbis encoder manually on the WAV to set ReplayGain?
Everything I've learned about space, I've learned from psytrance.

Replaygain For Movies

Reply #1
I've used GordianKnot up from 0.21 beta, so I got some experience in that sector.
I've encoded quite a few movies, and I used the settings recomended (that means, I didn't change anything, I let BeSweet made it's adjustments). I mainly do 1CD ripps (If it's not to bad quality) and always used mp3 with an abr of 128 or 160 (as you don't want the soundfile getting to big, so the movie still looks good).
I found the soundquality kinda good, I don't see any reason the work something out there. Of course, that is just my personal opinion.

My advise would be: first try to encode the traditional way via BeSweet, then use your own apps (WaveGain or whatnot...) and see if you hear a difference. Then make a desision afterwards.
Nothing but a Heartache - Since I found my Baby ;)

Replaygain For Movies

Reply #2
I've yet to come across any dvd that needed its audio track's volume changed. *shrug* (Replaygain sort of came about from the movie industry's practices, did it not? hehe)

Replaygain For Movies

Reply #3
Really? Most people find a lot of downloaded DivX files to have really quite audio tracks because they were improperly normalized or gained. Quite enough that this it's possible to max out the volume control in Windows and on your headphones (or shitty speakers) and be unsatisfactorily quite.

Even with Azid's normalize gain routines, it tends to be about half as loud as a properly gained FLAC. It's probably not a problem with software DVD players because their volume control system probably does amplification too. Of course this makes sense (to me at least, but I'm a n00b) because Azid's normalization (as with most applications that refer to normalization) finds the highest peak and applies gain based on that, whereas the ReplayGain routine calculates gain based on the average volume, and unlike music CD's a film will have a lot of quite scenes and dialog itself is not very loud.
Everything I've learned about space, I've learned from psytrance.

Replaygain For Movies

Reply #4
actually it's more than likely due to the decoder part of your ripping process that's lowering the volume as it's downmixing the 5.1 to stereo to avoid clipping. Why not just demux the ac3 stream and use the ac3 stream itself? I guess size might be an issue there, unless you're using 2 CDs.

Replaygain For Movies

Reply #5
Actually, a lot of the doom9 people know quite a bit about audio, sure maybe not quite as much as some around here but there are some audio gurus over there.  As for the normalization, as someone said earlier it doesn't work the same way what replaygain does.  It is done differently.  My favourite tool for dvd audio processing is besweet, if you use something similar to this command line I am using for one of my movies:
"C:\Audio\BeSweet.exe" -core( -input "C:\DIEANOTHERDAY_DISC1\VIDEO_TS\list.ac3" -output "C:\DIEANOTHERDAY_DISC1\VIDEO_TS\list-New.ogg" -logfilea "C:\Video\Gordian Knot\BeSweet.log" ) -azid( -c normal -L -3db ) -ota( -hybridgain ) -ogg( -q 0.300 )
You should get proper normalization, hope this helps and BTW you can find besweet at doom9 of course,
EDIT: I should say that I am quite happy with the volume of this audio, sometimes when it is done incorrectly the audio will be way too soft and then you have to crank it up only to get blown right out of your seat by a huge gunfight or something, .  I don't have this problem when I do it this way.

Replaygain For Movies

Reply #6
According to this : http://replaygain.hydrogenaudio.org/statis...al_process.html
replaygain does not calculate the average volume, but the volume ranked 95% in the list of all volumes from the quietest to the loudest.
It is a good value for music, but is it suited for movies, where soft dialogs can run during long times, and loud noise occur during only one second ?

Quote
Replaygain sort of came about from the movie industry's practices, did it not? hehe


Maybe, but I doubt that DVD soundtracks are mastered according to movie's standards.

Look at this mess :



This is the same 50 seconds of the soundtrack of the same movie, in 5 different versions. I first wanted to us Headache to convert Ac3 to Wav, but I saw that normalisation couldn't be disabled, and that it also featured a dynamics compressor. So I just played the DVD and recorded the soundcard output instead.
Ghost in the Shell. Playback WinDVD2000 v2.4, stereo mode, SB64 soundcard, recorded with the other soundcard.

1 : Japanese DVD, Japanese soundtrack, AC3 2 channels
2 : Japanese DVD, English soundtrack, AC3 2 channels
3 : French DVD, French soundtrack, AC3 4 channels (DD 4.0)
4 : French DVD, English soundtrack AC3 6 channels (DD 5.1)
5 : French DVD, Japanese soundtrack, AC3 2 channels (DD 4.0) (former according to SmartRipper, later according to the sleeve)

In green : voice (normal talk)
In red : noises (automatic guns)
In blue : music (choir and percussions)

The most different ones are the first and the last, though both japanese 2 channels !
In the last version, the talking, in green is already louder than in the first. If you peak-normalize it, it will become even louder.

Replaygain For Movies

Reply #7
Also, if people prefer the normalization of software dvd players such as WinDVD it is possible to use this to convert the ac3 or dts to wav through graphedit as these filters are directshow.

Replaygain For Movies

Reply #8
well, I don't have 39 copies of the same movie from countries all over the world, but I have quite a few from Canada and every single time I watch a movie I put my amp's volume in the exact same position and it's always seemed to me to be pretty much the same loudness no matter what movie I watch.  Loud stuff sounds loud.  Dialog stuff sounds like dialog-level loudness.  No, I haven't ripped every single DVD I have and actually got some program to calculate and compare their volumes, and I'm sure they do differ somewhat.  But they all seem to me to be in enough of the same ballpark for it not to matter, since my playback volume on the amp is always the same position and I never have to turn it up or down because something's too loud or too quiet.  And no, the player isn't doing any dynamic compression. And Bonzi, when was the last time you heard a gun go off that was just as loud (or quiet, I should say) as your own speaking voice?  They're guns, they're supposed to be LOUD.

Replaygain For Movies

Reply #9
Lol, ok I understand but still this is the way it is decoded in dvd players.  But, yes it is still quite loud,

Replaygain For Movies

Reply #10
@PIO2001

If you want to disable normalisation in HAC3, simple untick 2pass.

Replaygain For Movies

Reply #11
Quote
it's always seemed to me to be pretty much the same loudness no matter what movie I watch.

This reminds me of the progressive scan stuff.
All movies with actors I have are properly encoded (in PAL). While 80 % of the anime I have are messed up (asynchronous or bad NTSC->PAL transcoding).

Maybe the same goes for the soundtrack. The one above is an anime. I don't remember about non-anime with a problem in the sound.
It seems that anime are looked as inferior stuff and not mastered properly, at least in Europe and USA.

Replaygain For Movies

Reply #12
I use besweet using basically the same command line as Bonzi and the gain applied is always different, maybe due to the dynamic range compression I guess. If you don't use any drc then most dvd's are probably similar, maybe it's just me but the audio on dvds does seem to comform to set standards moreso than audio cds these days.

The dynamic range of dvds continually frustrates me however, I know what _Shorty is saying that a gunshot is so much louder than dialog but frankly I don't want it to be as loud as a real gunshot. I'm always having to adjust volume while watching movies which is really annoying. Personally I'm thankful dd has drc, I probably wouldn't watch dvds or dvd rips if it didn't exist.

Btw, besweet does tag ogg streams with an L_WING GAIN value which is read by some players like zoomplayer iirc.
Watch out where the huskies go,
Don't you eat that yellow snow

Replaygain For Movies

Reply #13
Actually, it shouldn't be the player handles that but the filter. As far as I know, the only Ogg filter is the Ogg DirectShow hosted at Doom9, and it does indeed read ReplayGain tags (calculated by VorbisGain). So any player that has this filter installed will handle it properly. I tested with BSPlayer.

My current method is to use Dynamic Range Compression in BeSweet provided by WaveBooster (in BeSweet, it's the Boost tab) and not the DRC provided by Azid. Then I apply the VorbisGain tags. For the first time, I didn't need to touch the volume control when switching from listening to music to playing music.

But the unanswered question is with DRC, should one use peak normalization or ReplayGain for films? DSPguru (author of BeSweet) on Doom9 posted once that he didn't feel that ReplayGain was relevant for films but no thorough discussion took place. I posted a thread on Doom9.

I haven't tested my newly DRC'ed and ReplayGain'ed rips yet but I guess I'll post when I do. I'm really not sure how to do a double-blind test with something like a film.
Everything I've learned about space, I've learned from psytrance.

Replaygain For Movies

Reply #14
The dialogue normalisation in dolby digital is already doing the same thing that Replay Gain tries to do. It should be better. Of course, if you peak normalise then you'll destroy this, but I think I'd be tempted to peak normalise film sound tracks, and even apply automated DRC, for listening to the huge dynamic range of films over small PC/laptop speakers.


IIRC DD includes DRC info, which you can enable, disable, or even have at half effect - so (for example) you can have the explansions very loud, quite loud, or no louder than the speech.

Is this information (DRC and dail-norm) lost when people rip DVDs? It might be useful to figure out a way of maintaining it when the movie is transcoded. I'll bet DSP guru has thought of this, and has an answer as to why or why not.

Cheers,
David.

Replaygain For Movies

Reply #15
Hmm... I remember when I first started doing DivX 5 encodes, I spent a while playing with the sound, trying to figure out why it was always so soft on playback.

  I first extracted the LPCM 2-channel soundtrack, and got a WaveGain estimation of the necessary volume change. Then I encoded using L.A.M.E. and manually adjusted the volume using MP3Gain (quicker than waiting for WaveGain to adjust a two-hour soundtrack, and it got the levels close enough for gov'ment work).

  At this point I tested my MP3 in Winamp. Sounded good, so I muxed it into the AVI with VirtualDub. Played the AVI in Winamp (using the VID4WA plugin) and, lo and behold, the volume was about half what it had been before. So I demuxed the MP3 from the AVI and played that version of the soundtrack in Winamp, and it was the proper volume again. 

    - M.

Replaygain For Movies

Reply #16
well, I was going to say something long about directors and their desired effect on you and how dynamic range in sound can help achieve that, but I think those few words are enough. BTW, while you're compressing the dynamics out of the movie soundtrack, do you also run a blurring filter on the picture?

Replaygain For Movies

Reply #17
The AC3 tracks from the DVD actually already contain DRC info and BeSweet simply applies that when you convert from AC3 to anything else. Most DVD players already use the DRC information so failing to DRC your DivX rip would actually make it sound differently than what it would sound in a DVD player.

Since the DRC info is coming straight from the DVD, I'd argue that this is the more faithful home theatre translation of what the director and his (the only good female director is Julie Taymor) sound engineers have in mind.

@2Bdecided: I think the Dolby Digital dialogue normalization is actually different from the general DRC found in the AC3 tracks. My reasoning is that in Azid there are seperate options for handling these two.
Everything I've learned about space, I've learned from psytrance.

Replaygain For Movies

Reply #18
no, a dvd player would only use that information if you use that option. Assuming they use it in all cases isn't correct. My, and I'd guess all, player lets me change and disable any dynamic range stuff. The fact that the info is there doesn't mean it is always used, that's ridiculous.

Replaygain For Movies

Reply #19
I've never played with the option, but I do know that PowerDVD has it on by default. This also makes a lot of sense because I never have to constantly adjust my volumes on any standalone DVD player, whereas I did with lots of downloaded DivX files. I use the same speakers for both applications and they're not too crappy (Logitech Z-560).

I think DRC should be turned on because it truly is unbearable for most home theatre environments. Maybe you have a very high end one with superior acoustics that are more similar to a real theatre?
Everything I've learned about space, I've learned from psytrance.

Replaygain For Movies

Reply #20
no, I just don't use computer speakers. I don't know how you could stand having dialog sound just as loud as a big gun fight or a huge car crash or a bunch of helicopters. Sounds bad like that, if you ask me. I have my volume knob set so that anyone talking in the movie is just as loud as if I were standing there with them and they were talking to me.  So it sounds like, surprise, they're there talking.  If you can manage to get someone in the same room with you, which probably is a pretty easy task to handle, then you could ask them to say a bunch of stuff and be aware of how loud they talk.  Very easy reference point. heh. Quiet stuff quiet, loud stuff loud, moderate stuff moderate.  Makes sense to me.  Makes movies much more enjoyable too.  But then, I'm not everyone, and not everyone likes things the way I do.

Replaygain For Movies

Reply #21
I do like my dialogue the same as real life, but though a gunshot should sound painful, I don't want to hear that. Nor my neighbors.
Everything I've learned about space, I've learned from psytrance.

Replaygain For Movies

Reply #22
yeah, I don't know of any movie that has something resembling the true difference between the two, but chances are the movie will still have the guns a lot louder than the dialog.  I meant more to illustrate that I prefer to hear the original dynamics without the dynamic compression features doing their thing.

Replaygain For Movies

Reply #23
Thanks Kent Wang, I was unaware the oggds filter handled the gain tag. It's good that it's player independant.
There's nothing wrong with dynamic range but I think I would have to have a sound proof room and an expensive 5.1 setup to ever watch a dvd without any drc. My current setup is nothing special but it's far better than your average pc speakers.
Sometimes it just seems to me that spoken dialog is a little too low in the mix. I don't use anything above normal drc which still provides a fair amount of dymanic range, enough for me.
From what I can gather most dvd players have normal drc set as default, some don't include the option to enable/disable or adjust drc which is not so good.

Quote
BTW, while you're compressing the dynamics out of the movie soundtrack, do you also run a blurring filter on the picture?


A lot of the time, yes 

We still haven't answered you first question Kent Wang  . I guess I'm a little less questioning than some, if DSPGuru says do it this way I trust his opinion because he sure knows a lot more about it than I do.
Watch out where the huskies go,
Don't you eat that yellow snow

Replaygain For Movies

Reply #24
Of course the beauty of ReplayGain is that it's easy to rip out without any loss. DRC, though, is not such a pretty story. However, DSPguru does endorse its use; he even wrote the preferred Dg compression mode.

BeSweet DRC is actually much better than the DeDynamic filter that most software DVD players. So your option comes down to 1) if you want DRC, run BeSweet and don't depend on the DVD player or 2) if you don't want DRC, figure out how to disable it in your player. Either way, players that use DeDynamic suck no matter if you want DRC or not.
Everything I've learned about space, I've learned from psytrance.