Page 1 of 1

VLC crashes when casting to Chromecast Ultra

Posted: 15 Jun 2020 17:21
by hybris2
Hi. I am using VLC to stream movies to my TV with a Google Chromecast Ultra 4K. The transmission is excellent only that the transmission is interrupted quite frequently: the cast symbol appears on the TV (the screen with the wifi symbol) and it is necessary to close VLC and reopen it. After a few minutes it does the same problem again. The Chromecast is connected via Ethernet to the router and does not give problems in transmission via the Chrome browser.
I also have a Google Chromecast 3 and it doesn't give this problem.

I saved the error log.

Could anyone tell me what could be causing this problem?
Thanks in advance!

PS.Since there is a limit of characters I write the log in the answer

Re: VLC crashes when casting to Chromecast Ultra

Posted: 15 Jun 2020 17:22
by hybris2
stream_out_chromecast debug: Player state: PLAYING sessionId: 1
stream_out_chromecast debug: PING received from the Chromecast
stream_out_chromecast error: The connection to the Chromecast died (receiving).
main debug: killing decoder fourcc `h264'
main debug: removing module "h264"
main debug: removing a sout input (sout_input: 0569f418)
avcodec debug: removing input
stream_out_chromecast debug: can't remux audio track 1 codec dts
stream_out_chromecast debug: Converting audio to mp3
main debug: removing module "avcodec"
main debug: removing module "vorbis"
main debug: removing module "samplerate"
main debug: removing module "trivial"
avcodec debug: removing input
main warning: no more input streams for this mux
main debug: destroying chain... (name=transcode)
main debug: removing module "stream_out_transcode"
main debug: destroying chain done
main debug: destroying chain... (name=chromecast-proxy)
main debug: removing module "stream_out_chromecast"
main debug: destroying chain done
main debug: destroying chain... (name=std)
main debug: removing module "stream_out_standard"
main debug: removing module "avcodec"
main debug: removing module "stream_out_chromecast"
main debug: destroying chain done
stream_out_chromecast debug: Creating chain transcode{acodec=mp3 ,}:chromecast-proxy:std{mux=avformat{mux=matroska,options={live=1},reset-ts},access=chromecast-http}
main debug: stream=`std'
main debug: looking for sout stream module matching "std": 23 candidates
main debug: set config option: sout-standard-mux to avformat{mux=matroska,options={live=1},reset-ts}
main debug: set config option: sout-standard-access to chromecast-http
main debug: looking for sout access module matching "chromecast-http": 10 candidates
main debug: using sout access module "stream_out_chromecast"
main debug: looking for sout mux module matching "avformat": 11 candidates
avcodec debug: using ffmpeg Lavf58.3.100
avcodec debug: CPU flags: 0x000fd3db
main debug: set config option: sout-avformat-mux to matroska
main debug: set config option: sout-avformat-options to live=1
main debug: set config option: sout-avformat-reset-ts to (null)
main debug: using sout mux module "avcodec"
stream_out_standard debug: using `chromecast-http/avformat{mux=matroska,options={live=1},reset-ts}://(null)'
main debug: using sout stream module "stream_out_standard"
main debug: stream=`chromecast-proxy'
main debug: looking for sout stream module matching "chromecast-proxy": 23 candidates
main debug: using sout stream module "stream_out_chromecast"
main debug: stream=`transcode'
main debug: looking for sout stream module matching "transcode": 23 candidates
main debug: set config option: sout-transcode-acodec to mp3
stream_out_transcode debug: Checking codec mapping for mp3 got mp3
stream_out_transcode debug: codec audio=mp3 0Hz 0 channels 96Kb/s
main debug: using sout stream module "stream_out_transcode"
stream_out_transcode debug: creating audio transcoding from fcc=`dts ' to fcc=`mp3 '
main debug: looking for audio decoder module matching "any": 23 candidates
avcodec debug: using ffmpeg Lavc58.6.103
avcodec debug: CPU flags: 0x000fd3db
avcodec debug: codec (dca) started
main debug: using audio decoder module "avcodec"
main debug: looking for encoder module matching "any": 24 candidates
avcodec debug: using ffmpeg Lavc58.6.103
avcodec debug: CPU flags: 0x000fd3db
avcodec debug: Trying to find more suitable sample format instead of s32p
avcodec debug: Using s16p as new sample format
avcodec debug: Trying to find packet sample format instead of planar s16p
avcodec debug: Ended up using s16p as sample format
avcodec debug: Creating channel order for reordering
avcodec debug: 0 1 mapped to 2
avcodec debug: 1 2 mapped to 4
avcodec debug: 2 4 mapped to 1
avcodec debug: 3 8 mapped to 1000
avcodec debug: 4 10 mapped to 20
avcodec debug: 5 20 mapped to 40
avcodec warning: stereo mode selected (codec limitation)
avcodec debug: found encoder MPEG Audio layer 3
main debug: using encoder module "avcodec"
main debug: input 's16l' 48000 Hz 3F2R/LFE frame=1 samples/12 bytes
main debug: conversion: 's16l'->'s16l' 48000 Hz->48000 Hz 3F2R/LFE->Stereo
main debug: looking for audio converter module matching "any": 8 candidates
audio_format debug: s16l->f32l, bits per sample: 16->32
main debug: using audio converter module "audio_format"
main debug: looking for audio converter module matching "any": 8 candidates
main debug: using audio converter module "simple_channel_mixer"
main debug: looking for audio converter module matching "any": 8 candidates
audio_format debug: f32l->s16l, bits per sample: 32->16
main debug: using audio converter module "audio_format"
main debug: conversion pipeline complete
main debug: looking for audio resampler module matching "any": 3 candidates
main debug: using audio resampler module "ugly"
main debug: removing module "avcodec"
main debug: removing module "ugly"

Re: VLC crashes when casting to Chromecast Ultra

Posted: 15 Jun 2020 17:23
by hybris2
main debug: removing module "audio_format"
main debug: removing module "simple_channel_mixer"
main debug: removing module "audio_format"
main debug: looking for encoder module matching "any": 24 candidates
avcodec debug: using ffmpeg Lavc58.6.103
avcodec debug: CPU flags: 0x000fd3db
avcodec debug: Trying to find more suitable sample format instead of s32p
avcodec debug: Using fltp as new sample format
avcodec debug: Trying to find packet sample format instead of planar fltp
avcodec debug: Ended up using fltp as sample format
avcodec debug: Creating channel order for reordering
avcodec debug: 0 1 mapped to 2
avcodec debug: 1 2 mapped to 4
avcodec debug: 2 4 mapped to 1
avcodec debug: 3 8 mapped to 1000
avcodec debug: 4 10 mapped to 20
avcodec debug: 5 20 mapped to 40
avcodec warning: stereo mode selected (codec limitation)
avcodec debug: found encoder MPEG Audio layer 3
main debug: using encoder module "avcodec"
main debug: input 'f32l' 48000 Hz 3F2M/LFE frame=1 samples/24 bytes
main debug: conversion: 'f32l'->'f32l' 48000 Hz->48000 Hz 3F2M/LFE->Stereo
main debug: looking for audio converter module matching "any": 8 candidates
main debug: using audio converter module "simple_channel_mixer"
main debug: conversion pipeline complete
main debug: looking for audio resampler module matching "any": 3 candidates
main debug: using audio resampler module "samplerate"
main debug: adding a new input
avcodec debug: adding input
main debug: removing module "avcodec"
main debug: removing module "avcodec"
main debug: removing module "samplerate"
main debug: removing module "simple_channel_mixer"
avcodec debug: removing input
main warning: no more input streams for this mux
main debug: destroying chain... (name=transcode)
main debug: removing module "stream_out_transcode"
main debug: destroying chain done
main debug: destroying chain... (name=chromecast-proxy)
main debug: removing module "stream_out_chromecast"
main debug: destroying chain done
main debug: destroying chain... (name=std)
main debug: removing module "stream_out_standard"
main debug: removing module "avcodec"
main debug: removing module "stream_out_chromecast"
main debug: destroying chain done
main debug: killing decoder fourcc `dts '
main debug: removing module "dts"
main debug: removing a sout input (sout_input: 16ee8518)
main debug: killing decoder fourcc `subt'
main debug: removing module "copy"
main debug: removing a sout input (sout_input: 056a0148)
main debug: removing module "demux_chromecast"
main debug: removing module "mkv"
main debug: Program doesn't contain anymore ES
mkv debug: Stopping the UI Hook
main debug: removing module "record"
main debug: removing module "cache_read"
main debug: removing module "filesystem"
main debug: dead input
qt debug: IM: Deleting the input
main debug: changing item without a request (current 0/1)
main debug: nothing to play

Re: VLC crashes when casting to Chromecast Ultra

Posted: 18 Jun 2020 13:16
by hybris2
Update:
these days I have used randomly the chromecast 4k and the chromecast 3 and both manifest the same problem of interruption of playback on VLC. I have tried all the possible solutions found on the web: updated the latest version of VLC, reset preferences, tried to increase buffering, uninstalled and reinstalled vlc, checked wifi driver updates, hard reset both Chromecasts, I tried 4K both via ethernet cable and via wifi, in the meantime I have also formatted and reinstalled windows 10, but it randomly stops.
Any idea?

stream_out_chromecast debug: Player state: PLAYING sessionId: 1
stream_out_chromecast debug: Player state: PLAYING sessionId: 1
stream_out_chromecast debug: PING received from the Chromecast
stream_out_chromecast error: The connection to the Chromecast died (receiving).
main debug: killing decoder fourcc `h264'
main debug: removing module "h264"
main debug: removing a sout input (sout_input: 0505e620)
avcodec debug: removing input
main debug: killing decoder fourcc `dts '
main debug: removing module "dts"
main debug: removing a sout input (sout_input: 0505e550)
main debug: removing module "avcodec"
main debug: removing module "vorbis"
main debug: removing module "samplerate"
main debug: removing module "trivial"
avcodec debug: removing input
main warning: no more input streams for this mux
main debug: destroying chain... (name=transcode)
main debug: removing module "stream_out_transcode"
main debug: destroying chain done
main debug: destroying chain... (name=chromecast-proxy)
main debug: removing module "stream_out_chromecast"
main debug: destroying chain done
main debug: destroying chain... (name=std)
main debug: removing module "stream_out_standard"
main debug: removing module "avcodec"
main debug: removing module "stream_out_chromecast"
main debug: destroying chain done
main debug: killing decoder fourcc `subt'
main debug: removing module "copy"
main debug: removing a sout input (sout_input: 07467fb0)
main debug: removing module "demux_chromecast"
main debug: removing module "mkv"
main debug: Program doesn't contain anymore ES
mkv debug: Stopping the UI Hook
main debug: removing module "record"
main debug: removing module "cache_read"
main debug: removing module "filesystem"
main debug: dead input
qt debug: IM: Deleting the input
main debug: changing item without a request (current 0/1)
main debug: nothing to play

Re: VLC crashes when casting to Chromecast Ultra

Posted: 19 Jun 2020 18:32
by Jean-Baptiste Kempf
Does it crash or just stops to play?

Re: VLC crashes when casting to Chromecast Ultra

Posted: 20 Jun 2020 12:55
by hybris2
Does it crash or just stops to play?
VLC remains open but freezes and nothing can be done, such as resuming playback, skipping forward or backward or disconnecting from the chromecast. To resume I have to close VLC, disconnect chromecast from a browser tab, reopen the video, reconnect chromecast and manually return to the playback point

Re: VLC crashes when casting to Chromecast Ultra

Posted: 20 Jun 2020 14:34
by Jean-Baptiste Kempf
Very weird. Never seen that case.

Re: VLC crashes when casting to Chromecast Ultra

Posted: 21 Jun 2020 11:31
by hybris2
Very weird. Never seen that case.
I also think it is a particularly strange problem, moreover for some days now it is also associating with the problem that the chromecast is no longer seen by VLC in the renderer and only appears scanning.
I really tried everything: disabled the windows firewall, manually opened the ports, completely disabled windows defender, opened the ports on the router, completely disabled the router firewall, tried to use a smartphone as a hotspot / router, installed older versions of VLC, restarted in safe mode, I also tried to boot from usb stick linux mint it seems that this problem is only a little less frequent but it is still there. Restarting the computer, just started for a few minutes the chromecast is visible and then disappears again, sometimes it doesn't appear at all.
In all this the casting via the browser always works excellently, through VLC the chromecast is not even seen anymore, and those few times that it sees it freezes.

I really don't know what else to do...

Re: VLC crashes when casting to Chromecast Ultra

Posted: 21 Jun 2020 12:28
by hybris2
PS. I forgot to write that I also tried to set a static IP on all devices