FAQ  •  Register  •  Login

Google Chromecast

<<

jvskill

Serviio newbie

Posts: 8

Joined: Mon Dec 16, 2013 10:58 pm

Post Thu Feb 06, 2014 2:31 am

Re: Google Chromecast

MichaelRHall wrote:Notice it states that directplay (ie NO transcoding) is supported for:
Code:
<VideoProfile container="mp4" codec="h264" audioCodec="aac" /> --- mp4 container, h264 video WITH aac audio.
<MusicProfile container="mp4" codec="aac" /> -- mp4 container with aac audio supported to 768k bitrate
<MusicProfile container="mp3" codec="mp3" /> -- mp3 supported up to 320k bitrate.

With Serviio is possible to transcode into the format above?


This website says it should be able to accept HLS containers which Serviio currently supports:

https://developers.google.com/cast/docs/media

However, some people on other forums have indicated that this is a more recent development with the release of the official SDK. I won't be able to test this again til Friday night but I will post logs again. Unfortunately, I still think the issue of Serviio not applying the desired profile to the Chromecast will persist.
<<

MichaelRHall

Serviio newbie

Posts: 6

Joined: Thu Feb 06, 2014 12:17 am

Post Thu Feb 06, 2014 6:12 pm

Re: Google Chromecast

Just another observation:

The HLS transcode plays fine on my phone (SG3) with Avia. But when I try to push it to Chromecast, it will not play on Chromecast. When Avia is setup as the remote for Chromecast, then the file is not transcoded. Both my phone and the chromecast are set to use the Google Applecast profile. Thinking that Chomecast was still set to use the Generic profile, I tried modifying the Generic profile to transcode like the Google Applecast profile, but that did not help.

The interesting part is that when Avia is used as a Remote for Plex Media Server, Plex Media Server does not transcode either. Plex Media Server works fine when played on Chrome on my pc and then pushed to Chromecast - sound and video both work for everything that I've tried. But with Avia as the remote with Plex Media Server as the source and Chromecast as the target, Plex Media Server does not transcode.
<<

MichaelRHall

Serviio newbie

Posts: 6

Joined: Thu Feb 06, 2014 12:17 am

Post Tue Feb 11, 2014 12:47 am

Re: Google Chromecast

OK, I got Chromecast working with Serviio transcoding to matroska while using the "Google AllCast" profile provided by mightymouse2045 earlier in this tread.

It requires a bit of hack, but it works. I saw a similar work around for a different Serviio limitation, check out the following for some related background on the work around: viewtopic.php?f=11&t=2956&start=30#p34000

The work around uses perl and the "ServiioService.exe.vmoptions" file (not sure if the feature to use "Dffmpeg.location" in ServiioService.exe.vmoptions was removed in Serviio version 1.4, but it definitely works in 1.3.1).

- On windows, install ActivePerl --> http://www.activestate.com/activeperl/downloads (for example in C:\Perl\)

- Edit "ServiioService.exe.vmoptions" file and change the Dffmpeg.location variable to use a ffmpeg wrapper in perl script, like this:
(use your own Serviio install path)

  Code:
     -Xmx512m
     -Dffmpeg.location="c:\perl64\bin\perl.exe c:\progra~1\Serviio\serviio-ffmpeg.pl"


- Create a perl script for example on "c:\progra~1\Serviio\serviio-ffmpeg.pl" folder path, contains the following code:

  Code:
     #!perl

     use strict;

     my $args = '';

     foreach my $arg (@ARGV) {
       $args .= "\"$arg\" ";
     }

     # replaces mpegts with matroska
     if ($args =~ /^(.*)\s\"mpegts\"\s(.*)$/) {
       $args = $1 . ' "matroska" ' . $2;
     }

     my $cmd = "\"C:\\Program Files\\Serviio\\lib\\ffmpeg.exe\" $args";

     open(LOGFILE, ">>C:\\Program Files\\Serviio\\ffmpeg-wrapper.log");

     print LOGFILE scalar localtime . " Starting: " . $cmd . "\n";
     if (system($cmd) != 0) {
       print LOGFILE scalar localtime . " Failed: " . $cmd . " with $?\n";
       close (LOGFILE);
       die "Failed\n";
     } else {
       print LOGFILE scalar localtime . " Succeeded: " . $cmd . "\n";
       close (LOGFILE);
     }


The above work around has worked for all videos that I've tried: avi, mkv, mp4, mov. Plays both the video and audio in sync with no stuttering of play back.

The only issue that I've seen is the length of the movie is shown at over 347 hours for all movies, so determining how much time is remaining in the movie would be difficult.

It seems ffmpeg has no problems transcoding to matroska and most modern players have no problems playing matroska, I'm not sure why Serviio does not allow it.
<<

jvskill

Serviio newbie

Posts: 8

Joined: Mon Dec 16, 2013 10:58 pm

Post Tue Feb 11, 2014 2:32 am

Re: Google Chromecast

I followed your instructions with no success, but I did see this error in the general log though:

2014-02-10 20:23:43,892 ERROR [MediaServer] FFMPEG not found. Serviio will not work properly.

Could this be breaking your solution? How would I fix this, since it looks like FFMPEG.exe is located in the lib folder as expected.
<<

MichaelRHall

Serviio newbie

Posts: 6

Joined: Thu Feb 06, 2014 12:17 am

Post Tue Feb 11, 2014 4:28 am

Re: Google Chromecast

By setting the -Dffmpeg.location variable in ServiioService.exe.vmoptions, you are telling Serviio to use a different path for FFMPEG. What normally happens when Servioo transcodes a file is that Serviio calls FFMPEG to do the work of transcoding. Serviio calls FFMPEG with a rather long parameter specifying the transcoding.

The call with the parameter looks something like this:
"C:\Program Files\Serviio\lib\ffmpeg.exe" "-threads" "2" "-i" "G:\New\myvideo.mkv" "-y" "-threads" "2" "-c:v" "libx264" "-profile:v" "baseline" "-level" "3" "-preset" "veryfast" "-b:v" "1200k" "-maxrate:v" "1200k" "-bufsize:v" "1200k" "-crf" "10" "-r" "24000/1001" "-g" "15" "-bsf:v" "h264_mp4toannexb" "-flags" "-global_header" "-c:a" "libmp3lame" "-b:a" "320k" "-ac" "2" "-map" "0:0" "-map" "0:1" "-sn" "-f" "mpegts" "C:\TEMP\Serviio\transcoding-temp-12093-cast2-ORIGINAL.stf"

But we don't want it to convert to "mpegts", we want "matroska". So we need to change "mpegts" to be "matroska", so that it looks like:
"C:\Program Files\Serviio\lib\ffmpeg.exe" "-threads" "2" "-i" "G:\New\myvideo.mkv" "-y" "-threads" "2" "-c:v" "libx264" "-profile:v" "baseline" "-level" "3" "-preset" "veryfast" "-b:v" "1200k" "-maxrate:v" "1200k" "-bufsize:v" "1200k" "-crf" "10" "-r" "24000/1001" "-g" "15" "-bsf:v" "h264_mp4toannexb" "-flags" "-global_header" "-c:a" "libmp3lame" "-b:a" "320k" "-ac" "2" "-map" "0:0" "-map" "0:1" "-sn" "-f" "matroska" "C:\TEMP\Serviio\transcoding-temp-12093-cast2-ORIGINAL.stf"

How do we do that? Well, Serviio won't allow transcoding to matroska, so we have to change the parameter, when Serviio is calling FFMPEG, with a script. So with the Dffmpeg.location variable, we need to tell Serviio to call a script that will transform the first string above into the second and then run the transcoding. So -Dffmpeg.location="c:\perl64\bin\perl.exe c:\progra~1\Serviio\serviio-ffmpeg.pl" tells Serviio to use "c:\perl64\bin\perl.exe c:\progra~1\Serviio\serviio-ffmpeg.pl" as the location for FFMPEG. So when Serviio thinks it's calling FFMPEG to do the transcoding, it will instead launch a Perl script that transforms the parameter, the first string above, into the second and then runs the transcoding.



So, about the error you are encountering, Serviio is saying what ever you put in for the Dffmpeg.location variable is not valid. Some things to check:
1 - Did you install Perl? If so, what is the path to Perl? Is it "c:\perl64\bin\perl.exe"? If not, you'll need to change the Dffmpeg.location variable to your path.
2 - Where did you create the serviio-ffmpeg.pl script? Was it "c:\progra~1\Serviio\serviio-ffmpeg.pl"? If not, you'll need to change the Dffmpeg.location variable to your path.
3 - Look in the serviio-ffmpeg.pl script, there is a command that calls ffmpeg.exe, is the path on your PC the same as the one in the script? If not, you'll need to change the script to the correct path.

I hope this helps!
<<

jvskill

Serviio newbie

Posts: 8

Joined: Mon Dec 16, 2013 10:58 pm

Post Thu Feb 13, 2014 12:12 am

Re: Google Chromecast

Here's some screenshots to see how I implemented your fix:

Image

Image

Image

Image

Plus the error when I tried for all 3 of these files. 1 AVI (not previously working, didn't work), 1 MKV (not previously working, didn't work), and 1 MP4, (previously worked, didn't work)

  Code:
2014-02-12 18:02:48,488 WARN  [ResourceDeliveryProcessor] Invalid request, sending back 500 error
org.serviio.dlna.UnsupportedDLNAMediaFileFormatException: No media description available for required version: AVC_TS_MP_SD_AAC_MULT5_ISO
   at org.serviio.delivery.resource.AbstractDeliveryEngine.findMediaInfoForFileProfile(AbstractDeliveryEngine.java:292)
   at org.serviio.delivery.resource.AbstractDeliveryEngine.getMediaInfoForMediaItem(AbstractDeliveryEngine.java:127)
   at org.serviio.delivery.MediaResourceRetrievalStrategy.retrieveResourceInfo(MediaResourceRetrievalStrategy.java:181)
   at org.serviio.delivery.ResourceDeliveryProcessor.deliverContent(ResourceDeliveryProcessor.java:80)
   at org.serviio.upnp.webserver.ResourceTransportRequestHandler.handleRequest(ResourceTransportRequestHandler.java:86)
   at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:61)
   at org.apache.http.protocol.HttpService.doService(HttpService.java:293)
   at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:77)
   at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:212)
   at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:192)


Also, the ffmpeg-wrapper.log did not get built. I can get the more detailed logs if needed.
<<

frer

Serviio newbie

Posts: 4

Joined: Sun Mar 24, 2013 10:35 pm

Post Thu Feb 13, 2014 2:53 am

Re: Google Chromecast

Hi,

I'm not an expert at all with Serviio so sorry if this has been answered before in this thread. I am trying configuring Chromecast with Avia. With the AllCast, SmartCast and AppleCast I'm able to play MP4s and MKVs which is great. Unfortunately .AVIs do not play at all. I've tried the Perl solution that is suggested by MichaelRHall but to no avail.

Have I missed something in this thread or does anyone know how I can try to debug the problem?

Thanks

PS: When I modify the profile in the console for the Avia device and save. As soon as I exit the console and go back later, the profile is reverted to the generic profile. Any idea why?
<<

marinos35

Serviio newbie

Posts: 4

Joined: Fri Sep 23, 2011 1:13 pm

Post Thu Feb 13, 2014 3:00 pm

Re: Google Chromecast

To clarify some things

Chromecast supports mainly
The Default Media Receiver supports the following media types:

Video codecs: H.264 High Profile Level 4.1, 4.2 and 5, VP8
Audio decoding: HE-AAC, LC-AAC, CELT/Opus, MP3, Vorbis
Image formats: BMP, GIF, JPEG, PNG, WEBP
Containers: MP4, WebM


When someone develops a receiver app for chromecast (like Avia did) they can choose if they want to add some additional support
Media Player Library

The Google Cast SDK includes a media player library that simplifies support for other scenarios that require DRM or Adaptive Bitrate Streaming. You can use this library in conjunction with a Custom Receiver to add support for the following media types:

Containers: MPEG-DASH, SmoothStreaming, HTTP Live Streaming (HLS)
Level 1 DRM support: Widevine, PlayReady
Subtitles:
TTML - Timed Text Markup Language
WebVTT - Web Video Text Tracks

Note: The Media Player Library is currently in beta release.


Avia probably hasn't added the Media Player Library, so their receiver mainly supports (as well as the default receiver) only the first quoted formats

I'll also try to create a transcoding profile, so I thought I should give here some info of the support limitations
<<

MichaelRHall

Serviio newbie

Posts: 6

Joined: Thu Feb 06, 2014 12:17 am

Post Thu Feb 13, 2014 6:01 pm

Re: Google Chromecast

jvskill - Your setup looks very similar to mine. I encountered that error when both Avia and Chromecast were not both set to the "Google AllCast" profile - for me it was when just Avia was set to use the "Google AllCast" and Chromecast was not set to use any Profile.

A related issue is that Serviio does not seem to show the Chromecast device in the Serviio Console Status. The way I got around this issue was by changing IP addresses. Serviio could see my phone as Avia Media Renderer and my PC as an Unrecognized Device. But did not show Chromecast in the Serviio Console Status list. So I changed the IP Address on my PC by messing with the router DHCP list so that it tied my PC's MAC address to a new IP address (internal to my network). Serviio Console Status then saw my PC on the new IP Address, but left the old IP Address that the PC used to be on in the Serviio Console Status list, even though it was not being used. Then I went back to the router and tied Chromecast (by MAC address) to that IP Address. Set both the IP Address of Chromecast, and my phone to "Google AllCast". Restarted Serviio Service and then it worked.

So there does seem to be an issue with Serviio recognizing the Chromecast. But luckily Serviio doesn't fully clean up its list.
<<

MichaelRHall

Serviio newbie

Posts: 6

Joined: Thu Feb 06, 2014 12:17 am

Post Thu Feb 13, 2014 6:24 pm

Re: Google Chromecast

jvskill - One thing I noticed about your setup that will cause problems is the space in the Dffmpeg.location variable in ServiioService.exe.vmoptions. You have -Dffmpeg.location="c:\perl64\bin\perl.exe C:\Program Files\Serviio\serviio-ffmpeg.pl" where I have -Dffmpeg.location="c:\perl64\bin\perl.exe c:\progra~1\Serviio\serviio-ffmpeg.pl". The space in "Program Files" will cause problems.
<<

frer

Serviio newbie

Posts: 4

Joined: Sun Mar 24, 2013 10:35 pm

Post Sat Feb 15, 2014 1:26 am

Re: Google Chromecast

Hi again,

As mentioned in my earlier post, mp4s and mkvs are working fine with the generic profile. AVIs don't work though so I guess I only need transcoding for these. I tried modifying the Chromecast profile and changing the video decoding for:

  Code:
      <Transcoding>
         <Video targetContainer="mpegts" targetVCodec="h264" targetACodec="mp3" aBitrate="320" forceStereo="true">
            <Matches container="avi" />
         </Video>
         <Audio targetContainer="mp3" aBitrate="320">
            <Matches container="flac" />
            <Matches container="ogg" />
            <Matches container="adts" />
            <Matches container="mp2" />
            <Matches container="wavpack" />
            <Matches container="mpc" />
            <Matches container="ape" />
         </Audio>
      </Transcoding>
      <OnlineTranscoding>
         <Video targetContainer="mpegts" targetVCodec="h264" targetACodec="mp3" aBitrate="320" forceStereo="true">
            <Matches container="avi" />
         </Video>
      </OnlineTranscoding>
      <HardSubsTranscoding>
         <Video targetContainer="mpegts" targetVCodec="h264" targetACodec="mp3" aBitrate="320" forceStereo="true"/>
      </HardSubsTranscoding>


Still I get an error for Unsupported file format in Avia and chromecast. Here is the log:

  Code:
2014-02-14 20:01:49,657 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.10.102, Profile=Google ChromeCast'
2014-02-14 20:01:49,658 DEBUG [ResourceDeliveryProcessor] Request for resource 646 and type 'MEDIA_ITEM' received
2014-02-14 20:01:49,658 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 646 (local)
2014-02-14 20:01:49,671 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 646, format AVC_TS_MP_SD_MPEG1_L3_ISO and profile Google ChromeCast
2014-02-14 20:01:49,672 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file The.Walking.Dead.S01E01.Days.Gone.Bye.HDTV.XviD-FQM.avi
2014-02-14 20:01:49,672 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file The.Walking.Dead.S01E01.Days.Gone.Bye.HDTV.XviD-FQM.avi: AVC_TS_MP_SD_MPEG1_L3_ISO
2014-02-14 20:01:49,675 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 646 (local)
2014-02-14 20:01:49,677 DEBUG [VideoDeliveryEngine] Delivering item '646' for client 'Identifier=192.168.10.102, Profile=Google ChromeCast'
2014-02-14 20:01:49,677 DEBUG [VideoDeliveryEngine] Delivering file 'The.Walking.Dead.S01E01.Days.Gone.Bye.HDTV.XviD-FQM.avi' using transcoding
2014-02-14 20:01:49,677 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'Identifier=192.168.10.102, Profile=Google ChromeCast'
2014-02-14 20:01:49,683 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: E:\Videos\The Walking Dead\Season 1\The.Walking.Dead.S01E01.Days.Gone.Bye.HDTV.XviD-FQM.avi
2014-02-14 20:01:49,683 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\bin\\..\lib/ffmpeg.exe -threads 2 -i E:\Videos\The Walking Dead\Season 1\The.Walking.Dead.S01E01.Days.Gone.Bye.HDTV.XviD-FQM.avi -y -threads 2 -c:v libx264 -profile:v baseline -level 3 -preset veryfast -crf 10 -r 24000/1001 -g 15 -bsf:v h264_mp4toannexb -flags -global_header -c:a copy -map 0:0 -map 0:1 -sn -f mpegts C:\Windows\TEMP\Serviio\transcoding-temp-646-cast2-ORIGINAL.stf
2014-02-14 20:01:49,725 DEBUG [LocalContentCacheDecorator] Stored entry in the cache (local_default), returning it
2014-02-14 20:01:49,738 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message
2014-02-14 20:01:49,919 DEBUG [ServiioHttpService] Incoming request from /192.168.10.110:48873: POST /serviceControl HTTP/1.1, headers = [User-Agent: Android/4.4.2 UPnP/1.0 Cling/2.0,Soapaction: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse",Content-Type: text/xml;charset="utf-8",Host: 192.168.10.100:8895,Content-Length: 489]]
2014-02-14 20:01:49,919 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.10.110
2014-02-14 20:01:49,920 DEBUG [ServiceControlRequestHandler] ServiceControl request received for action '"urn:schemas-upnp-org:service:ContentDirectory:1#Browse"' from 192.168.10.110
2014-02-14 20:01:49,921 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.10.110
2014-02-14 20:01:49,928 DEBUG [ContentDirectory] Browse() called for renderer aVia Media Renderer (profile cast2) with parameters: objectID = I_F^FOL_R1, browseFlag = BrowseDirectChildren, filter = *, startIndex = 200, count = 20, sortCriteria = +dc:title
2014-02-14 20:01:50,000 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:dial-multiscreen-org:service:dial:1 from address /192.168.10.110:49468s
2014-02-14 20:01:50,458 DEBUG [ImageDeliveryEngine] Retrieving resource information for item 1912 and profile Google ChromeCast
2014-02-14 20:01:50,458 DEBUG [ImageDeliveryEngine] Getting media info for transcoded versions of file echo.JPG
2014-02-14 20:01:50,469 DEBUG [LocalContentCacheDecorator] Stored entry in the cache (local_default), returning it
2014-02-14 20:01:50,500 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message
2014-02-14 20:01:51,004 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:dial-multiscreen-org:service:dial:1 from address /192.168.10.110:49468s
2014-02-14 20:01:51,204 DEBUG [FileBasedTranscodingDeliveryStrategy] Sending transcoding stream
2014-02-14 20:01:51,205 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file The.Walking.Dead.S01E01.Days.Gone.Bye.HDTV.XviD-FQM.avi: AVC_TS_MP_SD_MPEG1_L3_ISO
2014-02-14 20:01:51,257 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2014-02-14 20:01:51,257 DEBUG [GETMethodProcessor] Stream entity has length: 50000000000
2014-02-14 20:01:51,259 DEBUG [ResourceTransportRequestHandler] Creating entity with chunked transfer
2014-02-14 20:01:51,259 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [[Content-Type: video/mpeg,Date: Sat, 15 Feb 2014 01:01:51 GMT,Server: Windows 7, UPnP/1.0 DLNADOC/1.50, Serviio/1.4,Cache-control: no-cache,Content-Range: bytes 0-49999999999/50000000000,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
2014-02-14 20:01:52,010 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:dial-multiscreen-org:service:dial:1 from address /192.168.10.110:49468s
2014-02-14 20:01:52,350 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve media information for file: E:\Google Drive\Multimedia\5754 Somerled\047.AVI
2014-02-14 20:01:52,429 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\bin\\..\lib/ffmpeg.exe -i E:\Google Drive\Multimedia\5754 Somerled\047.AVI
2014-02-14 20:01:53,012 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:dial-multiscreen-org:service:dial:1 from address /192.168.10.110:49468s
2014-02-14 20:01:53,421 DEBUG [WebServer] I/O error: Connection reset by peer: socket write error



Any idea what is wrong with my setup or how I can get these to work?

THanks
<<

mmarauder

Streaming enthusiast

Posts: 40

Joined: Sat Jan 28, 2012 4:02 pm

Location: VA

Post Sat Feb 15, 2014 3:24 am

Re: Google Chromecast

I've gone through every option in this forum, except for the perl idea( i;m running on a linux software nas and didnt feel like with messing with that).
The other renderr options did not change anything for me. I'm not able to stream any MKV or AVI. I can however play mp4 fine. This isn't helpful for me as 95% of my files are mkv or avi.
I've given my chromecast a static lease through my firewall and it doesn't show up in serviio. I'm using serviio 1.4 Any further developments now the SDk has been released?
<<

will

DLNA master

Posts: 2120

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sat Feb 15, 2014 7:13 am

Re: Google Chromecast

Chromecast won't show up in the console because it isn't a DLNA device. You have to give a DLNA device an IP, and then reallocate that IP to the Chromecast.

Tbh, Chromecast isn't designed with DLNA or transcoding in mind. For it to work reliability will require some coordinated integration to both Serviio and the DLNA controller apps. At a minimum Serviio would need to try and discover Chromecast devices and add them to the console so that a profile can be assigned. Luckily the CDS API that ServiiGo (and MediaBrowser) uses passes the parameter directly, so while I have quite a few things to implement it should be slightly easier to get things up and running with ServiiGo, but the SDK was only released on Thursday night for Android so have only had a quick look.
Will
Beta Tester Group
ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: More info

Player: Sony BDP S370 | Server: Debian 6.0 x86
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play
<<

bgonev

Serviio newbie

Posts: 4

Joined: Wed Nov 30, 2011 7:13 pm

Post Tue Sep 23, 2014 12:42 pm

Re: Google Chromecast

Has anyone found a solution for this ? Has anyone successfully created a working profile for Chromecast ?
<<

Techlyfe

Serviio newbie

Posts: 1

Joined: Mon Nov 17, 2014 3:12 am

Post Wed Nov 19, 2014 3:36 am

Re: Google Chromecast

bgonev wrote:Has anyone found a solution for this ? Has anyone successfully created a working profile for Chromecast ?


I simply got around this issue by using BubbleUpnp server and android app, which hooks into Serviio. All my issues with whatever format wasnt supported became a non issue. Damn, I just relized how late I am to this thread. Back to lurking, nothing to see here folks.
<<

vtaylor

Serviio newbie

Posts: 1

Joined: Tue Jan 06, 2015 11:46 am

Post Tue Jan 06, 2015 12:02 pm

Re: Google Chromecast

Salut Techlyfe

My first post.

Can you expand on what you did, please ? I'm trying to get (or see) Servioo/Bubbleupnp working with my Chromecast. Trying to see as the media servers are on my Syno DS214 and I don't know if it is up to transcoding. Anyway, I installed Servioo because I didn't know how to install ffmpeg/H264 for the Bubbleupnp Syno - the Bubbleupnp page says "ffmpeg has no libx264 support". I was hoping Servioo would do the transcoding for me but apparently not.

Any pointers, please ?

Thanks

Vernon
<<

ericlmccormick

Serviio newbie

Posts: 2

Joined: Fri Dec 04, 2015 11:55 pm

Post Fri Jul 08, 2016 1:39 pm

Re: Google Chromecast

Looks like it has been a while since someone posted here but it doesn't look like a real solution was ever found. Using BubbleUPNP bypasses the purpose of using serviio in the first place as it put the transcoding on my phone, killing my battery. I am running Serviio on my Synology that has hardware transcoding and I stream everything to my Chromecast via LocalCast and/or AllCast. Everything works great for MP4 and MKV files but when trying to load a AVI, it says not supported. I feel like there should be a simple way that tells Serviio to transcode everything no mater what the file type and no matter what the device to h264 and mp3/ACC.
Maybe this is making a specific profile or editing the generic profile but it looks from previous post that no one has a working profile. If you have one, please post your profiles.xml file.
<<

freaknik

User avatar

DLNA master

Posts: 105

Joined: Thu Mar 27, 2014 2:05 pm

Post Mon Jul 18, 2016 2:14 am

Re: Google Chromecast

I have a chromecast and use a phone with the chrome app and go to my mediabrowser and cast to chromecast, it transcodes everything perfectly.
<<

carpler

Serviio newbie

Posts: 4

Joined: Fri Aug 25, 2017 8:14 am

Post Tue Sep 12, 2017 12:22 pm

Re: Google Chromecast

I'm asking if someone found a solution to use Serviio directly with Chromecast (also with transcoding function).
I'm tried to use Bubblupnp and it works, but it's necessary to install BubbleUpnp Server on the same machine where Serviio is, and this is not a solution I like so much...
In this thread there was many attempts to let Serviio transcode and work directly with Chromecast, but it seems to me that non finally solution was found.

What I've not understand is if the paid version can help on this.
For example: Serviigo on android phones is compatible with Chromecast? There is another app (free or paid) that can be used?

Not a problem to buy the Pro version of Serviio, but not so much information on official site or here in the forum...
<<

freaknik

User avatar

DLNA master

Posts: 105

Joined: Thu Mar 27, 2014 2:05 pm

Post Mon Oct 09, 2017 3:03 pm

Re: Google Chromecast

Dudes I have a profile that is working for most of my vids. I gleamed it from mightymouses examples, thank you sir.

Here it is:

  Code:
<Profile id="cast2" name="Chromecast" extendsProfileId="1">
      <Detection>
         <UPnPSearch>
            <ModelName>Chromecast</ModelName>
         </UPnPSearch>
      </Detection>
      <DeviceDescription>
         <FriendlyName>Serviio ({computerName}): 1</FriendlyName>
         <ModelName>Chromecast</ModelName>
      </DeviceDescription>
      <Transcoding>
         <Video targetContainer="mpegts" targetVCodec="h264" maxVBitrate="4000" targetACodec="mp3" aBitrate="320" forceStereo="true" maxHeight="720" forceInheritance="true">
            <Matches container="*" />
         </Video>
         <Audio targetContainer="mp3" aBitrate="320">
            <Matches container="mp4" />
           <Matches container="flac" />
         <Matches container="ogg" />
         <Matches container="lpcm" />
         <Matches container="adts" />
         <Matches container="mp3" codec="mp2" />
         <Matches container="wv" />
         <Matches container="mpc" />
            <Matches container="ape" />
            <Matches container="dsf" />
            <Matches container="wav" />
            <Matches container="mp4" codec="alac" />
         </Audio>
      </Transcoding>
      <OnlineTranscoding>
         <Video targetContainer="mpegts" targetVCodec="h264" targetACodec="mp3" maxVBitrate="4000" aBitrate="320" forceStereo="true">
            <Matches container="*" />
         </Video>
      </OnlineTranscoding>
    </Profile>


And here is mediainfo for a movie that doesn't play on chromecast. It transcodes into segments but they don't play on the tv:

  Code:
General
Complete name               : E:\aint you seen my movies\over.the.top-vRs.avi
Format                      : AVI
Format/Info                 : Audio Video Interleave
File size                   : 699 MiB
Duration                    : 1h 33mn
Overall bit rate            : 1 045 Kbps
Writing application         : VirtualDubMod 1.5.4.1 (build 2178/release)
Writing library             : VirtualDubMod build 2178/release

Video
ID                          : 0
Format                      : MPEG-4 Visual
Format profile              : Advanced Simple@L5
Format settings, BVOP       : 1
Format settings, QPel       : No
Format settings, GMC        : No warppoints
Format settings, Matrix     : Default (H.263)
Muxing mode                 : Packed bitstream
Codec ID                    : XVID
Codec ID/Hint               : XviD
Duration                    : 1h 33mn
Bit rate                    : 846 Kbps
Width                       : 640 pixels
Height                      : 272 pixels
Display aspect ratio        : 2.35:1
Frame rate                  : 23.976 fps
Color space                 : YUV
Chroma subsampling          : 4:2:0
Bit depth                   : 8 bits
Scan type                   : Progressive
Compression mode            : Lossy
Bits/(Pixel*Frame)          : 0.203
Stream size                 : 566 MiB (81%)
Writing library             : XviD 1.2.0.dev47 (UTC 2006-11-01)

Audio
ID                          : 1
Format                      : AC-3
Format/Info                 : Audio Coding 3
Format profile              : Dolby Digital
Mode extension              : CM (complete main)
Format settings, Endianness : Big
Codec ID                    : 2000
Duration                    : 1h 33mn
Bit rate mode               : Constant
Bit rate                    : 192 Kbps
Channel(s)                  : 2 channels
Channel positions           : Front: L R
Sampling rate               : 48.0 KHz
Compression mode            : Lossy
Delay relative to video     : 7ms
Stream size                 : 129 MiB (18%)
Alignment                   : Split accross interleaves
Interleave, duration        : 83 ms (2.00 video frames)
Interleave, preload duratio : 500 ms
Language                    : English




I don't get it. Here is mediainfo for one of the transcoded segments:

  Code:
General
ID                          : 1 (0x1)
Complete name               : C:\Windows\Temp\Serviio\transcoding-temp-40bd7803e16e0763df8aaf183432fba2.stf\segment00000.ts
CompleteName_Last           : C:\Windows\Temp\Serviio\transcoding-temp-40bd7803e16e0763df8aaf183432fba2.stf\segment00561.ts
Format                      : MPEG-TS
File size                   : 842 MiB
Duration                    : 1h 33mn
Overall bit rate mode       : Variable
Overall bit rate            : 1 258 Kbps

Video
ID                          : 256 (0x100)
Menu ID                     : 1 (0x1)
Format                      : AVC
Format/Info                 : Advanced Video Codec
Format profile              : Baseline@L3
Format settings, CABAC      : No
Format settings, ReFrames   : 1 frame
Codec ID                    : 27
Duration                    : 1h 33mn
Width                       : 640 pixels
Height                      : 272 pixels
Display aspect ratio        : 2.35:1
Frame rate mode             : Variable
Color space                 : YUV
Chroma subsampling          : 4:2:0
Bit depth                   : 8 bits
Scan type                   : Progressive
Writing library             : x264 core 152 r2851 ba24899
Encoding settings           : cabac=0 / ref=1 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=2 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=3 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / weightp=0 / keyint=15 / keyint_min=1 / scenecut=40 / intra_refresh=0 / rc_lookahead=10 / rc=crf / mbtree=1 / crf=10.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=1000 / vbv_bufsize=1000 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00

Audio
ID                          : 257 (0x101)
Menu ID                     : 1 (0x1)
Format                      : AAC
Format/Info                 : Advanced Audio Codec
Format version              : Version 4
Format profile              : LC
Muxing mode                 : ADTS
Codec ID                    : 15
Duration                    : 1h 33mn
Bit rate mode               : Variable
Channel(s)                  : 2 channels
Channel positions           : Front: L R
Sampling rate               : 48.0 KHz
Compression mode            : Lossy
Delay relative to video     : 11ms

Menu
ID                          : 4096 (0x1000)
Menu ID                     : 1 (0x1)
Duration                    : 1h 33mn
List                        : 256 (0x100) (AVC) / 257 (0x101) (AAC)
Service name                : Service01
Service provider            : FFmpeg
Service type                : digital television



Chromecast needs a lot of help. Other avi xvids play, other ac3 gets transcoded and plays, but not Over The Top. I tried playing it with mediabrowser, localcast, serviigo to localcast, and it wont play on the tv only on my phone (android). :mrgreen: Thanks to any response and sorry if this needs to be its own thread but I think it goes here, I am sure others are having problems with chromecast as there is no default serviio profile.
Previous

Return to Transcoding

Who is online

Users browsing this forum: Bing [Bot] and 4 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.