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 Video Files (Read 4030 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Replaygain Video Files

I was wondering, is there any way to replaygain video files? Take, for example, multiple episodes of a series that you want to watch in series but they are compressed with different audio codecs in the files. MPEG AUdio, Windows Media, OGG. Does any solution exist? If not, what would be the technical barriers to creating one?

Destron

Replaygain Video Files

Reply #1
Well, for starters a ReplayGain-enabled DirectShow decoder filter (or decoder software if you're on Linux) would be nice.

But demuxing the audio stream, replaygaining it, and remuxing it with video would certainly work. For example, you could extract a MP3 track from a video file, run it through MP3Gain and remux the now replaygained MP3 track with the video.

The problem with non-MP3 formats is that you would need to adjust the gain on the audio data itself; no decoder filter that I know of supports ReplayGain tags. I don't know whether that's possible with Vorbis without re-encoding. WMA would have to be decoded, replaygained and then re-encoded with huge quality loss, naturally.

A nice solution would be a fb2k-like video player that would store the ReplayGain values of video files in a database, without the need to modify the video files at all.

Replaygain Video Files

Reply #2
I generally use Besweet (via Oggmachine gui) when I rip dvd's, when applying gain it stores gain info in the tags which is read by the oggds filter.
I'm pretty sure it does something similar for mp3's but I always use ogg so I'm not totally sure.
You can find more info @ doom9.
Watch out where the huskies go,
Don't you eat that yellow snow

 

Replaygain Video Files

Reply #3
Thanks for the input. Yes, I use BeSweet also, but the problem is with files that I did not make myself. The best solution would probably be replaygain tags in the container. This would be perfect for MKV since the standard is not yet set in stone.

Replaygain Video Files

Reply #4
I encode a lot of Vorbis Xvid OGMs using vorbis gain. It sounds great comparing to those poor (i mean quiet) sounding mp3 AVIs I used to produce.
I love the moderators.

Replaygain Video Files

Reply #5
Quote
Thanks for the input. Yes, I use BeSweet also, but the problem is with files that I did not make myself. The best solution would probably be replaygain tags in the container. This would be perfect for MKV since the standard is not yet set in stone.

The matroska specs show a replay gain field since the very beginning already, but unfortunately there are no tools writing the element yet, leave alone reading it. The problem, as mentioned above, was to make a replay gain DirectShow filter to support this for the most used matroska players. Integrating into matrix mixer filter or morgan stream switcher sound like feasible alternatives to me .....