vincelwt / RaspberryCast

:tv: Transform your Raspberry Pi into a streaming device. Videos can be sent from mobile devices or computers (Chrome extension).
MIT License
868 stars 141 forks source link

Unable to play any kind of content #38

Open nikolafilipovic opened 7 years ago

nikolafilipovic commented 7 years ago

Hello everyone,

I've come across a weird issue, when I submit a YouTube URL or any kind of URL as a matter of fact, the splash screen changes from "is ready" to "processing".

However, it never plays a clip, just goes back to "is ready". Here's the log...

07-28 13:48:11 - DEBUG - Received URL to cast: https://www.youtube.com/watch?v=TUC2b-OSZ00 07-28 13:48:11 - DEBUG - No subtitles for this stream 07-28 13:48:11 - INFO - Extracting source video URL... 07-28 13:48:11 - DEBUG - Parsing source url for https://www.youtube.com/watch?v=TUC2b-OSZ00 with subs :False 07-28 13:48:11 - WARNING - Assuming --restrict-filenames since file system encoding cannot encode all characters. Set the LC_ALL environment variable to fix this. 07-28 13:48:12 - DEBUG - [youtube:playlist] playlist Serviio: Downloading 107 videos 07-28 13:48:12 - DEBUG - [download] Downloading video 1 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 2 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 3 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 4 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 5 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 6 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 7 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 8 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 9 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 10 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 11 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 12 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 13 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 14 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 15 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 16 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 17 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 18 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 19 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 20 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 21 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 22 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 23 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 24 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 25 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 26 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 27 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 28 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 29 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 30 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 31 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 32 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 33 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 34 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 35 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 36 of 107 07-28 13:48:12 - DEBUG - [download] Downloading video 37 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 38 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 39 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 40 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 41 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 42 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 43 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 44 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 45 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 46 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 47 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 48 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 49 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 50 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 51 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 52 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 53 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 54 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 55 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 56 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 57 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 58 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 59 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 60 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 61 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 62 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 63 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 64 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 65 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 66 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 67 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 68 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 69 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 70 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 71 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 72 of 107 07-28 13:48:13 - DEBUG - [youtube] TUC2b-OSZ00: Downloading webpage 07-28 13:48:13 - DEBUG - [download] Downloading video 73 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 74 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 75 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 76 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 77 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 78 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 79 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 80 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 81 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 82 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 83 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 84 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 85 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 86 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 87 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 88 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 89 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 90 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 91 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 92 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 93 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 94 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 95 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 96 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 97 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 98 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 99 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 100 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 101 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 102 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 103 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 104 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 105 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 106 of 107 07-28 13:48:13 - DEBUG - [download] Downloading video 107 of 107 07-28 13:48:13 - DEBUG - [download] Finished downloading playlist: Serviio 07-28 13:48:13 - INFO - queuing video 07-28 13:48:13 - INFO - queuing video 07-28 13:48:13 - INFO - Extracting source video URL, before adding to queue... 07-28 13:48:13 - DEBUG - Parsing source url for 1IdEhvuNxV8 with subs :False 07-28 13:48:13 - WARNING - Assuming --restrict-filenames since file system encoding cannot encode all characters. Set the LC_ALL environment variable to fix this. 07-28 13:48:13 - DEBUG - [youtube] 1IdEhvuNxV8: Downloading webpage 07-28 13:48:19 - DEBUG - [youtube] TUC2b-OSZ00: Downloading video info webpage 07-28 13:48:19 - DEBUG - [youtube] 1IdEhvuNxV8: Downloading video info webpage 07-28 13:48:24 - DEBUG - [youtube] TUC2b-OSZ00: Extracting video information 07-28 13:48:25 - DEBUG - [youtube] 1IdEhvuNxV8: Extracting video information 07-28 13:48:27 - DEBUG - [youtube] TUC2b-OSZ00: Downloading js player vflrwQIQw 07-28 13:48:27 - DEBUG - [youtube] 1IdEhvuNxV8: Downloading MPD manifest 07-28 13:48:34 - DEBUG - Video not from Youtube or Vimeo. Extracting url in maximal quality. 07-28 13:48:35 - DEBUG - [youtube] TUC2b-OSZ00: Downloading MPD manifest 07-28 13:48:40 - WARNING - "id" field is not a string - forcing string conversion, there is an error in extractor 07-28 13:48:40 - DEBUG - Youtube link detected, extracting url in 360p 07-28 13:48:40 - DEBUG - Full video URL fetched. 07-28 13:48:40 - INFO - Starting OMXPlayer now. 07-28 13:48:41 - INFO - Playlist empty, skipping. 07-28 13:48:49 - DEBUG - Received URL to cast: https://www.youtube.com/watch?v=TUC2b-OSZ00 07-28 13:48:49 - DEBUG - No subtitles for this stream 07-28 13:48:49 - INFO - Extracting source video URL... 07-28 13:48:49 - DEBUG - Parsing source url for https://www.youtube.com/watch?v=TUC2b-OSZ00 with subs :False 07-28 13:48:49 - WARNING - Assuming --restrict-filenames since file system encoding cannot encode all characters. Set the LC_ALL environment variable to fix this. 07-28 13:48:50 - DEBUG - [youtube] TUC2b-OSZ00: Downloading webpage 07-28 13:48:56 - DEBUG - [youtube] TUC2b-OSZ00: Downloading video info webpage 07-28 13:49:01 - DEBUG - [youtube] TUC2b-OSZ00: Extracting video information 07-28 13:49:03 - DEBUG - [youtube] TUC2b-OSZ00: Downloading MPD manifest 07-28 13:49:09 - WARNING - "id" field is not a string - forcing string conversion, there is an error in extractor 07-28 13:49:09 - DEBUG - Youtube link detected, extracting url in 360p 07-28 13:49:09 - DEBUG - Full video URL fetched. 07-28 13:49:09 - INFO - Starting OMXPlayer now. 07-28 13:49:09 - INFO - Playlist empty, skipping. 07-28 13:51:47 - DEBUG - Received URL to cast: https://www.youtube.com/watch?v=TUC2b-OSZ00 07-28 13:51:47 - DEBUG - No subtitles for this stream 07-28 13:51:47 - INFO - Extracting source video URL... 07-28 13:51:47 - DEBUG - Parsing source url for https://www.youtube.com/watch?v=TUC2b-OSZ00 with subs :False 07-28 13:51:47 - WARNING - Assuming --restrict-filenames since file system encoding cannot encode all characters. Set the LC_ALL environment variable to fix this. 07-28 13:51:48 - DEBUG - [youtube] TUC2b-OSZ00: Downloading webpage 07-28 13:51:55 - DEBUG - [youtube] TUC2b-OSZ00: Downloading video info webpage 07-28 13:52:01 - DEBUG - [youtube] TUC2b-OSZ00: Extracting video information 07-28 13:52:01 - DEBUG - [youtube] TUC2b-OSZ00: Downloading MPD manifest 07-28 13:52:07 - WARNING - "id" field is not a string - forcing string conversion, there is an error in extractor 07-28 13:52:08 - DEBUG - Youtube link detected, extracting url in 360p 07-28 13:52:08 - DEBUG - Full video URL fetched. 07-28 13:52:08 - INFO - Starting OMXPlayer now. 07-28 13:52:08 - INFO - Playlist empty, skipping. 07-28 13:53:09 - DEBUG - Received URL to cast: http://techslides.com/demos/sample-videos/small.webm 07-28 13:53:09 - DEBUG - No subtitles for this stream 07-28 13:53:09 - INFO - Extracting source video URL... 07-28 13:53:09 - DEBUG - Parsing source url for http://techslides.com/demos/sample-videos/small.webm with subs :False 07-28 13:53:09 - WARNING - Assuming --restrict-filenames since file system encoding cannot encode all characters. Set the LC_ALL environment variable to fix this. 07-28 13:53:15 - DEBUG - [generic] small: Requesting header 07-28 13:53:22 - WARNING - "url" field is missing or empty - skipping format, there is an error in extractor 07-28 13:53:22 - ERROR - ERROR: list index out of range 07-28 13:53:22 - ERROR - Result is none, returning none. Cancelling following function. 07-28 13:53:22 - DEBUG - Full video URL fetched. 07-28 13:53:22 - INFO - Starting OMXPlayer now. 07-28 13:53:22 - INFO - Playlist empty, skipping. 07-28 14:01:03 - DEBUG - Received URL to cast: http://techslides.com/demos/sample-videos/small.mp4 07-28 14:01:03 - DEBUG - No subtitles for this stream 07-28 14:01:03 - INFO - Extracting source video URL... 07-28 14:01:03 - DEBUG - Parsing source url for http://techslides.com/demos/sample-videos/small.mp4 with subs :False 07-28 14:01:03 - DEBUG - Direct video URL, no need to use youtube-dl. 07-28 14:01:03 - DEBUG - Full video URL fetched. 07-28 14:01:03 - INFO - Starting OMXPlayer now. 07-28 14:01:04 - INFO - Playlist empty, skipping.

Not sure what's happening, this is on a Raspberry Pi 1 and I have it connected to an HDMI Monitor.

Any help would be greatly appreciated.

lukeacat commented 6 years ago

07-28 14:01:04 - INFO - Playlist empty, skipping. That explains something. It cannot fetch it it seems like. For me i waited like 10 / 20 mins to get this soundcloud playlist https://soundcloud.com/jasonlaville/sets/best-deep-house-chill-music Try setting 07-28 13:48:49 - WARNING - Assuming --restrict-filenames since file system encoding cannot encode all characters. Set the LC_ALL environment variable to fix this. Search on google how to set envvars and what they are. 07-28 13:49:09 - WARNING - "id" field is not a string - forcing string conversion, there is an error in extractor Some problem to your link,

RaspberryCast - INFO - Server successfully started! RaspberryCast - INFO - Processing playlist. RaspberryCast - INFO - Playing first video of playlist using "Liberation Mono-16", pixelsize=21.33 file=/usr/share/fonts/truetype/liberation2/LiberationMono-Regular.ttf RaspberryCast - INFO - Extracting source video URL... RaspberryCast - INFO - Starting OMXPlayer now. RaspberryCast - INFO - Attempting to read resolution from configuration file. RaspberryCast - INFO - Adding every videos from playlist to queue. RaspberryCast - INFO - queuing video RaspberryCast - INFO - queuing video RaspberryCast - INFO - Extracting source video URL, before adding to queue... Audio codec mp3 channels 2 samplerate 44100 bitspersample 16 Subtitle count: 0, state: off, index: 1, delay: 0 RaspberryCast - INFO - Full video URL fetched. RaspberryCast - INFO - queuing video RaspberryCast - INFO - Extracting source video URL, before adding to queue... RaspberryCast - INFO - Full video URL fetched. RaspberryCast - INFO - queuing video RaspberryCast - INFO - Extracting source video URL, before adding to queue... RaspberryCast - INFO - Full video URL fetched. RaspberryCast - INFO - queuing video RaspberryCast - INFO - Extracting source video URL, before adding to queue... RaspberryCast - INFO - Full video URL fetched. RaspberryCast - INFO - queuing video RaspberryCast - INFO - Extracting source video URL, before adding to queue... RaspberryCast - INFO - Full video URL fetched. RaspberryCast - INFO - queuing video RaspberryCast - INFO - Extracting source video URL, before adding to queue... RaspberryCast - INFO - Full video URL fetched. RaspberryCast - INFO - queuing video RaspberryCast - INFO - Extracting source video URL, before adding to queue... RaspberryCast - INFO - Full video URL fetched. RaspberryCast - INFO - queuing video RaspberryCast - INFO - Extracting source video URL, before adding to queue... RaspberryCast - INFO - Full video URL fetched. RaspberryCast - INFO - queuing video RaspberryCast - INFO - Extracting source video URL, before adding to queue... RaspberryCast - INFO - Full video URL fetched. RaspberryCast - INFO - queuing video RaspberryCast - INFO - Extracting source video URL, before adding to queue... RaspberryCast - INFO - Full video URL fetched. RaspberryCast - INFO - queuing video RaspberryCast - INFO - Extracting source video URL, before adding to queue... RaspberryCast - INFO - Full video URL fetched. RaspberryCast - INFO - queuing video RaspberryCast - INFO - Extracting source video URL, before adding to queue... RaspberryCast - INFO - Full video URL fetched. RaspberryCast - INFO - queuing video RaspberryCast - INFO - Extracting source video URL, before adding to queue... have a nice day ;) RaspberryCast - INFO - Starting next video in playlist. RaspberryCast - INFO - Starting OMXPlayer now. RaspberryCast - INFO - Attempting to read resolution from configuration file. Audio codec mp3 channels 2 samplerate 44100 bitspersample 16 Subtitle count: 0, state: off, index: 1, delay: 0 RaspberryCast - INFO - Full video URL fetched. RaspberryCast - INFO - queuing video RaspberryCast - INFO - Extracting source video URL, before adding to queue... My log.

mheine commented 6 years ago

I'm not quite sure if I understand your issue @vmRelaxed , but from what I understand, it can be fixed by updating youtube-dl. On your RaspberryPi, run

sudo pip install -U youtube-dl

Restart the RaspberryCast server (or reboot your Pi), and it should work.

I am able to play both individual tracks and playlists with the updated version of youtube-dl. A possibility for permanently fixing these sort of errors is to always check for an updated versions of the python packages we're using on startup.

DanielGlaas commented 4 years ago

Is there still something to do for this issue?