Can't cast any video that requires transcoding on UWP
Summary
When I'm trying to cast any video that requires transcoding to chromecast either nothing happens, or app crashes.
Minimal project and steps to reproduce
Here is a sample project: https://github.com/vlasenkoalexey/LibVLCSharp.UWP.Sample_chromecast
What is the current bug behavior?
Either nothing happens, or app crashes.
What is the expected correct behavior?
Casting to chromecast should work on UWP.
Does it work on other plaforms? Does it work with the official VLC apps?
It works fine on Desktop VLC. On works on Windows Store VLC it works for some video, but video quality is poor.
Relevant logs and/or screenshots
main audio output debug: inserting 12891 zeroes
[VLC Debug] inserting 12891 zeroes
main video output debug: picture might be displayed late (missing 0 ms)
[VLC Debug] picture might be displayed late (missing 0 ms)
onecoreuap\windows\wgi\winrt\display\displaycommon.cpp(411)\Windows.Graphics.dll!17BA44D2: (caller: 17BA4327) ReturnHr(120) tid(9fc) 80070490 Element not found.
onecoreuap\windows\wgi\winrt\display\displaycommon.cpp(411)\Windows.Graphics.dll!17BA44D2: (caller: 17BA41D6) ReturnHr(121) tid(9fc) 80070490 Element not found.
onecoreuap\windows\wgi\winrt\display\displaycommon.cpp(411)\Windows.Graphics.dll!17BA44D2: (caller: 17BA4327) ReturnHr(122) tid(9fc) 80070490 Element not found.
onecoreuap\windows\wgi\winrt\display\displaycommon.cpp(411)\Windows.Graphics.dll!17BA44D2: (caller: 17BA4327) ReturnHr(123) tid(9fc) 80070490 Element not found.
onecoreuap\windows\wgi\winrt\display\displaycommon.cpp(411)\Windows.Graphics.dll!17BA44D2: (caller: 17BA41D6) ReturnHr(124) tid(9fc) 80070490 Element not found.
The thread 0x51a0 has exited with code 0 (0x0).
main decoder debug: killing decoder fourcc `mp4v'
main decoder debug: removing module "avcodec"
[VLC Debug] killing decoder fourcc `mp4v'
main generic debug: saving a free vout
main generic debug: reusing provided vout
wasapi generic debug: reset
The thread 0x37f0 has exited with code 0 (0x0).
main decoder debug: killing decoder fourcc `a52 '
[VLC Debug] reusing provided vout
main decoder debug: removing module "avcodec"
wasapi generic debug: reset
main audio resampler debug: removing module "samplerate"
main audio filter debug: removing module "scaletempo"
main volume debug: removing module "float_mixer"
main generic debug: keeping audio output
main packetizer debug: removing module "a52"
main stream output debug: using sout chain=`chromecast{ip=192.168.0.166,port=8009}'
main stream output debug: stream=`chromecast'
main stream out debug: looking for sout stream module matching "chromecast": 22 candidates
main stream out debug: set config option: sout-chromecast-ip to 192.168.0.166
main stream out debug: set config option: sout-chromecast-port to 8009
main stream out debug: net: listening to * port 8010
main tls client debug: looking for tls client module matching "any": 1 candidates
gnutls tls client debug: using GnuTLS version 3.5.18
[VLC Debug] saving a free vout
gnutls tls client debug: loaded 68 trusted CAs from system
main tls client debug: using tls client module "gnutls"
main tls client debug: resolving 192.168.0.166 ...
[VLC Debug] removing module "avcodec"
gnutls tls client debug: TLS handshake: Resource temporarily unavailable, try again.
[VLC Debug] reset
[VLC Debug] removing module "samplerate"
gnutls tls client debug: TLS handshake: Success.
[VLC Debug] removing module "scaletempo"
gnutls tls client debug: - safe renegotiation (RFC5746) enabled
gnutls tls client debug: - extended master secret (RFC7627) enabled
gnutls tls client debug: - false start (RFC7918) enabled
gnutls tls client error: Certificate verification failure: The certificate is NOT trusted. The certificate issuer is unknown. The name in the certificate does not match the expected.
gnutls tls client: Accepting self-signed/untrusted CA certificate.
main stream output debug: stream=`http'
main stream out debug: looking for sout stream module matching "http": 22 candidates
main stream out debug: set config option: sout-standard-mux to avformat{mux=matroska,options={live=1}}
main access out debug: looking for sout access module matching "http": 9 candidates
main access out debug: net: listening to * port 8080
main access out debug: using sout access module "http"
[VLC Debug] removing module "float_mixer"
main mux debug: looking for sout mux module matching "avformat": 11 candidates
avcodec mux debug: using ffmpeg Lavf58.3.100
avcodec mux debug: CPU flags: 0x0007d3db
main mux debug: set config option: sout-avformat-mux to matroska
main mux debug: set config option: sout-avformat-options to live=1
main mux debug: using sout mux module "avcodec"
stream_out_standard stream out debug: using `http/avformat{mux=matroska,options={live=1}}://(null)'
main stream out debug: using sout stream module "stream_out_standard"
onecoreuap\windows\wgi\winrt\display\displaycommon.cpp(411)\Windows.Graphics.dll!17BA44D2: (caller: 17BA4327) ReturnHr(125) tid(9fc) 80070490 Element not found.
main stream out debug: destroying chain... (name=http)
main stream out debug: removing module "stream_out_standard"
main mux debug: removing module "avcodec"
onecoreuap\windows\wgi\winrt\display\displaycommon.cpp(411)\Windows.Graphics.dll!17BA44D2: (caller: 17BA41D6) ReturnHr(126) tid(9fc) 80070490 Element not found.
main access out debug: removing module "http"
The thread 0x4570 has exited with code 0 (0x0).
main http host debug: HTTP host removed
[VLC Debug] keeping audio output
http access out debug: Close
main stream out debug: destroying chain done
main stream out debug: using sout stream module "stream_out_chromecast"
main demux_filter debug: looking for demux_filter module matching "cc_demux": 2 candidates
main input debug: ES_OUT_RESET_PCR called
main demux_filter debug: using demux_filter module "demux_chromecast"
main video output debug: destroying useless vout
main vout display debug: removing module "direct3d11"
direct3d11 vout display debug: Direct3D11 resources destroyed
direct3d11 vout display debug: Direct3D11 device adapter closed
The thread 0x2a64 has exited with code 0 (0x0).
main spu text debug: removing module "freetype"
[VLC Debug] removing module "a52"
main scale debug: removing module "yuvp"
main scale debug: removing module "swscale"
main decoder debug: looking for packetizer module matching "any": 24 candidates
mpeg4video decoder debug: opening with vol size: 170
main decoder debug: using packetizer module "mpeg4video"
main decoder debug: looking for packetizer module matching "any": 24 candidates
main decoder debug: using packetizer module "a52"
main input debug: Buffering 0%
[VLC Debug] using sout chain=`chromecast{ip=192.168.0.166,port=8009}'
[VLC Debug] stream=`chromecast'
[VLC Debug] looking for sout stream module matching "chromecast": 22 candidates
[VLC Debug] killing decoder fourcc `a52 '
[VLC Debug] set config option: sout-chromecast-ip to 192.168.0.166
[VLC Debug] set config option: sout-chromecast-port to 8009
[VLC Debug] looking for tls client module matching "any": 1 candidates
[VLC Debug] using GnuTLS version 3.5.18
[VLC Debug] loaded 68 trusted CAs from system
[VLC Debug] set config option: sout-avformat-options to live=1
[VLC Debug] - extended master secret (RFC7627) enabled
[VLC Debug] looking for sout stream module matching "http": 22 candidates
[VLC Debug] using `http/avformat{mux=matroska,options={live=1}}://(null)'
[VLC Debug] using sout stream module "stream_out_standard"
[VLC Debug] destroying chain... (name=http)
[VLC Debug] removing module "stream_out_standard"
[VLC Debug] removing module "avcodec"
[VLC Debug] removing module "http"
[VLC Debug] HTTP host removed
[VLC Debug] Close
[VLC Debug] destroying chain done
[VLC Debug] using sout stream module "stream_out_chromecast"
[VLC Debug] looking for demux_filter module matching "cc_demux": 2 candidates
[VLC Debug] ES_OUT_RESET_PCR called
[VLC Debug] using demux_filter module "demux_chromecast"
[VLC Debug] destroying useless vout
[VLC Debug] removing module "direct3d11"
[VLC Debug] Direct3D11 resources destroyed
[VLC Debug] Direct3D11 device adapter closed
[VLC Debug] removing module "freetype"
[VLC Debug] removing module "yuvp"
[VLC Debug] removing module "swscale"
[VLC Debug] looking for packetizer module matching "any": 24 candidates
[VLC Debug] opening with vol size: 170
[VLC Debug] using packetizer module "mpeg4video"
[VLC Debug] looking for packetizer module matching "any": 24 candidates
[VLC Debug] using packetizer module "a52"
[VLC Debug] Buffering 0%
main input debug: switching to async mode
a52 decoder debug: A/52 channels:6 samplerate:48000 bitrate:384000
[VLC Debug] removing module "avcodec"
main stream output debug: adding a new sout input for `a52 ` (sout_input: 2754c7e0)
[VLC Debug] net: listening to * port 8010
[VLC Debug] switching to async mode
[VLC Debug] adding a new sout input for `a52 ` (sout_input: 2754C7E0)
[VLC Debug] using sout mux module "avcodec"
[VLC Debug] set config option: sout-standard-mux to avformat{mux=matroska,options={live=1}}
[VLC Debug] stream=`http'
[VLC Debug] looking for sout access module matching "http": 9 candidates
[VLC Debug] A/52 channels:6 samplerate:48000 bitrate:384000
[VLC Error] Certificate verification failure: The certificate is NOT trusted. The certificate issuer is unknown. The name in the certificate does not match the expected.
[VLC Debug] CPU flags: 0x0007d3db
[VLC Debug] TLS handshake: Resource temporarily unavailable, try again.
[VLC Debug] TLS handshake: Success.
[VLC Debug] - safe renegotiation (RFC5746) enabled
[VLC Debug] set config option: sout-avformat-mux to matroska
[VLC Debug] looking for sout mux module matching "avformat": 11 candidates
[VLC Notice] Accepting self-signed/untrusted CA certificate.
[VLC Debug] net: listening to * port 8080
[VLC Debug] using ffmpeg Lavf58.3.100
[VLC Debug] - false start (RFC7918) enabled
[VLC Debug] reset
[VLC Debug] using tls client module "gnutls"
[VLC Debug] resolving 192.168.0.166 ...
[VLC Debug] using sout access module "http"
main stream output debug: adding a new sout input for `mp4v` (sout_input: 2754c9d0)
[VLC Debug] adding a new sout input for `mp4v` (sout_input: 2754C9D0)
main input debug: Stream buffering done (1500 ms in 3431 ms)
main input debug: Decoder wait done in 0 ms
[VLC Debug] Stream buffering done (1500 ms in 3431 ms)
stream_out_chromecast stream out debug: can't remux audio track 1 codec a52
stream_out_chromecast stream out debug: can't remux video track 0 codec mp4v
Environment
- OS: Windows
- Version 10
- Device: PC
- LibVLC VideoLAN.LibVLC.UWP, 3.1.1/3.2 x86 LibVLCSharp 3.4.2, 3.4.3, 3.4.5 x86