Skip to content

Apply audio gain to videos #322

@AxelTerizaki

Description

@AxelTerizaki

Hello there.

I have no idea if this is possible or not, but if it could it'd be great.

For Karaoke Mugen we analyze and collect all videos' audio gain values with ffmpeg with the following command line :

ffmpeg -i <file> -vn -af replaygain -f null -

It outputs info about the media file and also calculates its replay gain in decibels.

As we use mpv to play files on the desktop app, it allows us to pass the replay gain as a parameter. It makes for a smoother experience as all videos aren't on the same sound volume, so mpv adjusts the sound volume automatically with the audio gain we collected. (-6 dB, +2.7 dB, etc.)

We were wondering if the same thing was possible with AO's video player, if volume can be adjusted automatically if a audio gain is provided. I'm not even sure if it's possible but who knows ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions