in order to save space on my home NAS I want to convert plenty of different videos to more efficient codes.
Is there a way to limit the sampling rate to 44 100Hz in order to convert 48 000Hz to 44.1kHz but to keep Videos with 22 050Hz at that sampling rate?
The only solution I came up with is to use something like medainfo or "mplayer -vo null -ao null -frames 0 -identify $1 | grep ID_AUDIO_RATE" to get the sampling rate and decide what option to set.
Is there a smarter, more elegant way?
Thanks in advance Ben