gnomecast icon indicating copy to clipboard operation
gnomecast copied to clipboard

Gnomecast stopped working in Xubuntu LTS 20.04

Open eyala opened this issue 4 years ago • 7 comments

I was using Gnomecast in Xubuntu 18.04. After updating to 20.04, Gnomecast has stopped working. I can pick files and a local cast device, and Gnomecast appears to transcode it (the progress bar reaches 100%). I can click the "information" icon, and see the results, but if I click on play the UI freezes and nothing happens.

The Xubuntu installation is pretty vanilla, I didn't make any changes to the Python packages (other than to install the ones recommended in the Gnomecast installation page).

eyala avatar Nov 10 '20 16:11 eyala

Bummer. Can you run it from the command line and post the output?

On Tue, Nov 10, 2020, 8:08 AM Eyal Allweil [email protected] wrote:

I was using Gnomecast in Xubuntu 18.04. After updating to 20.04, Gnomecast has stopped working. I can pick files and a local cast device, and Gnomecast appears to transcode it (the progress bar reaches 100%). I can click the "information" icon, and see the results, but if I click on play the UI freezes and nothing happens.

The Xubuntu installation is pretty vanilla, I didn't make any changes to the Python packages (other than to install the ones recommended in the Gnomecast installation page).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/keredson/gnomecast/issues/145, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPUNALKVCHWOEUR6MX6YR3SPFQOTANCNFSM4TQ3FTMQ .

keredson avatar Nov 10 '20 16:11 keredson

Sure, thanks for your quick response!

eyal@computer:~/Videos$ gnomecast update_button_visible None update_button_visible update_button_visible serving on http://192.168.1.9:59949 check_ffmpeg b'/usr/bin/ffmpeg\n' None update_button_visible update_button_visible Chromecast('record[a,in-unique,e461e105-1c0f-51bf-5c9d-d7f7a6d53a70.local.]=120/119,192.168.1.5', port=8009, device=DeviceStatus(friendly_name='Living Room TV', model_name='Chromecast', manufacturer=None, uuid=UUID('e461e105-1c0f-51bf-5c9d-d7f7a6d53a70'), cast_type='cast')) update_button_visible update_button_visible update_button_visible Open clicked File selected: ['/home/eyal/Downloads/גן גורים סוף שנהה.mp4'] update_button_visible STOP command requested but no session is active. STOP command requested but no session is active. update_button_visible update_button_visible update_button_visible FileMetadata(fn:/home/eyal/Downloads/גן גורים סוף שנהה.mp4, ready:True, thumbnail_fn:/tmp/gnomecast_pid40157_thumbnail_iyuicesz.jpg, container:mp4, video_streams:[StreamMetadata(index:0:1, codec:h264, title:und)], audio_streams:[AudioMetadata(index:0:0, codec:aac, title:heb, channels:2)], subtitles:[]) Transcoder /home/eyal/Downloads/גן גורים סוף שנהה.mp4 transcode, transcode_video, transcode_audio True False True ffmpeg -i '/home/eyal/Downloads/גן גורים סוף שנהה.mp4' -map 0:1 -map 0:0 -c:a mp3 -b:a 256k -c:v copy /var/tmp/gnomecast_pid40157_transcode_2mkqssfv.mp4

starting ffmpeg at:

File "/usr/lib/python3.8/threading.py", line 890, in _bootstrap self._bootstrap_inner() File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/home/eyal/.local/lib/python3.8/site-packages/gnomecast.py", line 1141, in update_transcoders self.transcoder = Transcoder(self.cast, fmd, self.video_stream, self.audio_stream, lambda did_transcode=None: GLib.idle_add(self.update_status, did_transcode), self.error_callback, transcoder) File "/home/eyal/.local/lib/python3.8/site-packages/gnomecast.py", line 306, in init traceback.print_stack() und - heb StreamMetadata(index:0:1, codec:h264, title:und) AudioMetadata(index:0:0, codec:aac, title:heb, channels:2) chose subtitle No subtitles. None None update_button_visible update_button_visible {'--prefix': '/usr', '--extra-version': '1ubuntu0.1', '--toolchain': 'hardened', '--libdir': '/usr/lib/x86_64-linux-gnu', '--incdir': '/usr/include/x86_64-linux-gnu', '--arch': 'amd64', '--disable-filter': 'resample', 'q': '-1.0', 'frame': '650', 'fps': '0.0', 'size': '12800kB', 'time': '00:00:22.58', 'bitrate': '4642.8kbits/s', 'speed': '45.1x'} {'frame': '1348', 'fps': '1347', 'q': '-1.0', 'size': '22272kB', 'time': '00:00:45.91', 'bitrate': '3973.9kbits/s', 'speed': '45.9x'} {'frame': '2024', 'fps': '1349', 'q': '-1.0', 'size': '32000kB', 'time': '00:01:08.47', 'bitrate': '3828.4kbits/s', 'speed': '45.6x'} {'frame': '2703', 'fps': '1351', 'q': '-1.0', 'size': '51968kB', 'time': '00:01:31.12', 'bitrate': '4671.6kbits/s', 'speed': '45.5x'} {'frame': '3351', 'fps': '1340', 'q': '-1.0', 'size': '99840kB', 'time': '00:01:52.75', 'bitrate': '7253.8kbits/s', 'speed': '45.1x'} {'frame': '4013', 'fps': '1337', 'q': '-1.0', 'size': '133632kB', 'time': '00:02:14.78', 'bitrate': '8121.9kbits/s', 'speed': '44.9x'} {'frame': '4631', 'fps': '1322', 'q': '-1.0', 'size': '200960kB', 'time': '00:02:35.44', 'bitrate': '10590.4kbits/s', 'speed': '44.4x'} {'frame': '5239', 'fps': '1309', 'q': '-1.0', 'size': '249344kB', 'time': '00:02:55.70', 'bitrate': '11625.3kbits/s', 'speed': '43.9x'} {'frame': '5855', 'fps': '1300', 'q': '-1.0', 'size': '292864kB', 'time': '00:03:16.29', 'bitrate': '12222.0kbits/s', 'speed': '43.6x'} {'frame': '6460', 'fps': '1291', 'q': '-1.0', 'size': '348672kB', 'time': '00:03:36.45', 'bitrate': '13195.8kbits/s', 'speed': '43.3x'} {'frame': '7094', 'fps': '1289', 'q': '-1.0', 'size': '371712kB', 'time': '00:03:57.60', 'bitrate': '12815.9kbits/s', 'speed': '43.2x'} {'frame': '7729', 'fps': '1287', 'q': '-1.0', 'size': '390656kB', 'time': '00:04:18.76', 'bitrate': '12367.2kbits/s', 'speed': '43.1x'} {'frame': '8376', 'fps': '1288', 'q': '-1.0', 'size': '404736kB', 'time': '00:04:40.36', 'bitrate': '11825.8kbits/s', 'speed': '43.1x'} {'frame': '9014', 'fps': '1287', 'q': '-1.0', 'size': '419840kB', 'time': '00:05:01.65', 'bitrate': '11401.5kbits/s', 'speed': '43.1x'} {'frame': '9649', 'fps': '1286', 'q': '-1.0', 'size': '436736kB', 'time': '00:05:22.87', 'bitrate': '11081.0kbits/s', 'speed': '43x'} update_button_visible mc.status.player_state UNKNOWN /home/eyal/Downloads/גן גורים סוף שנהה.mp4 -978516395792839195 [record[a,in-unique,e461e105-1c0f-51bf-5c9d-d7f7a6d53a70.local.]=120/119,192.168.1.5:8009] Failed to connect, retrying in 5.0s

eyala avatar Nov 10 '20 18:11 eyala

hmmm. says it couldn't connect to your chromecast.

have you tried a different file? and/or do you have a different chromecast device you can attempt to connect to?

keredson avatar Nov 11 '20 18:11 keredson

The same thing happens with every file I try to play.

I have a "regular" Chromecast (probably 1st generation) and a Chromecast Audio. I've never succeedied at using Gnomecast with the audio before, and it seems to not work now, either. However, the "regular" chromecast seems to be working fine - both from my phone and from VLC on the same Xubuntu computer. I don't have any other devices to try.

(BTW - the reason I want to use Gnomecast instead of VLC is because of your AMAZING ability to handle subtitles, which is just a killer feature and you should be proud of it)

Could there be some library file that Gnomecast uses to connect to the Chromecasts that is different from VLC, something I should have installed but didn't? Or something that was removed in the latest Ubuntu version?

eyala avatar Nov 11 '20 18:11 eyala

same is happening to me on U20.04, all updates installed. I tried multiple chromecasts (utlra), multiple files too.

The UI hangs after trying to connect and this is the last output to the console:

[record[a,in-unique,08ea3a5c-0c0e-3809-a853-58b32a4e3605.local.]=120/119,192.168.86.120:8009] Failed to connect, retrying in 5.0s
[record[a,in-unique,08ea3a5c-0c0e-3809-a853-58b32a4e3605.local.]=120/119,192.168.86.120:8009] Failed to connect, retrying in 5.0s

I can ping that IP and cast from VLC & chrome.

dawonn avatar Sep 26 '21 01:09 dawonn

What version of pychromecast do you all have installed?

On Sat, Sep 25, 2021, 6:45 PM Dereck Wonnacott @.***> wrote:

same is happening to me on U20.04, all updates installed. I tried multiple chromecasts, multiple files.

The UI hangs after trying to connect and this is the last output to the console:

[record[a,in-unique,08ea3a5c-0c0e-3809-a853-58b32a4e3605.local.]=120/119,192.168.86.120:8009] Failed to connect, retrying in 5.0s

I can ping that IP and cast from VLC & chrome.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/keredson/gnomecast/issues/145#issuecomment-927211792, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPUNAP4FKM3NAGQ7TWYFQ3UDZ3J5ANCNFSM4TQ3FTMQ .

keredson avatar Sep 30 '21 21:09 keredson

pip3 install zeroconf==0.24.3 solved this for me. Ubuntu 20.04 comes with 0.24.4 which apparently doesn't work correctly.

dawonn avatar Oct 01 '21 03:10 dawonn