Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot stream youtube video on ubuntu 23.04 #416

Open
hellocatfood opened this issue Apr 30, 2023 · 4 comments
Open

Cannot stream youtube video on ubuntu 23.04 #416

hellocatfood opened this issue Apr 30, 2023 · 4 comments

Comments

@hellocatfood
Copy link

On Ubuntu 23.04 I'm unable to stream youtube videos using mkchromecast

Running mkchromecast -y https://www.youtube.com/watch?v=HeYAVDj-gO0 --video returns the following terminal output:

mkchromecast -y https://www.youtube.com/watch?v=PO3mri47s7M --video
Mkchromecast v0.3.9
Creating Pulseaudio Sink...
Open Pavucontrol and Select the Mkchromecast Sink.
Starting Video Cast Process...
 * Serving Flask app 'mkchromecast.video'
 * Debug mode: off
PID of main process: 29465
PID of streaming process: 29468
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on http://192.168.0.22:5000
Press CTRL+C to quit
 
List of Devices Available in Network:
--------------------

Index   Types   Friendly Name 
=====   =============
0 	Gcast 	Chromecast7782
 
Casting to first device shown above!
Select devices by using the -s flag.
 
Chromecast7782
 
 
Information about  Chromecast7782
 
DeviceStatus(friendly_name='Chromecast7782', model_name='Chromecast', manufacturer='Google Inc.', uuid=UUID('0c9e7fb4-9f83-107f-6bde-a82b362e7f78'), cast_type='cast', multizone_supported=True)
 
Status of device  Chromecast7782
 
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='128bf593-3dff-4881-9b76-b83347e6673e', transport_id='128bf593-3dff-4881-9b76-b83347e6673e', status_text=, icon_url=, volume_control_type='attenuation')
 
The IP of Chromecast7782 is: 192.168.0.2
Your local IP is: 192.168.0.22
 
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='128bf593-3dff-4881-9b76-b83347e6673e', transport_id='128bf593-3dff-4881-9b76-b83347e6673e', status_text=, icon_url=, volume_control_type='attenuation')
 
[youtube] PO3mri47s7M: Downloading webpage
Remember to open pavucontrol and select the mkchromecast sink.

Ctrl-C to kill the Application at any Time

[youtube] PO3mri47s7M: Downloading player 0c487f05
ERROR: Unable to extract uploader id; 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.2 - - [30/Apr/2023 18:23:14] "GET /stream HTTP/1.1" 200 -

youtube-dl was install by running pipx install youtube-dl (due to https://peps.python.org/pep-0668/ ). Using mkchromecast 0.3.9

@brunomiguel
Copy link

I have the same issue on Arch Linux

@drjaska
Copy link

drjaska commented Dec 11, 2023

@hellocatfood @brunomiguel I had a similar issue with Debian 12's packaged yt-dlp (after creating a symlink from youtube-dl to yt-dlp) but installing the lastest version of yt-dlp via pip fixed all of my issues. Here is my yt-dlp installation script if the yt-dlp README.md's installation instructions are a bit unclear regarding PEP 668 which should prevent pip from installing packages at system level, they should be placed in their own isolated virtual environments instead of being mixed with system packages.

@drjaska
Copy link

drjaska commented Dec 11, 2023

This isn't an issue with mkchromecast but with its dependency, I believe that this issue should be closed.

@pataquets
Copy link

Cross-linking to relevant issue about deprecated youtube-dl at #432

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants