AntaresFR 8 Posted June 22, 2019 Share Posted June 22, 2019 Hi, I have a quick question concerning remote control of emby for kodi. In other Kodi client apps, if i remote control them from a phone or emby theather for windows for exemple, I can choose the audio langage and the subtitle to use to play the file; If I remote controle a device with Emby for Kodi, the app doesn't care of the Audio and Subtitle I choose from the remote app. Is it a normal thing, is it possible to change a setting to make it like other apps ? Regards Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted June 22, 2019 Share Posted June 22, 2019 (edited) Ok I’ll make sure to review this before making a new stable version. Thanks for reporting this. Edited June 22, 2019 by Angelblue05 1 Link to comment Share on other sites More sharing options...
AntaresFR 8 Posted June 23, 2019 Author Share Posted June 23, 2019 (edited) There is also a probleme with the StartPositionTicks which is ignored. I connect my Emby Web to the Emby on Librelec to remote control it and i'm able to start the movie without problem on the Emby for kodi remotly without problem. But i'm unable to start with a defined Audio Index or Subtitles Index, or a specific chapter. It always start from 0, without subtitles, in French Regards More tests, it looks like it takes the user preferences from emby but doesn't care of what we choose frome the remote interface Edited June 23, 2019 by AntaresFR Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted June 29, 2019 Share Posted June 29, 2019 This is fixed with Emby for kodi 4.1.0 https://emby.media/community/index.php?/topic/21888-emby-for-kodi/page-19&do=findComment&comment=758266 1 Link to comment Share on other sites More sharing options...
AntaresFR 8 Posted June 29, 2019 Author Share Posted June 29, 2019 This is fixed with Emby for kodi 4.1.0 https://emby.media/community/index.php?/topic/21888-emby-for-kodi/page-19&do=findComment&comment=758266 I'll try it and answered to you later in the day Regards 1 Link to comment Share on other sites More sharing options...
AntaresFR 8 Posted June 29, 2019 Author Share Posted June 29, 2019 (edited) It's not ok for me with 4.1.0 This is what I define in emby web browser on the computer which remote control my kodi : And this is what I have in Emby for Kodi when i play the file. Wrong Audio. And StartPositionTick is always ignored Edited June 29, 2019 by AntaresFR Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted June 29, 2019 Share Posted June 29, 2019 Provide your Kodi log because it works for me and the start position does too. What Kodi version are you using? Link to comment Share on other sites More sharing options...
AntaresFR 8 Posted June 29, 2019 Author Share Posted June 29, 2019 Here it's Kodi 18.3 on Nvidia Shield. I have a LibreElec with 18.3 where i can test too if requiered but i think it will be the same Here is a log. https://paste.kodi.tv/eyonugafiv.kodi Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted June 29, 2019 Share Posted June 29, 2019 Thanks for providing your log. I will look into it and keep you posted. Link to comment Share on other sites More sharing options...
AntaresFR 8 Posted July 4, 2019 Author Share Posted July 4, 2019 Did you find something ? Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted July 4, 2019 Share Posted July 4, 2019 Please retry with 4.1.2. I did find a few things, I hope your issue is resolved now. Link to comment Share on other sites More sharing options...
AntaresFR 8 Posted July 4, 2019 Author Share Posted July 4, 2019 It doesn't work for me Emby for kodi doesn't take care of anything i choose in the web browser from my computer. It always tooks the user preferences even if i choose another audio track and another subtitle option for a movie. With those settings, the movie is played in French, without subtitles. Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted July 4, 2019 Share Posted July 4, 2019 That’s what I have tested here and it works for me. Please provide an updated Kodi log. Last time, I did see the audio subs index was not used at all when using the remote control play to but I have since fixed this, at least I don’t see this issue anymore, I started movies with different languages selected and every time it was the one I selected being used, not user preferences. Link to comment Share on other sites More sharing options...
AntaresFR 8 Posted July 4, 2019 Author Share Posted July 4, 2019 Which settings do you have in emby for kodi playback options ? Maybe it's come from there. Here I'm able to change subtitles from a rest api client, but every index i put for Audio is ignored. Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted July 4, 2019 Share Posted July 4, 2019 Addon playback, force http is disabled. I don’t transcode, that one might not work, but it will reask you your selection before starting playback. Link to comment Share on other sites More sharing options...
AntaresFR 8 Posted July 4, 2019 Author Share Posted July 4, 2019 I use same settings, I'll do another fresh log tomorrow 1 Link to comment Share on other sites More sharing options...
AntaresFR 8 Posted July 5, 2019 Author Share Posted July 5, 2019 (edited) Here is a log :http://paste.kodi.tv/yavirojuno.kodiI think something is ignoring the audio selection.On line 39 we can see AudioStreamIndex': 4 which correspond to the English DTS track, it's my selection, but on line 90 I can see 'AudioStreamIndex': 1 I just started the movie from the web interface then I advance a little in the video to check the langage. I did'nt change anything in playback manually and the AudioStreamIndex has changed compared to what I asked when I started the movie. I made some new test from a Rest client, I launch a single post request to play a file with a defined audio index and defined subtitle index. If i play 10 times the same request, sometimes i have the good subtitles, sometimes i don't have them. I send exactly same request to Emby on the Shield session and all is working fluently Edited July 5, 2019 by AntaresFR Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted July 5, 2019 Share Posted July 5, 2019 I don’t believe the switch is done by the add-on. Otherwise it would be reflected in the play info when starting playback. I don’t see that log line for the audio switch when the addon does switch this. Do you have Kodi setup to try and match your audio preferences? Another add-on? Are the subtitles external? Kodi Leia has had issue displaying subtitles but that has nothing to do with the add-on, as long as the urls used are indeed correct. Link to comment Share on other sites More sharing options...
AntaresFR 8 Posted July 6, 2019 Author Share Posted July 6, 2019 I dont have any other add-on. I tried on shield and on Librelec, same problem on the two. Not able to get the right audio track, and sometimes good subtitles, sometimes no subtitle. Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted July 6, 2019 Share Posted July 6, 2019 When you say no subtitles, when you open the video audio settings via osd, does it show no subtitles selected? Because if it is selected and not displaying, it’s not the same as simply not displaying. 1 Link to comment Share on other sites More sharing options...
AntaresFR 8 Posted July 6, 2019 Author Share Posted July 6, 2019 Ah yes nice shot, i'll try to check !! Link to comment Share on other sites More sharing options...
AntaresFR 8 Posted July 6, 2019 Author Share Posted July 6, 2019 (edited) Ok i tried, so when i have no subtitle, it takes the "forced one" from the movie in place of the external i choose. It's External subtitle where i have problem but the problem is worse than expected for me. I send multiple times the same rest request from a rest client : it's a post request https://<ip>:<port>/Sessions/<session>/Playing?ItemIds=2343&PlayCommand=PlayNow&StartPositionTicks=5610000000&MediaSourceId=<mediaid>&AudioStreamIndex=4&SubtitleStreamIndex=-1&api_key=<apikey> So with this request i expect English DTS (AudioStreamIndex : 4) and no subtitle (SubtitleStreamIndex : -1) I tried to launch this request many times. Each time the movie start right, at the correct StartPositionTicks. I never get the English DTS, always French DTS (AudioStreamIndex : 0). I never been able to get no subtitle, I always get French External (SubtitleStreamIndex : 6) I changed the request query param SubtitleStreamIndex to 5 (English External) I sometimes have English External subtitle as expect (SubtitleStreamIndex : 5) I sometimes have Force subrip one (SubtitleStreamIndex : 2) I didn't change naything between requests. I click send from the rest client, movie start, i checked subtitle and audio, stop movie and redo the operation. Same request on Emby session, not the Emby for Kodi one, never failsa single time. I think there is something somewhere in kodi on in the addon. Edited July 6, 2019 by AntaresFR Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted July 6, 2019 Share Posted July 6, 2019 (edited) The way the addon setups audio subs, it writes it in the myvideosxx.db settings table. What would be interesting to see is the value added to the database, if they are correct. Edit: I think I saw something in your logs. Will keep you posted. Edited July 7, 2019 by Angelblue05 Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted July 8, 2019 Share Posted July 8, 2019 @@AntaresFR There's no fix in 4.1.3. I dug in deeper and saw weird behavior. I am not sure if it's Kodi related. It does seem to completely ignore the setup in database. When direct playing, everything seems to work as intended, but with force http enabled, it seems Kodi sometimes cannot find the correct database entry and load the correct setup for audio and subs. I'll keep you posted. 1 Link to comment Share on other sites More sharing options...
AntaresFR 8 Posted July 8, 2019 Author Share Posted July 8, 2019 (edited) I'm sure we will find ! How can i force direct playing ? I just want to be able to play a file with the audio and sub i choosed from the web interface. Just to help you to search for things ! Regards Edited July 8, 2019 by AntaresFR 1 Link to comment Share on other sites More sharing options...
Recommended Posts