(2019-03-28, 21:26)xodi Wrote: (2019-03-28, 14:27)JohnyBee Wrote: (2019-03-28, 10:59)xodi Wrote: DASH is required for higher quality, I think a good work around should be playing video with YouTube addon, not letting ExtendedInfo play the resolved video file directly. I planned to modify the ExtendedInfo addon for this, but haven't started yet. May be you can help on this.
I modified Extendedinfo to display the video in maximum quality, but unfortunately this video is without sound.
The sound is saved in a separate file on youtube.
I do not know how to force youtube-dl (in kodi) to merge video file and a sound file.
Can you help?
Changing the quality won't work, as the higher quality video using DASH. I did a quick modification to replace the playing function with YouTube addon. Your YouTube addon settings (video quality, for example) will affect the playing. It can play any quality video now.
Replace the play_youtube_video method in WindowManager.py file for script.extendedinfo addon with the following:
python:
def play_youtube_video(self, youtube_id="", listitem=None):
"""
play youtube vid with info from *listitem
"""
if self.active_dialog and self.active_dialog.window_type == "dialog":
self.active_dialog.close()
xbmc.executebuiltin("Dialog.Close(movieinformation)")
xbmc.executebuiltin("RunPlugin(plugin://plugin.video.youtube/play/?video_id=" + youtube_id + "&screensaver=true&incognito=true)")
if self.active_dialog and self.active_dialog.window_type == "dialog":
player.wait_for_video_end()
self.active_dialog.doModal()
Hmmm,
I tested again.
I've checked the YouTobe add-on before, but he also has problems with high quality video playback.
For me, YouTobe plays video (HD, 4K ...) only if it is one file (video + sound). If it is a DASH file (only video or audio), YouTobe does not display these files on your list.
Example:
No. 1 - File (video + sound) - only one file played in the add-on Youtube or yutube-dl + entendeninfo.
No. 2 - 4K only one file video (without sound) played in yutube-dl + entendeninfo (my mod).
I do not know how to connect (in YouTobe or yutube-dl + entendeninfo) No. 2 and No. 3 (two files) to be played at once (video + sound)
JB
EDIT
Problem solved.
I did not have
inputstream adaptive installed.
After installing and configuring the inputstream adaptive, everything works OK.
Your code works perfectly.
Thank you again.
JB