FieldStation42 icon indicating copy to clipboard operation
FieldStation42 copied to clipboard

volume normalization

Open Devineavenger opened this issue 1 year ago • 2 comments

Is there anywhere you could easily add

   af=lavfi="pan=stereo|c0=FC+LFE+FL+BL+SL|c1=FC+LFE+FR+BR+SR,loudnorm=I=-14:LRA=1:tp=-1:linear=false:dual_mono=true"

to the code?

Devineavenger avatar Oct 31 '24 11:10 Devineavenger

That should be doable, and useful. I ran all of my videos through audio normalization as part of the conversion, so haven't noticed a lot. Loud commercials would be pretty par for the course in 1984 ;)

shane-mason avatar Oct 31 '24 17:10 shane-mason

Adding enhancement tag and putting on backlog.

shane-mason avatar Oct 31 '24 17:10 shane-mason

@Devineavenger I was curious to test this filter after seeing your comment. After some poking around, it seems that adding you can accomplish it with relative ease, and without modifying fs42 code.

Create ~/.config/mpv/mpv.conf with the following content: [default] af=lavfi="pan=stereo|c0=FC+LFE+FL+BL+SL|c1=FC+LFE+FR+BR+SR,loudnorm=I=-14:LRA=1:tp=-1:linear=false:dual_mono=true"

When mpv is launched by field_player.py, it will respect the configuration without any extra steps. I verified this with my ears, and by reviewing mpv logs.

daguire avatar May 15 '25 20:05 daguire

Awesome - thanks for sharing that @daguire - I think that resolves this issue and no-one had to do any work. Its also good to remember about all the MPV options. Thanks!

shane-mason avatar May 15 '25 22:05 shane-mason

This is resolved, since you can just use MPV default configs.

shane-mason avatar May 15 '25 22:05 shane-mason