Open szilagyi314 opened 4 years ago
Are you sure you are using latest youtube-dl version?
On Dec 30, 2019, at 12:00, szilagyi314 notifications@github.com wrote:
Hi, I can cast local video file from my Ubuntu 18.04 box to TV with Google Chromcast 3 device. But I have problem with casting youtube video. When starting youtube video, on the TV screan showing starting Mkchromecast v0.3.8.1 and remain the cast icon forewer on the TV screen. I tried to reinstall youtube_dl with: pip install --upgrade youtube_dl but it didn't help me. I quoted both two desktop screen to below. Thanks for your help. Best Regards Laci
When casting worked well:
python3 /usr/bin/mkchromecast --video -i Hamis\ a\ baba.mkv Mkchromecast v0.3.8.1 Starting Video Cast Process... PID of main process: 5232 PID of streaming process: 5237 Running on http://0.0.0.0:5000/ (Press CTRL+C to quit) List of Devices Available in Network:
Index Types Friendly Name ===== ===== ============= 0 Gcast Bedroom Éva TV Casting to first device shown above! Select devices by using the -s flag. Bedroom Éva TV Information about Bedroom Éva TV DeviceStatus(friendly_name='Bedroom Éva TV', model_name='Chromecast', manufacturer='Google Inc.', api_version=(1, 0), uuid=UUID('3d055c1b-2b8b-5da5-7f7c-d0cf4963bf84'), cast_type='cast') Status of device Bedroom Éva TV CastStatus(is_active_input=False, is_stand_by=True, volume_level=1.0, volume_muted=False, app_id='E8C28D3C', display_name='Backdrop', namespaces=['urn:x-cast:com.google.cast.debugoverlay', 'urn:x-cast:com.google.cast.cac', 'urn:x-cast:com.google.cast.sse', 'urn:x-cast:com.google.cast.remotecontrol'], session_id='8593d3ff-4e41-41e6-9e0f-4d3f79828dca', transport_id='8593d3ff-4e41-41e6-9e0f-4d3f79828dca', status_text='') The IP of Bedroom Éva TV is: 192.168.0.18 Your local IP is: 192.168.0.23 The media type string used is: video/mp4 Cast media controller status CastStatus(is_active_input=False, is_stand_by=True, volume_level=1.0, volume_muted=False, app_id='E8C28D3C', display_name='Backdrop', namespaces=['urn:x-cast:com.google.cast.debugoverlay', 'urn:x-cast:com.google.cast.cac', 'urn:x-cast:com.google.cast.sse', 'urn:x-cast:com.google.cast.remotecontrol'], session_id='8593d3ff-4e41-41e6-9e0f-4d3f79828dca', transport_id='8593d3ff-4e41-41e6-9e0f-4d3f79828dca', status_text='') Remember to open pavucontrol and select the mkchromecast sink. Ctrl-C to kill the Application at any Time 192.168.0.18 - - [30/Dec/2019 20:09:55] "GET /stream HTTP/1.1" 200 - Cleaning up /tmp/... [Done] Killed ERROR when youtube playing: Problem with cast youtube video:
$ python3 /usr/bin/mkchromecast -y "https://www.youtube.com/watch\?v\=VuMBaAZn3II" --video Mkchromecast v0.3.8.1 Starting Video Cast Process... PID of main process: 5201 PID of streaming process: 5206
Running on http://0.0.0.0:5000/ (Press CTRL+C to quit) List of Devices Available in Network:
Index Types Friendly Name ===== ===== ============= 0 Gcast Bedroom Éva TV Casting to first device shown above! Select devices by using the -s flag. Bedroom Éva TV Information about Bedroom Éva TV DeviceStatus(friendly_name='Bedroom Éva TV', model_name='Chromecast', manufacturer='Google Inc.', api_version=(1, 0), uuid=UUID('3d055c1b-2b8b-5da5-7f7c-d0cf4963bf84'), cast_type='cast') Status of device Bedroom Éva TV CastStatus(is_active_input=False, is_stand_by=True, volume_level=1.0, volume_muted=False, app_id='E8C28D3C', display_name='Backdrop', namespaces=['urn:x-cast:com.google.cast.debugoverlay', 'urn:x-cast:com.google.cast.cac', 'urn:x-cast:com.google.cast.sse', 'urn:x-cast:com.google.cast.remotecontrol'], session_id='4e777907-6287-4774-8589-e69b4e6f288f', transport_id='4e777907-6287-4774-8589-e69b4e6f288f', status_text='') The IP of Bedroom Éva TV is: 192.168.0.18 Your local IP is: 192.168.0.23 The media type string used is: video/mp4 Cast media controller status CastStatus(is_active_input=False, is_stand_by=True, volume_level=1.0, volume_muted=False, app_id='E8C28D3C', display_name='Backdrop', namespaces=['urn:x-cast:com.google.cast.debugoverlay', 'urn:x-cast:com.google.cast.cac', 'urn:x-cast:com.google.cast.sse', 'urn:x-cast:com.google.cast.remotecontrol'], session_id='4e777907-6287-4774-8589-e69b4e6f288f', transport_id='4e777907-6287-4774-8589-e69b4e6f288f', status_text='') Remember to open pavucontrol and select the mkchromecast sink. Ctrl-C to kill the Application at any Time [generic] watch\?v\=VuMBaAZn3II: Requesting header WARNING: Could not send HEAD request to https://www.youtube.com/watch\?v\=VuMBaAZn3II: HTTP Error 404: Not Found [generic] watch\?v\=VuMBaAZn3II: Downloading webpage ERROR: Unable to download webpage: HTTP Error 404: Not Found (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. 192.168.0.18 - - [30/Dec/2019 20:09:05] "GET /stream HTTP/1.1" 200 - ^CCleaning up /tmp/... [Done] Killed — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Dear Muammar, Thank you for your help, I reinstalled youtube_dl and now it is paying from YouTube. But I would like to show below what I did exactly and if you would have any more suggestion I will read it. Thanks for your help! Laci
#pip list
...
youtube-dl (2019.12.25)
#pip uninstall youtube_dl
Uninstalling youtube-dl-2019.12.25:
...
#wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
#chmod a+rx /usr/local/bin/youtube-dl
#/usr/local/bin/youtube-dl -U
youtube-dl is up-to-date (2020.01.01)
#### Check download and play from local, it was ok.
#youtube-dl https://www.youtube.com/watch?v=zI2C7FhCCOI
#ls -l
total 1285316
-rw-r--r-- 1 laci laci 23215429 Oct 4 2014 'Graph Theory Channel info-zI2C7FhCCOI.mkv'
#mkchromecast --video -i Graph\ Theory\ Channel\ info-zI2C7FhCCOI.mkv
Mkchromecast v0.3.8.1
...
### Check real time play from youtube, and now it is ok too.
#python3 /usr/bin/mkchromecast -y https://www.youtube.com/watch?v=wwgQVZju1ZM --video
Hi, I can cast local video file from my Ubuntu 18.04 box to TV with Google Chromcast 3 device. But I have problem with casting youtube video. When starting youtube video, on the TV screan showing starting Mkchromecast v0.3.8.1 and remain the cast icon forewer on the TV screen. I tried to reinstall youtube_dl with: pip install --upgrade youtube_dl but it didn't help me. I quoted both two desktop screen to below. Thanks for your help. Best Regards Laci
When casting worked well:
ERROR when youtube playing: Problem with cast youtube video: