Chromecast-no sound

*nix specific usage questions
masac
New Cone
New Cone
Posts: 4
Joined: 16 Feb 2018 03:51

Chromecast-no sound

Postby masac » 16 Feb 2018 04:02

I installed Linux Mint 18.3 Mate 64 bits and VLC 3.0.0 using the snap package.

In Terminal, I ran:

Code: Select all

sudo apt-get install snapd // sudo snap install vlc // snap run vlc
VLC 3.0.0 allows video streaming to Chromecast 2. The problem is that on TV, I have the video without sound.

From http://www.sopcast.com/download/linux.html, I downloaded and installed sp-sc-auth. In the terminal, the command is running:

Code: Select all

wget http://download.sopcast.org/download/sp-auth.tgz // tar xzvf sp-auth.tgz // sudo cp sp-auth/sp-sc-auth /usr/bin/ // sp-sc-auth sop://xxx.xxx.xxx.xxx 3908 8000 >/dev/null // snap run vlc http://127.0.0.1:8000/tv.asf //
In VLC I can watch the video stream. Everything on the computer is all right, I hear the sound.
The image is transmitted but I do not have a sound on the TV. I'm looking for a solution to direct the sopcast stream to Chromecast 2. Thank you!

chouquette
Developer
Developer
Posts: 291
Joined: 15 Apr 2010 00:54

Re: Chromecast-no sound

Postby chouquette » 20 Feb 2018 17:42

Hi,

There are plenty of fixes on their way for 3.0.1, however could you send your logs, just to check?

masac
New Cone
New Cone
Posts: 4
Joined: 16 Feb 2018 03:51

Re: Chromecast-no sound

Postby masac » 27 Feb 2018 14:01

masac@masac-Lenovo-ideapad-700-15ISK ~ $ snap run vlc http://127.0.0.1:8000/tv.asf
VLC media player 3.0.0 Vetinari (revision 3.0.0-0-gef4c265)
[00000000012703b0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Gtk-Message: Failed to load module "gail"
Gtk-Message: Failed to load module "atk-bridge"
Qt: Session management error: None of the authentication protocols specified are supported
[00007f40440370e0] main decoder error: buffer deadlock prevented
[00007f40440370e0] avcodec decoder: Using NVIDIA VDPAU Driver Shared Library 384.111 Tue Dec 19 22:55:29 PST 2017 for hardware decoding
[00007f40440370e0] avcodec decoder error: hardware acceleration picture allocation failed
[h264 @ 0x7f4020073600] get_buffer() failed
[h264 @ 0x7f4020073600] thread_get_buffer() failed
[h264 @ 0x7f4020073600] decode_slice_header error
[h264 @ 0x7f4020073600] no frame!
[00007f4044094410] 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.
[00007f4044094410] gnutls tls client: Accepting self-signed/untrusted CA certificate.

masac
New Cone
New Cone
Posts: 4
Joined: 16 Feb 2018 03:51

Re: Chromecast-no sound

Postby masac » 27 Feb 2018 17:08

Finally, I found the next solution to have sound on TV.

1.

Code: Select all

snap run vlc http://127.0.0.1:8000/tv.asf
to run video stream from Sopcast to VLC 3.0.
2. In VLC, access the Media-Stream-in Network tab, http://127.0.0.1:8000/tv.asf, then Next, then choose New RTP / MPEG Transport Stream and click Add-Address 127.0. 0.1, and at Base port we choose 9001. In the next window tick Activate Transcoding and choose Video for Youtube HD and in the next window tick Stream all elementary streams.
At this point ,VLC is streaming for Sopcast video stream.
3. Open another instance for VLC and test locally for streaming.
Media-Open Network Stream - and type the streaming server address rtp: //127.0.0.1: 9001. Now go to Playback -Renderer-Chromecast (to have this option, TV + Chromecast must already be turned on).
In this way, the Sopcast stream is directed to the TV.
Obs. This solution shows me that the streaming video from Sopcast without transcoding has the audio format incompatible with Chromecast 2.

robytrevi
New Cone
New Cone
Posts: 2
Joined: 24 Mar 2018 07:59

Re: Chromecast-no sound

Postby robytrevi » 24 Mar 2018 10:15

Hi.
Same problem here.
When I Render a local video to Chromecast everything is fine:

Code: Select all

Codifica: H264 - MPEG-4 AVC (part10) (avc1)

Code: Select all

Codifica: MPEG AAC Audio (mp4a)
If I try to render audio/video from a DBV device the video is transmitted properly and the audio disappear. It seems that the audio has an unknown format for Chromecast:

Code: Select all

Codifica:MPEG-1/2 Video (mpgv)

Code: Select all

Codifica:MPEG Audio layer 1/2 (mpga)
I can't find the settings like masac user.

I'm using ubuntu 18.04 B1 and I tried with VLC 3 and VLC 4 daily built with the same results.

Can you help me?

robytrevi
New Cone
New Cone
Posts: 2
Joined: 24 Mar 2018 07:59

Re: Chromecast-no sound

Postby robytrevi » 27 Mar 2018 20:12

Here is an error:

Code: Select all

[00007f290c0cb620] x264 encoder: using cpu capabilities: MMX2 SSE2Slow [00007f290c0cb620] x264 encoder: profile High, level 3.0 Failed to open VDPAU backend libvdpau_r300.so: impossibile aprire il file oggetto condiviso: File o directory non esistente [00007f290c0cb620] x264 encoder: using SAR=64/45 [00007f290c0cb620] x264 encoder: using cpu capabilities: MMX2 SSE2Slow [00007f290c0cb620] x264 encoder: profile High, level 3.0 [matroska @ 0x7f290c0ca9c0] pts (1186599) < dts (1186711) in stream 1 [00007f290c0abb00] avformat mux error: could not write frame (pts: 1186599190, dts: 1186711684) (pkt pts: 1186599, dts: 1186711)
but I think it's a video error before the video starts on Chromecast, then the streaming starts and the error is:

Code: Select all

[00007f2914c64d10] dtv stream error: cannot demux data fast enough! [00007f2914c7b7f0] ts demux error: libdvbpsi error (PSI decoder): TS discontinuity (received 14, expected 10) for PID 18


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 15 guests