Kodi Community Forum
upnp and replaygain - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: upnp and replaygain (/showthread.php?tid=263067)



upnp and replaygain - tappelo - 2016-03-06

Hello folks,

like the kodi stuff alot.
lately i began to use kodi as an upnp client / renderer as explained here for listening to music: http://kodi.wiki/view/UPnP/Client
upnp server: subsonic (www.subsonic.org)
upnp controller dsub on android https://play.google.com/store/apps/details?id=github.daneren2005.dsub&hl=en
upnp renderer: kodi

problem i have: replaygain is not working via this setup. if i play a file without upnp the tags are detected and applied correctly:

Code:
17:19:04 T:140066776447104    INFO: ffmpeg[7F63D6747880]:     replaygain_album_gain: -7.59 dB
17:19:04 T:140066776447104    INFO: ffmpeg[7F63D6747880]:     replaygain_album_peak: 1.589859
17:19:04 T:140066776447104    INFO: ffmpeg[7F63D6747880]:     replaygain_track_gain: -10.93 dB
17:19:04 T:140066776447104    INFO: ffmpeg[7F63D6747880]:     replaygain_track_peak: 1.203960
17:19:04 T:140066776447104    INFO: ffmpeg[7F63D6747880]:       replaygain: track gain - -10.930000, track peak - 0.000028, album gain - -7.590000, album peak - 0.000037,
17:19:04 T:140066776447104   DEBUG: AudioDecoder::GetReplayGain - Final Replaygain applied: 0.417350, Track/Album Gain 81.410004, Peak 1.589859

if i play the same song via upnp setup the tags are detected as well, but not applied:

Code:
17:18:30 T:140066776447104    INFO: ffmpeg[7F63D6747880]:     replaygain_album_gain: -7.59 dB
17:18:30 T:140066776447104    INFO: ffmpeg[7F63D6747880]:     replaygain_album_peak: 1.589859
17:18:30 T:140066776447104    INFO: ffmpeg[7F63D6747880]:     replaygain_track_gain: -10.93 dB
17:18:30 T:140066776447104    INFO: ffmpeg[7F63D6747880]:     replaygain_track_peak: 1.203960
17:18:30 T:140066776447104    INFO: ffmpeg[7F63D6747880]:       replaygain: track gain - -10.930000, track peak - 0.000028, album gain - -7.590000, album peak - 0.000037,
17:18:30 T:140066776447104   DEBUG: file http://nasir:4040/rest/stream.view?u=tobias&p=enc:6d7573696361&v=1.2.0&c=DSubCC&id=18279&format=raw could not be opened for tag reading
17:18:30 T:140066776447104   DEBUG: AudioDecoder::GetReplayGain - Final Replaygain applied: 1.000000, Track/Album Gain 89.000000, Peak 0.000000

error seems weird as the tags were already read by ffmpeg. how to fix ?
full log here: http://goo.gl/mEpA9U


RE: upnp and replaygain - daneren2005 - 2016-03-12

Am I correct in assuming that those lines are the replaygain being applied directly via ffmpeg?

-- DSub developer


RE: upnp and replaygain - tappelo - 2016-03-12

posted anohter log file: http://xbmclogs.com/pjnsyqepl
i think ffmpeg should apply them, but somewhere in between the file is opened using curl another time and then the tag reading fails ?
not sure..


RE: upnp and replaygain - daneren2005 - 2016-03-14

Try turning off the setting in DSub Settings -> Casting -> Stream original. I pass the original stream by default because DLNA/Chromecast behave much better if they know the content length, which can only happen if it's not being transcoded.


RE: upnp and replaygain - tappelo - 2016-03-14

hi,
changing your suggested setting does not seem to help:
20:12:38 T:139770771638400 DEBUG: file http://nasir:4040/rest/stream.view?u=tobias&p=enc:6d7573696361&v=1.2.0&c=DSubCC&id=18278&maxBitRate=256 could not be opened for tag reading
20:12:38 T:139770771638400 DEBUG: SeekTime - seek ended up on time 0
20:12:38 T:139770771638400 DEBUG: Previous line repeats 1 times.
20:12:38 T:139770771638400 INFO: AudioDecoder: File is queued
20:12:38 T:139770771638400 DEBUG: AudioDecoder::GetReplayGain - Final Replaygain applied: 1.000000, Track/Album Gain 89.000000, Peak 0.000000


RE: upnp and replaygain - daneren2005 - 2016-03-15

Do you have the same transcoding settings applied to the DSubCC player?


RE: upnp and replaygain - tappelo - 2016-03-19

i did not setup maximums so not sure. dsub got upgraded. maxbitrate is set to 320 now. logs are similar and issue remains there.
11:09:19 T:140256067160192 DEBUG: CurlFile::Open(0x65d7ec0) http://nasir:4040/rest/stream.view?u=tobias&p=enc:6d7573696361&v=1.2.0&c=DSubCC&id=18279&maxBitRate=320
11:09:19 T:140253782234880 DEBUG: Thread FileCache start, auto delete: false
11:09:19 T:140253782234880 DEBUG: Thread FileCache 140253782234880 terminating
11:09:19 T:140256067160192 DEBUG: file http://nasir:4040/rest/stream.view?u=tobias&p=enc:6d7573696361&v=1.2.0&c=DSubCC&id=18279&maxBitRate=320 could not be opened for tag reading


RE: upnp and replaygain - PCVXD - 2019-04-04

The problem still persists, the tags are detected at first but then forgotten or ignored and the gain for files without ReplayGain information is applied.