Page 1 of 1

Is it possible to direct stream HEVC to chromecast ultra?

PostPosted: Tue Jan 18, 2022 1:42 pm
by codecjunkie
Hi!
For starters, has used serviio for a couple of years now (running 1.10.1) and it has worked flawlessly direct streaming my movie collection to chromecast 2nd gen. I love it :D
Video files:
mp4 container
x264 4.1@high
first audio aac stereo
second audio ac3 5.1
no subtitles

I'm thinking of reencoding all bluray movies to same specs, replacing video stream with x265 8 bit main and direct stream to my chromecast ultra. Has done some tests and when casting AVC movies to chromecast ultra, application-profile "chromecast" is used and everything works. When casting HEVC nothing happens and I cannot find any information in logfile.
If I add below to "chromecast" section in application-profiles.xml....

<Video targetContainer="applehttp" >
<Matches container="mp4" vCodec="h265" aCodec="aac" />
</Video>

...this shows up in logfile...

2022-01-18 13:41:52,797 DEBUG [VideoDAOImpl] Reading a Video (id = 59001)
2022-01-18 13:41:52,798 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 59001 and profile Chromecast
2022-01-18 13:41:52,798 WARN [VideoDeliveryEngine] Cannot get media info for transcoded file "A Quiet Place (2018) x265.mp4": AppleHttp video file A Quiet Place (2018) x265.mp4 does not match any supported DLNA profile
2022-01-18 13:41:52,798 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "A Quiet Place (2018) x265.mp4": HLS
2022-01-18 13:41:52,798 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "A Quiet Place (2018) x265.mp4": HLS


Is there some way to make this work?

Re: Is it possible to direct stream HEVC to chromecast ultra

PostPosted: Tue Jan 18, 2022 4:29 pm
by atc98092
It appears that the Chromecast Ultra supports 4K/HDR/DV, so it must support H.265. There should be no need to transcode the video. If you need to transcode the audio, that would be different, but it's possible to transcode only the audio and leave the video alone.

Your transcoding line seems incomplete. The only thing it's accomplishing is changing the container from MP4 to HLS. From what I can find online, your Ultra supports the MP4 container, H.265 video and AAC audio. No transcoding should be required at all.

Re: Is it possible to direct stream HEVC to chromecast ultra

PostPosted: Tue Jan 18, 2022 4:45 pm
by codecjunkie
I agree, this is weird, direct play of same file works fine through plex.

If I don't alter application-profiles.xml nothing happens at all, no lines in logfile nothing....
I can't get a grip of what the problem is.

Re: Is it possible to direct stream HEVC to chromecast ultra

PostPosted: Tue Jan 18, 2022 8:03 pm
by codecjunkie
Casting the same movie, only difference between files is video stream x264...

2022-01-18 20:50:47,815 DEBUG [ResourceDeliveryProcessor] Request for resource 58980 and type 'MEDIA_ITEM' received
2022-01-18 20:50:47,815 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 58980 (local)
2022-01-18 20:50:47,815 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 58980)
2022-01-18 20:50:47,815 DEBUG [VideoDAOImpl] Reading a Video (id = 58980)
2022-01-18 20:50:47,815 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 58980, format AVC_MP4_MP_HD_1080i_AAC and profile Chromecast
2022-01-18 20:50:47,816 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 58980 (local)
2022-01-18 20:50:47,816 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 58980)
2022-01-18 20:50:47,816 DEBUG [VideoDAOImpl] Reading a Video (id = 58980)
2022-01-18 20:50:47,816 DEBUG [VideoDeliveryEngine] Delivering item '58980' for client 'Identifier=c41a36ded2c343ddb5aef937c724d868, Profile=Chromecast, Name=Remote client'
2022-01-18 20:50:47,817 DEBUG [VideoDeliveryEngine] Delivering file 'A Quiet Place (2018).mp4' in native format