Videos to Chromecast

Need help? Post your questions here.

Moderator: moderators

Videos to Chromecast

Postby andykvakk » Fri Jul 07, 2017 10:42 am

Hello. I have problems with viewing movies and music on my chromecast. Does anyone have a clue of what may be wrong?

1. I run Subsonic behind an apache reverse proxy to get SSL to my subdomain. I use a letsencrypt ssl certificate
2. I try to cast from my chrome browser on my laptop using my domain adress (not local ip)
3. When i click on cast icon in chrome browser i get the subsonic logo on my tv.
4. When starting a mkv file the player tells me that it is casting
5. Nothing happens on my tv for a long time, then suddenly the movie files navn is show and dissapears within a second. I have also tried mp4 and avi files.

A friend om mine tried at his home and he gets the same behavior.

My subsonic config:
SUBSONIC_ARGS="--port=8080 --max-memory=512"
SUBSONIC_USER="subsonic"

My log says:

[07.07.17 11:10:58 GMT+01:00] INFO FFmpegHlsSession-1865778575 Creating FFmpeg HLS session 1865778575: {mediaFileId=104215, playerId='3', maxBitRate='1200', size='480x352', audioTrack=null}
[07.07.17 11:10:58 GMT+01:00] INFO FFmpegHlsSession-1865778575 Starting ffmpeg for hls: /var/subsonic/transcode/ffmpeg -i /media/lagring/filmer/A Good Time For A Dime (1941)/A Good Time For A Dime (1941).avi -s 480x352 -c:v libx264 -c:a aac -b:v 1100k -maxrate 1200k -b:a 96k -bufsize 256k -map 0:0 -map 0:1 -ac 2 -preset superfast -v error -force_key_frames expr:gte(t,n_forced*10) -start_number 0 -hls_time 10 -hls_list_size 0 -hls_segment_filename /var/subsonic/hls/1865778575/%d.ts /var/subsonic/hls/1865778575/out.m3u8
[07.07.17 11:10:59 GMT+01:00] INFO FFmpegHlsSession-1867796675 Killing ffmpeg
[07.07.17 11:11:03 GMT+01:00] INFO FFmpegHlsSession-1865778575 Killing ffmpeg
[07.07.17 11:11:03 GMT+01:00] INFO FFmpegHlsSession-1867796675 Creating FFmpeg HLS session 1867796675: {mediaFileId=104215, playerId='3', maxBitRate='3300', size='480x352', audioTrack=null}
[07.07.17 11:11:03 GMT+01:00] INFO FFmpegHlsSession-1867796675 Starting ffmpeg for hls: /var/subsonic/transcode/ffmpeg -ss 20 -i /media/lagring/filmer/A Good Time For A Dime (1941)/A Good Time For A Dime (1941).avi -s 480x352 -c:v libx264 -c:a aac -b:v 3000k -maxrate 3300k -b:a 96k -bufsize 256k -map 0:0 -map 0:1 -ac 2 -preset superfast -copyts -v error -force_key_frames expr:gte(t,n_forced*10) -start_number 2 -hls_time 10 -hls_list_size 0 -hls_segment_filename /var/subsonic/hls/1867796675/%d.ts /var/subsonic/hls/1867796675/out.m3u8
[07.07.17 11:11:12 GMT+01:00] INFO FFmpegHlsSession-1867796675 Killing ffmpeg
[07.07.17 11:11:12 GMT+01:00] INFO FFmpegHlsSession-1869430375 Creating FFmpeg HLS session 1869430375: {mediaFileId=104215, playerId='3', maxBitRate='5000', size='480x352', audioTrack=null}
[07.07.17 11:11:12 GMT+01:00] INFO FFmpegHlsSession-1869430375 Starting ffmpeg for hls: /var/subsonic/transcode/ffmpeg -ss 60 -i /media/lagring/filmer/A Good Time For A Dime (1941)/A Good Time For A Dime (1941).avi -s 480x352 -c:v libx264 -c:a aac -b:v 4500k -maxrate 5000k -b:a 128k -bufsize 256k -map 0:0 -map 0:1 -ac 2 -preset superfast -copyts -v error -force_key_frames expr:gte(t,n_forced*10) -start_number 6 -hls_time 10 -hls_list_size 0 -hls_segment_filename /var/subsonic/hls/1869430375/%d.ts /var/subsonic/hls/1869430375/out.m3u8
[07.07.17 11:11:16 GMT+01:00] INFO FFmpegHlsSession-1869430375 Killing ffmpeg
[07.07.17 11:11:47 GMT+01:00] WARN FFmpegHlsSession-1869430375 Timed out for segment 7

This is my Subsonic info:

License Subsonic Premium
Versjon 6.1.1 (build fc853b) – 31. mai 2017
Server jetty-6.1.x, java 1.7.0_95, HSQLDB, Linux (193,0 MB / 458,0 MB)
andykvakk
 
Posts: 9
Joined: Mon Mar 01, 2010 6:18 pm

Re: Videos to Chromecast

Postby ITBrewer » Sat Jul 15, 2017 11:39 pm

I'm seeing this same behavior since the update as well, I have a fairly vanilla install running Ubuntu 16.10
ITBrewer
 
Posts: 2
Joined: Tue Feb 21, 2012 7:24 pm

Re: Videos to Chromecast

Postby andykvakk » Sun Sep 10, 2017 6:36 pm

Is Chromecast movies working for anyone at all? I start the movie using subsonic via Chrome on my PC. The subsonic icon shows up om ny tv, but movie does not start.
andykvakk
 
Posts: 9
Joined: Mon Mar 01, 2010 6:18 pm

Re: Videos to Chromecast

Postby andykvakk » Fri Sep 15, 2017 7:47 am

A bit more information:

I have a Ubuntu server setup with apache and reverse proxy because I want to use Subsonic at work for music and work has blocked all the "strange" ports, but port 80 and 443 is available.

My Apache config (example.com is used instead of my real domain):

Code: Select all
<VirtualHost *:443>
    SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/subsonic.example.com/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/subsonic.example.com/privkey.pem
    SSLProxyEngine on
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html
    ServerName subsonic.example.com
    # Possible values include: debug, info, notice, warn, error, crit ,alert, emerg.
    LogLevel warn
    CustomLog ${APACHE_LOG_DIR}/subsonic-access.log combined
    ErrorLog ${APACHE_LOG_DIR}/subsonic-error.log
    #ProxyHTMLStripComments on
    ProxyRequests off
    <Location />
        RequestHeader unset Accept-Encoding
        ProxyPass http://192.168.1.10:8080/
        ProxyPassReverse http://192.168.1.10:8080/
        Order allow,deny
        Allow from all
    </Location>
</VirtualHost>


Everything works in the webclient/browser from my local network, WAN and from the official Android client. I cannot get chromecast to work.

Does anyone got chromecast working for movies?
andykvakk
 
Posts: 9
Joined: Mon Mar 01, 2010 6:18 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 13 guests