OpenVoiceOS / ovos-skill-youtube

play music from youtube in mycroft
Apache License 2.0
5 stars 6 forks source link

Only a loading spinner is being shown #6

Closed theCalcaholic closed 3 years ago

theCalcaholic commented 3 years ago

Whenever I try to play something for which (according to the logs) the simple-youtube skill is selected, I only get a loading spinner and nothing else happens.

In the logs, I can see that ovos_utils is loading configurations, but nothing that would give me a clue of what's (not) going on. Do you have an idea how to further debug this?

EDIT: Turns out I was looking in the wrong place. First of all, I found the note in the audio.log to install py_mplayer and did that. Then I saw in the enclosure.log that mycroft is actually retrieving the correct video url and inserting it into the playlist - so it's probably an issue with the gui part (that I don't yet understand so well).

Here is the relevant extract of the logs:

2021-08-03 13:32:44.139 - OVOS - skill-better-playback-control_openvoiceos:play_video:50 - DEBUG - Video BetterCPS match
2021-08-03 13:32:45.839 - OVOS - ovos_workshop.frameworks.playback:handle_cps_response:235 - DEBUG - BetterCPS received results: skill-sovietwave.jarbasskills
2021-08-03 13:32:45.840 - OVOS - ovos_workshop.frameworks.playback:handle_cps_response:235 - DEBUG - BetterCPS received results: skill-sovietwave.jarbasskills
2021-08-03 13:32:46.656 - OVOS - ovos_workshop.frameworks.playback:handle_cps_response:235 - DEBUG - BetterCPS received results: skill-simple-youtube.jarbasskills
2021-08-03 13:32:46.656 - OVOS - ovos_workshop.frameworks.playback:handle_cps_response:235 - DEBUG - BetterCPS received results: skill-simple-youtube.jarbasskills
2021-08-03 13:32:52.776 - OVOS - skill-better-playback-control_openvoiceos:select_best:254 - DEBUG - BetterCPS selected: skill-simple-youtube.jarbasskills - 100
2021-08-03 13:32:52.788 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/bigscreen-build/mycroft-core/mycroft/configuration/mycroft.conf loaded
2021-08-03 13:32:52.790 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:52.796 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:52.798 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/.mycroft/mycroft.conf loaded
2021-08-03 13:32:52.810 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/bigscreen-build/mycroft-core/mycroft/configuration/mycroft.conf loaded
2021-08-03 13:32:52.813 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:52.816 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:52.825 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/.mycroft/mycroft.conf loaded
2021-08-03 13:32:52.829 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/bigscreen-build/mycroft-core/mycroft/configuration/mycroft.conf loaded
2021-08-03 13:32:52.834 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:52.837 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:52.838 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/.mycroft/mycroft.conf loaded
2021-08-03 13:32:52.840 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/bigscreen-build/mycroft-core/mycroft/configuration/mycroft.conf loaded
2021-08-03 13:32:52.841 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:52.842 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:52.844 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/.mycroft/mycroft.conf loaded
2021-08-03 13:32:53.763 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/bigscreen-build/mycroft-core/mycroft/configuration/mycroft.conf loaded
2021-08-03 13:32:53.764 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:53.766 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:53.767 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/.mycroft/mycroft.conf loaded
2021-08-03 13:32:53.769 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/bigscreen-build/mycroft-core/mycroft/configuration/mycroft.conf loaded
2021-08-03 13:32:53.770 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:53.771 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:53.772 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/.mycroft/mycroft.conf loaded
2021-08-03 13:32:53.774 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/bigscreen-build/mycroft-core/mycroft/configuration/mycroft.conf loaded
2021-08-03 13:32:53.775 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:53.777 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:53.778 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/.mycroft/mycroft.conf loaded
2021-08-03 13:32:53.789 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/bigscreen-build/mycroft-core/mycroft/configuration/mycroft.conf loaded
2021-08-03 13:32:53.790 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:53.792 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:53.794 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/.mycroft/mycroft.conf loaded
2021-08-03 13:32:53.796 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/bigscreen-build/mycroft-core/mycroft/configuration/mycroft.conf loaded
2021-08-03 13:32:53.798 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:53.800 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:53.801 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/.mycroft/mycroft.conf loaded
2021-08-03 13:32:53.805 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/bigscreen-build/mycroft-core/mycroft/configuration/mycroft.conf loaded
2021-08-03 13:32:53.806 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:53.808 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:53.810 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/.mycroft/mycroft.conf loaded
2021-08-03 13:32:53.816 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/bigscreen-build/mycroft-core/mycroft/configuration/mycroft.conf loaded
2021-08-03 13:32:53.817 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:53.820 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:53.821 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/.mycroft/mycroft.conf loaded
2021-08-03 13:32:54.408 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/bigscreen-build/mycroft-core/mycroft/configuration/mycroft.conf loaded
2021-08-03 13:32:54.409 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:54.411 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:54.413 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/.mycroft/mycroft.conf loaded
2021-08-03 13:32:54.415 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/bigscreen-build/mycroft-core/mycroft/configuration/mycroft.conf loaded
2021-08-03 13:32:54.416 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:54.417 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:54.418 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/.mycroft/mycroft.conf loaded
2021-08-03 13:32:54.420 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/bigscreen-build/mycroft-core/mycroft/configuration/mycroft.conf loaded
2021-08-03 13:32:54.421 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:54.423 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:54.424 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/.mycroft/mycroft.conf loaded
2021-08-03 13:32:54.443 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/bigscreen-build/mycroft-core/mycroft/configuration/mycroft.conf loaded
2021-08-03 13:32:54.444 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:54.454 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:54.455 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/.mycroft/mycroft.conf loaded
2021-08-03 13:32:54.458 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/bigscreen-build/mycroft-core/mycroft/configuration/mycroft.conf loaded
2021-08-03 13:32:54.465 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:54.467 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:54.468 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/.mycroft/mycroft.conf loaded
2021-08-03 13:32:54.472 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/bigscreen-build/mycroft-core/mycroft/configuration/mycroft.conf loaded
2021-08-03 13:32:54.473 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:54.475 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:54.476 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/.mycroft/mycroft.conf loaded
2021-08-03 13:32:54.479 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/bigscreen-build/mycroft-core/mycroft/configuration/mycroft.conf loaded
2021-08-03 13:32:54.481 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:54.484 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:54.485 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/.mycroft/mycroft.conf loaded
2021-08-03 13:32:54.939 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/bigscreen-build/mycroft-core/mycroft/configuration/mycroft.conf loaded
2021-08-03 13:32:54.941 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:54.942 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:54.944 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/.mycroft/mycroft.conf loaded
2021-08-03 13:32:54.958 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/bigscreen-build/mycroft-core/mycroft/configuration/mycroft.conf loaded
2021-08-03 13:32:54.959 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:54.961 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:54.963 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/.mycroft/mycroft.conf loaded
2021-08-03 13:32:54.965 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/bigscreen-build/mycroft-core/mycroft/configuration/mycroft.conf loaded
2021-08-03 13:32:54.966 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:54.968 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
2021-08-03 13:32:54.969 - OVOS - ovos_utils.configuration:load_local:184 - DEBUG - Configuration /home/neon/.mycroft/mycroft.conf loaded
JarbasAl commented 3 years ago

hum, youtube seems to be selected correctly, im guessing the stream extraction broke again

youtube is notorious for breaking, this is not using an official API, my immediate suggestion is to try upgrading youtube-dl has 90% of the times that fixes this issue

the audio logs might contain something useful also

I will investigate later tonight

NOTE TO SELF: those config loading logs are atrocious, minimize config loading!

theCalcaholic commented 3 years ago

Thank you

Now it seems to show a thumbnail - I need to reevaluate what works and what doesn't after installing py_mplayer

JarbasAl commented 3 years ago

py_mplayer is not needed, that is an optional additional audio backend that would need to be configured in the .conf, eg, to replace vlc

the import error is safe to ignore, the component is meant to be optional

this raise the question of how you have audio configured? if playing video the mycroft-gui is used and streams work, but if playing audio only streams then vlc is needed or mycroft wont be able to play https streams. do you have vlc setup? i recommended making vlc the default audio backend https://github.com/MycroftAI/mycroft-core/blob/dev/mycroft/configuration/mycroft.conf#L332

JarbasAl commented 3 years ago

the updated imports seem to be working for me, can you see if the issue is gone with latest push?

theCalcaholic commented 3 years ago

Well, I actually didn't setup any audio backend manually. VLC is installed though and I adjusted my mycroft.conf to use the vlc backend as default now.

I still only get a loading spinner, occasionally also a thumbnail, apparently (saw that once). I'm trying to play with video via plasma bigscreen. old world radio (kudos for that skill idea, btw!), for example, works, but the youtube skill doesn't

theCalcaholic commented 3 years ago

Here's the relevant enclosure.log btw (which I feel is the most relevant for this):

2021-08-03 18:17:23.362 | INFO     | 65202 | mycroft.client.enclosure.base:send:571 | Sending {"type": "mycroft.session.set", "namespace": "mycroft-mark-2.mycroftai", "data": {"viseme": {"start": 1628007443.353343, "visemes": [["3", 0.0775], ["0", 0.155], ["3", 0.2325], ["3", 0.31], ["2", 0.372], ["0", 0.434], ["3", 0.496], ["4", 0.5477], ["2", 0.5994], ["4", 0.6511], ["0", 0.7028], ["3", 0.7545], ["3", 0.8062], ["2", 0.8889], ["0", 0.9716], ["3", 1.0543], ["3", 1.3023], ["3", 1.3643], ["2", 1.4263], ["3", 1.4883], ["5", 1.5503], ["6", 1.6123], ["2", 1.6743], ["3", 1.7776], ["0", 1.8809], ["3", 1.9842]]}}}
2021-08-03 18:17:33.706 | INFO     | 65202 | mycroft.client.enclosure.base:send:571 | Sending {"type": "mycroft.session.list.insert", "namespace": "mycroft.system.active_skills", "position": 0, "data": [{"skill_id": "ovos.common_play"}]}
2021-08-03 18:17:33.713 | INFO     | 65202 | mycroft.client.enclosure.base:send:571 | Sending {"type": "mycroft.session.set", "namespace": "ovos.common_play", "data": {"stream": "https://r6---sn-fuoxu-i5he.googlevideo.com/videoplayback?expire=1628029053&ei=HWwJYdGRD4bL1wLm86nQDw&ip=216.83.215.6&id=o-ANVfODPDIDf1sjCzF6PwUkZp124I1xpWO425G8WTIrJ3&itag=18&source=youtube&requiressl=yes&mh=Gx&mm=31%2C29&mn=sn-fuoxu-i5he%2Csn-i5h7lner&ms=au%2Crdu&mv=m&mvi=6&pl=20&initcwndbps=2101250&vprv=1&mime=video%2Fmp4&ns=IsMTJbvZtER1u0AWTUKrsloG&gir=yes&clen=12079911&ratebypass=yes&dur=238.306&lmt=1617803646290906&mt=1628007193&fvip=2&fexp=24001373%2C24007246&beids=9466588&c=WEB&txp=6210222&n=nIiNTU4LI03g7Ms6x&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cratebypass%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAIlsuZsYeeLAnzjRSv-Li2LjH3O2daLOVmnfS6sPOT00AiEAsdruKz2yfrTU4k8sF-xAyiT3EBWYp59j_8WI1jpNweQ%3D&sig=AOq0QJ8wRgIhAMT8tYpQlq1hZGwAF8yNa_jiFkqQZo5UFIxqPJWFDgE_AiEA1-1MmnnBTU793SRDVNPwB7D5htQ343rDNhZ3utN_dhk="}}
2021-08-03 18:17:33.714 | INFO     | 65202 | mycroft.client.enclosure.base:send:571 | Sending {"type": "mycroft.session.set", "namespace": "ovos.common_play", "data": {"title": "Diggy Diggy Hole - Dward Hole (Piano)"}}
2021-08-03 18:17:33.714 | INFO     | 65202 | mycroft.client.enclosure.base:send:571 | Sending {"type": "mycroft.session.set", "namespace": "ovos.common_play", "data": {"playStatus": "play"}}
2021-08-03 18:17:33.715 | INFO     | 65202 | mycroft.client.enclosure.base:send:571 | Sending {"type": "mycroft.session.set", "namespace": "ovos.common_play", "data": {"searchModel": {"data": [{"album": "skill-simple-youtube.jarbasskills", "duration": 244000, "image": "https://i.ytimg.com/vi/ytWz0qVvBZ0/hq720.jpg", "source": "/opt/mycroft/skills/skill-simple-youtube.jarbasskills/ui/ytube.jpg", "track": "\u266a Diggy Diggy Hole"}, {"album": "skill-simple-youtube.jarbasskills", "duration": 305000, "image": "https://i.ytimg.com/vi/34CZjsEI1yU/hq720.jpg", "source": "/opt/mycroft/skills/skill-simple-youtube.jarbasskills/ui/ytube.jpg", "track": "WIND ROSE - Diggy Diggy Hole (Official Video) | Napalm Records"}, {"album": "skill-simple-youtube.jarbasskills", "duration": 32949000, "image": "https://i.ytimg.com/vi/Exyz4BtRhoc/hq720.jpg", "source": "/opt/mycroft/skills/skill-simple-youtube.jarbasskills/ui/ytube.jpg", "track": "Diggy Diggy Hole - 10 Stunden"}, {"album": "skill-simple-youtube.jarbasskills", "duration": 3661000, "image": "https://i.ytimg.com/vi/AbhP25EfjHM/hqdefault.jpg", "source": "/opt/mycroft/skills/skill-simple-youtube.jarbasskills/ui/ytube.jpg", "track": "Diggy Diggy Hole | 1 Hour CONTINUOUS PLAY"}, {"album": "skill-simple-youtube.jarbasskills", "duration": 244000, "image": "https://i.ytimg.com/vi/NVhOulJ9lo4/hq720.jpg", "source": "/opt/mycroft/skills/skill-simple-youtube.jarbasskills/ui/ytube.jpg", "track": "Diggy Diggy Hole - Live Action Music Video"}, {"album": "skill-simple-youtube.jarbasskills", "duration": 122000, "image": "https://i.ytimg.com/vi/fR7EAdPUqvQ/hq720.jpg", "source": "/opt/mycroft/skills/skill-simple-youtube.jarbasskills/ui/ytube.jpg", "track": "Minecraft - \u266a Dwarf Hole (Diggy Diggy Hole) Fan Song and Animation"}, {"album": "skill-simple-youtube.jarbasskills", "duration": 793000, "image": "https://i.ytimg.com/vi/sI_PxGu7nZk/hqdefault.jpg", "source": "/opt/mycroft/skills/skill-simple-youtube.jarbasskills/ui/ytube.jpg", "track": "The Evolution of Diggy Diggy Hole"}, {"album": "skill-simple-youtube.jarbasskills", "duration": 183000, "image": "https://i.ytimg.com/vi/RMZFkpro0e8/hq720.jpg", "source": "/opt/mycroft/skills/skill-simple-youtube.jarbasskills/ui/ytube.jpg", "track": "\u266a Diggy Diggy Hole The Hobbit"}, {"album": "skill-simple-youtube.jarbasskills", "duration": 36610000, "image": "https://i.ytimg.com/vi/rqrlXYrZZBI/hq720.jpg", "source": "/opt/mycroft/skills/skill-simple-youtube.jarbasskills/ui/ytube.jpg", "track": "WIND ROSE - Diggy Diggy Hole Official Video - 10 hours"}, {"album": "skill-simple-youtube.jarbasskills", "duration": null, "image": "https://i.ytimg.com/vi/N-ePNomef68/hq720.jpg", "source": "/opt/mycroft/skills/skill-simple-youtube.jarbasskills/ui/ytube.jpg", "track": "Diggy Diggy Hole"}, {"album": "skill-simple-youtube.jarbasskills", "duration": 305000, "image": "https://i.ytimg.com/vi/zQjXRJuNVv8/hqdefault.jpg", "source": "/opt/mycroft/skills/skill-simple-youtube.jarbasskills/ui/ytube.jpg", "track": "Wind Rose  Diggy Diggy Hole"}, {"album": "skill-simple-youtube.jarbasskills", "duration": 183000, "image": "https://i.ytimg.com/vi/I3J7tsMI1pw/hqdefault.jpg", "source": "/opt/mycroft/skills/skill-simple-youtube.jarbasskills/ui/ytube.jpg", "track": "Diggy Diggy Hole - Dward Hole (Piano)"}, {"album": "skill-simple-youtube.jarbasskills", "duration": 305000, "image": "https://i.ytimg.com/vi/fzTtZlprRso/hq720.jpg", "source": "/opt/mycroft/skills/skill-simple-youtube.jarbasskills/ui/ytube.jpg", "track": "WIND ROSE - Diggy Diggy Hole (Guitar & Bass Playthrough) | Napalm Records"}, {"album": "skill-simple-youtube.jarbasskills", "duration": 244000, "image": "https://i.ytimg.com/vi/8k6Q91N1z6Q/hqdefault.jpg", "source": "/opt/mycroft/skills/skill-simple-youtube.jarbasskills/ui/ytube.jpg", "track": "BeatSaber - Diggy Diggy Hole - The Yogscast [FullBodyTracking]"}, {"album": "skill-simple-youtube.jarbasskills", "duration": 305000, "image": "https://i.ytimg.com/vi/CtdIykIaDt8/hq720.jpg", "source": "/opt/mycroft/skills/skill-simple-youtube.jarbasskills/ui/ytube.jpg", "track": "Diggy Diggy Hole ( 0 Miss  - Difficulty Lv8) Ragnarock"}, {"album": "skill-simple-youtube.jarbasskills", "duration": 183000, "image": "https://i.ytimg.com/vi/FxNtvyTt8Z0/hq720.jpg", "source": "/opt/mycroft/skills/skill-simple-youtube.jarbasskills/ui/ytube.jpg", "track": "Diggy Diggy Hole - Nightcore [HD]"}, {"album": "skill-simple-youtube.jarbasskills", "duration": 244000, "image": "https://i.ytimg.com/vi/lfnXnPJd4zU/hq720.jpg", "source": "/opt/mycroft/skills/skill-simple-youtube.jarbasskills/ui/ytube.jpg", "track": "Diggy Diggy Hole! Yogscast & The People's Orchestra Flash Mob"}, {"album": "skill-simple-youtube.jarbasskills", "duration": 122000, "image": "https://i.ytimg.com/vi/RtS2I-ZiojU/hq720.jpg", "source": "/opt/mycroft/skills/skill-simple-youtube.jarbasskills/ui/ytube.jpg", "track": "I am a Dwarf - Diggy Diggy Hole"}, {"album": "skill-simple-youtube.jarbasskills", "duration": 305000, "image": "https://i.ytimg.com/vi/Nu0iQ8sNxtY/hq720.jpg", "source": "/opt/mycroft/skills/skill-simple-youtube.jarbasskills/ui/ytube.jpg", "track": "Diggy Diggy Hole (Orchestral Version)"}, {"album": "skill-sovietwave.jarbasskills", "duration": 2654000, "image": "https://i.ytimg.com/vi/NvRHXnb039Q/hqdefault.jpg", "source": null, "track": "Serenity - Sovietwave Mix"}, {"album": "skill-sovietwave.jarbasskills", "duration": 2200000, "image": "https://i.ytimg.com/vi/ggFEjjfoSAo/hqdefault.jpg", "source": null, "track": "Moonlight - Sovietwave Mix"}]}}}
2021-08-03 18:17:33.716 | INFO     | 65202 | mycroft.client.enclosure.base:send:571 | Sending {"type": "mycroft.session.set", "namespace": "ovos.common_play", "data": {"playlistModel": {"data": [{"album": "skill-simple-youtube.jarbasskills", "duration": 183000, "image": "https://i.ytimg.com/vi/I3J7tsMI1pw/hqdefault.jpg", "source": "/opt/mycroft/skills/skill-simple-youtube.jarbasskills/ui/ytube.jpg", "track": "Diggy Diggy Hole - Dward Hole (Piano)"}]}}}
2021-08-03 18:17:33.718 | INFO     | 65202 | mycroft.client.enclosure.base:send:571 | Sending {"type": "mycroft.gui.list.insert", "namespace": "ovos.common_play", "position": 0, "data": [{"url": "file:///home/neon/bigscreen-build/mycroft-core/.venv/lib/python3.8/site-packages/ovos_workshop/res/ui/VideoPlayer.qml"}, {"url": "file:///home/neon/bigscreen-build/mycroft-core/.venv/lib/python3.8/site-packages/ovos_workshop/res/ui/Disambiguation.qml"}, {"url": "file:///home/neon/bigscreen-build/mycroft-core/.venv/lib/python3.8/site-packages/ovos_workshop/res/ui/Playlist.qml"}]}
2021-08-03 18:17:33.734 | INFO     | 65202 | mycroft.client.enclosure.base:send:571 | Sending {"type": "mycroft.session.set", "namespace": "ovos.common_play", "data": {"media": {"match_confidence": 100, "media_type": 3, "length": 183000, "uri": "https://www.youtube.com/watch?v=I3J7tsMI1pw", "playback": 1, "image": "https://i.ytimg.com/vi/I3J7tsMI1pw/hqdefault.jpg", "bg_image": "https://i.ytimg.com/vi/I3J7tsMI1pw/hqdefault.jpg", "skill_icon": "/opt/mycroft/skills/skill-simple-youtube.jarbasskills/ui/ytube.jpg", "skill_logo": "/opt/mycroft/skills/skill-simple-youtube.jarbasskills/ui/ytube.jpg", "title": "Diggy Diggy Hole - Dward Hole (Piano)", "skill_id": "skill-simple-youtube.jarbasskills", "status": "Paused", "position": 0, "skill": "skill-simple-youtube.jarbasskills"}}}
2021-08-03 18:17:33.757 | INFO     | 65202 | mycroft.client.enclosure.base:send:571 | Sending {"type": "mycroft.session.set", "namespace": "ovos.common_play", "data": {"bg_image": "https://i.ytimg.com/vi/I3J7tsMI1pw/hqdefault.jpg"}}
2021-08-03 18:17:33.807 | INFO     | 65202 | mycroft.client.enclosure.base:send:571 | Sending {"type": "mycroft.gui.list.remove", "namespace": "ovos.common_play", "position": 2, "items_number": 1}
2021-08-03 18:17:33.809 | INFO     | 65202 | mycroft.client.enclosure.base:send:571 | Sending {"type": "mycroft.gui.list.remove", "namespace": "ovos.common_play", "position": 1, "items_number": 1}
2021-08-03 18:17:33.816 | INFO     | 65202 | mycroft.client.enclosure.base:send:571 | Sending {"type": "mycroft.gui.list.remove", "namespace": "ovos.common_play", "position": 0, "items_number": 1}
2021-08-03 18:17:33.832 | INFO     | 65202 | mycroft.client.enclosure.base:send:571 | Sending {"type": "mycroft.gui.list.insert", "namespace": "ovos.common_play", "position": 0, "data": [{"url": "file:///home/neon/bigscreen-build/mycroft-core/.venv/lib/python3.8/site-packages/ovos_workshop/res/ui/VideoPlayer.qml"}, {"url": "file:///home/neon/bigscreen-build/mycroft-core/.venv/lib/python3.8/site-packages/ovos_workshop/res/ui/Disambiguation.qml"}, {"url": "file:///home/neon/bigscreen-build/mycroft-core/.venv/lib/python3.8/site-packages/ovos_workshop/res/ui/Playlist.qml"}]}
2021-08-03 18:17:34.278 | INFO     | 65202 | mycroft.client.enclosure.base:send:571 | Sending {"type": "mycroft.session.set", "namespace": "ovos.common_play", "data": {"stream": "https://r6---sn-fuoxu-i5he.googlevideo.com/videoplayback?expire=1628029053&ei=HWwJYf7xMoyL6dsPmaur8Ak&ip=216.83.215.6&id=o-ACnRtDGDp5wtCLLRClbdQup4VLxiWAVQBcN9W9Wtggrp&itag=18&source=youtube&requiressl=yes&mh=Gx&mm=31%2C29&mn=sn-fuoxu-i5he%2Csn-i5heen7z&ms=au%2Crdu&mv=m&mvi=6&pl=20&initcwndbps=2101250&vprv=1&mime=video%2Fmp4&ns=ZalucPbdeYAVCrwKYdHS1fEG&gir=yes&clen=12079911&ratebypass=yes&dur=238.306&lmt=1617803646290906&mt=1628007193&fvip=2&fexp=24001373%2C24007246&beids=9466587&c=WEB&txp=6210222&n=2irBusHNhJ41rFgep&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cratebypass%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgCO906lwO6hOUjZeO7oZ8pEqG81gN2yEEqsua73iX-DcCIQCSUOFBqVMXWbKgAAhA_FdPH_i-es3SGsBp7OydcrIqUw%3D%3D&sig=AOq0QJ8wRQIhANIfxD8EagdhHPBLIYI72O7GoeHdN1UjwuAqoIMkVrB4AiBnJsECmjoHgD5wGI8V2T0iXxZ80_yGcITioJxllO1tCA=="}}
2021-08-03 18:17:34.342 | INFO     | 65202 | mycroft.client.enclosure.base:send:571 | Sending {"type": "mycroft.events.triggered", "namespace": "ovos.common_play", "event_name": "page_gained_focus", "data": {"number": 0}}
2021-08-03 18:17:34.360 | INFO     | 65202 | mycroft.client.enclosure.base:send:571 | Sending {"type": "mycroft.gui.list.remove", "namespace": "ovos.common_play", "position": 2, "items_number": 1}
2021-08-03 18:17:34.361 | INFO     | 65202 | mycroft.client.enclosure.base:send:571 | Sending {"type": "mycroft.gui.list.remove", "namespace": "ovos.common_play", "position": 1, "items_number": 1}
2021-08-03 18:17:34.363 | INFO     | 65202 | mycroft.client.enclosure.base:send:571 | Sending {"type": "mycroft.gui.list.remove", "namespace": "ovos.common_play", "position": 0, "items_number": 1}
2021-08-03 18:17:34.416 | INFO     | 65202 | mycroft.client.enclosure.base:send:571 | Sending {"type": "mycroft.gui.list.insert", "namespace": "ovos.common_play", "position": 0, "data": [{"url": "file:///home/neon/bigscreen-build/mycroft-core/.venv/lib/python3.8/site-packages/ovos_workshop/res/ui/VideoPlayer.qml"}, {"url": "file:///home/neon/bigscreen-build/mycroft-core/.venv/lib/python3.8/site-packages/ovos_workshop/res/ui/Disambiguation.qml"}, {"url": "file:///home/neon/bigscreen-build/mycroft-core/.venv/lib/python3.8/site-packages/ovos_workshop/res/ui/Playlist.qml"}]}
2021-08-03 18:17:34.783 | INFO     | 65202 | mycroft.client.enclosure.base:send:571 | Sending {"type": "mycroft.session.set", "namespace": "ovos.common_play", "data": {"stream": "https://r6---sn-fuoxu-i5he.googlevideo.com/videoplayback?expire=1628029054&ei=HmwJYdLXF4bL1wLm86nQDw&ip=216.83.215.6&id=o-ABX33aBJRof8nonQl2Fk99BNCN1aGAcg3Oa6vqmnjmQy&itag=18&source=youtube&requiressl=yes&mh=Gx&mm=31%2C29&mn=sn-fuoxu-i5he%2Csn-i5h7lner&ms=au%2Crdu&mv=m&mvi=6&pl=20&initcwndbps=2101250&vprv=1&mime=video%2Fmp4&ns=EnTAtftRXpdp7Dxy7Ah9u0oG&gir=yes&clen=12079911&ratebypass=yes&dur=238.306&lmt=1617803646290906&mt=1628007193&fvip=2&fexp=24001373%2C24007246&c=WEB&txp=6210222&n=VkBvRXsaPZR1Ilw2n&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cratebypass%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgH3XboDXa-JANYCLkvTBs5JBhxC-P-m0u1nihfgO4DTcCIGMBV5ira5Y5GZEKilU2oIhy3j0wLVVWfxFlkwR5JNto&sig=AOq0QJ8wRQIgRbZ7X8GkdiJDIWSJit5UQbCoM9cN0exs84lpb-kHzOsCIQCJO0V9ISJPWLl_egmyq-t1Vjb74my7O738Tk6NrF_33w=="}}
2021-08-03 18:17:34.786 | INFO     | 65202 | mycroft.client.enclosure.base:send:571 | Sending {"type": "mycroft.session.set", "namespace": "ovos.common_play", "data": {"media": {"match_confidence": 100, "media_type": 3, "length": 183000, "uri": "https://www.youtube.com/watch?v=I3J7tsMI1pw", "playback": 1, "image": "https://i.ytimg.com/vi/I3J7tsMI1pw/hqdefault.jpg", "bg_image": "https://i.ytimg.com/vi/I3J7tsMI1pw/hqdefault.jpg", "skill_icon": "/opt/mycroft/skills/skill-simple-youtube.jarbasskills/ui/ytube.jpg", "skill_logo": "/opt/mycroft/skills/skill-simple-youtube.jarbasskills/ui/ytube.jpg", "title": "Diggy Diggy Hole - Dward Hole (Piano)", "skill_id": "skill-simple-youtube.jarbasskills", "status": "Playing", "position": 0, "skill": "skill-simple-youtube.jarbasskills"}}}

EDIT: I realized, that this is hardly readable, so I attached the log as a file as well: enclosure.log

JarbasAl commented 3 years ago

im not sure what is going on, when you say you get a thumbnail i am assuming you are getting playback via audio service (a audio only result for some reason) and a loading spinner seems like you are getting a video playback results

do any of the pictures here look familiar? https://github.com/OpenVoiceOS/OVOS-workshop/wiki/ovos-common-play

your logs seem to indicate that the GUI is attempting playback, and the stream seems to have been properly extracted, can you check the mycroft-gui logs? I think the issue is not on skill/mycroft-core side

theCalcaholic commented 3 years ago

Ah sorry, No I don't get any audio playback. And also I just found out, that the thumbnail appears to show only after restarting mycroft (via mycroft-start all restart), which is weird.

Can you point me to the right place to look for the gui logs? It's launched with /usr/bin/plasmashell -p org.kde.plasma.mycroft.bigscreen in /etc/xdg/autostart

theCalcaholic commented 3 years ago

Nevermind, found it (it's simply in /var/log/syslog). And what's better, I found the culprit!

Aug  3 20:15:35 neon-tv plasmashell[973]: Warning: "No decoder available for type 'video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)3.1, profile=(string)high, codec_data=(buffer)0164001fffe1001c6764001facd1005005bb016a02020280000003008000001e078c188901000468eb8f2c, width=(int)1280, height=(int)720, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1'."
Aug  3 20:15:35 neon-tv plasmashell[973]: Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)4, framed=(boolean)true, stream-format=(string)raw, level=(string)2, base-profile=(string)lc, profile=(string)lc, codec_data=(buffer)12100000000000000000000000000000, rate=(int)44100, channels=(int)2'."
Aug  3 20:15:35 neon-tv plasmashell[973]: qml: 8
Aug  3 20:15:35 neon-tv plasmashell[973]: Error: "Your GStreamer installation is missing a plug-in."

Here's the list of my installed gstreamer packages:

ii  gstreamer1.0-gl:amd64
ii  gstreamer1.0-libav:amd64
ii  gstreamer1.0-plugins-bad:amd64
ii  gstreamer1.0-plugins-base:amd64
ii  gstreamer1.0-plugins-base:i386
ii  gstreamer1.0-plugins-good:amd64
ii  gstreamer1.0-plugins-good:i386
ii  gstreamer1.0-plugins-ugly:amd64
ii  gstreamer1.0-pulseaudio:amd64
ii  gstreamer1.0-vaapi:amd64
ii  gstreamer1.0-x:amd64
ii  gstreamer1.0-x:i386
ii  libgstreamer-gl1.0-0:amd64
ii  libgstreamer-plugins-bad1.0-0:amd64
ii  libgstreamer-plugins-base1.0-0:amd64
ii  libgstreamer-plugins-base1.0-0:i386
ii  libgstreamer-plugins-good1.0-0:amd64
ii  libgstreamer-plugins-good1.0-0:i386
ii  libgstreamer1.0-0:amd64
ii  libgstreamer1.0-0:i386
theCalcaholic commented 3 years ago

It works! Apparently I was missing a reboot after installing gstreamer1.0-libav (which I don't really understand since I wasn't aware that gstreamer has any service/daemon portion and I did restart mycroft, but hey - it works) :)

theCalcaholic commented 3 years ago

Thank you once more for your support!

theCalcaholic commented 3 years ago

What's very interesting, though, is that I'm getting quite unpopular videos as search results :D I'm not complaining, but I wonder how they are determined? Usually youtube will present you popular videos as first search results, right?

E.g. when I was asking for the video "diggy hole" I didn't get the original by Yogscast but a brass cover XD - which is arguably more interesting when asking for videos, but still, curious

JarbasAl commented 3 years ago

What's very interesting, though, is that I'm getting quite unpopular videos as search results :D I'm not complaining, but I wonder how they are determined? Usually youtube will present you popular videos as first search results, right?

there is an additional scoring of the youtube returned results, it needs some improvement, the intent was to filter unwanted results based on query type, see the code here https://github.com/JarbasSkills/skill-simple-youtube/blob/master/__init__.py#L138 .

Essentially each result needs to return a 0 - 100 confidence score and this calculation is not taking youtube order into account, I think the youtube results order should be preserved if possible and the scoring should only filter results, their algorithm will know better than this skill for sure

you should have the full results in the disambiguation page (swipe left) and can select something else, this should give you a rough idea of how ovos common play is scoring the results, i also want to make this affect future behavior (on repeat queries remember "correct" result)

theCalcaholic commented 3 years ago

Oh okay. Really nice stuff overall!