hzeller / gmrender-resurrect

Resource efficient UPnP/DLNA renderer, optimal for Raspberry Pi, CuBox or a general MediaServer. Fork of GMediaRenderer to add some features to make it usable.
GNU General Public License v2.0
851 stars 206 forks source link

issues playing youtube videos from bubbleupnp #196

Open ashkitten opened 5 years ago

ashkitten commented 5 years ago

when playing youtube videos shared to bubbleupnp, playback encounters a few issues:

this log shows that near the end of the video (length: 8:54) playback suddenly freezed (audio dropped out as well) for no apparent reason for 7 seconds before resuming with the lost portion skipped entirely. this happens often with youtube videos.

INFO  [2019-11-13 16:31:57.073165 | transport] RelativeTimePosition: 0:07:19
INFO  [2019-11-13 16:31:58.073445 | transport] RelativeTimePosition: 0:07:20
INFO  [2019-11-13 16:31:59.073705 | transport] RelativeTimePosition: 0:07:21
INFO  [2019-11-13 16:32:00.074021 | transport] RelativeTimePosition: 0:07:22
INFO  [2019-11-13 16:32:07.576283 | transport] RelativeTimePosition: 0:07:29
INFO  [2019-11-13 16:32:08.076456 | transport] RelativeTimePosition: 0:07:30
INFO  [2019-11-13 16:32:09.076821 | transport] RelativeTimePosition: 0:07:31
INFO  [2019-11-13 16:32:10.077150 | transport] RelativeTimePosition: 0:07:32

this log shows me trying to seek within the video, but it doesn't work and reverts to the previous time immediately. seeking works with other media sources within bubbleupnp, including local storage and google play music, but not youtube.

INFO  [2019-11-13 16:33:49.098974 | transport] RelativeTimePosition: 0:00:01
INFO  [2019-11-13 16:33:49.516776 | transport] RelativeTimePosition: 0:07:10
INFO  [2019-11-13 16:33:50.099168 | transport] RelativeTimePosition: 0:00:02
INFO  [2019-11-13 16:33:50.381874 | transport] RelativeTimePosition: 0:07:08
INFO  [2019-11-13 16:33:51.099437 | transport] RelativeTimePosition: 0:00:03
INFO  [2019-11-13 16:33:52.099698 | transport] RelativeTimePosition: 0:00:04
INFO  [2019-11-13 16:33:53.099959 | transport] RelativeTimePosition: 0:00:05
INFO  [2019-11-13 16:33:53.974240 | transport] RelativeTimePosition: 0:06:46
INFO  [2019-11-13 16:33:54.100171 | transport] RelativeTimePosition: 0:00:06
INFO  [2019-11-13 16:33:55.100443 | transport] RelativeTimePosition: 0:00:07
INFO  [2019-11-13 16:33:56.100713 | transport] RelativeTimePosition: 0:00:08
INFO  [2019-11-13 16:33:57.100977 | transport] RelativeTimePosition: 0:00:09

neither of these issues happen with kodi's upnp implementation, which leads me to believe there's something going on with gmrender-resurrect to cause this.

gmrender-resurrect is launched with these options as a systemd user service:

gmediarender -f boson --gstout-videosink fakesink --logfile=stdout