Page 1 of 1

HEVC streaming problems

PostPosted: Sun Jan 08, 2023 8:49 pm
by TonyAJ
Hello,
I use Serviio for years and I didn't have problems with it until recently. It's installed on a Desktop computer and I watch video files on a Sony KDL-60W630B.
My Serviio is version 2.3
I have videos on iPhone-XR whcih can be recorded as "Most compatible" =H.264 or "High Efficiency" = HEVC (H.265)
Serviio can stream H.264 without any problem.
But when HEVC is streaming I get video playing on Sony TV starting very slow, no sound, then the speed is better for few seconds with audio stuttering, then slow again without audio.
I have also a DJI OM5 gimbal. The iPhone has DJI MIMO software installed which records video in HEVC. These videos are not streamed properly also.
My desktop has i5-3450CPU , 8GB RAM, HDD, windows 10. CPU runs at 40-80% , memory at 50%.
I tried same files on a HP laptop with i5-10300H , 16GB RAM and SSD but I got the same very slow streaming and stuttering.
I used MediaInfo software for these files.
Video-H264 plays fine.
Video-HEVC is slow.
Video-DJIOM5-HEVC is slow.
Please see attached.
Please advise if you have any suggestions how to make HEVC played properly.
Thank you,
Tony

Re: HEVC streaming problems

PostPosted: Sun Jan 08, 2023 10:10 pm
by atc98092
I don't have a Sony TV, but I do have a lot of H.265 videos, either 4K ripped movies or some test videos. I have no issues playing any of them.

However, your TV is a 1080p set, so it's likely it doesn't support H.265. You didn't state which profile Serviio is using for your TV. But it's possible your computer isn't powerful enough to transcode H.265 to H.264, which your TV supports.

Re: HEVC streaming problems

PostPosted: Tue Jan 10, 2023 1:11 am
by TonyAJ
Thank you Dan,
The Tv is a 2014 Sony TV
I would think Serviio is using Profile id="sony2013" name="Sony Bravia TV (2013/14)"
Shouldn't H.265 be transcoded to what Sony TV could play?
Regarding the computer, I have a gaming laptop with i5-10300H , 16GB RAM and SSD, which I think should be powerful enough for transcoding.
But video files are still playing slow and no audio.

Re: HEVC streaming problems

PostPosted: Tue Jan 10, 2023 1:13 am
by TonyAJ
I should mention that the iPhone XR is set to record these videos as 1080p HD at 60fps.
What I get is shown on first post attachements.

Re: HEVC streaming problems

PostPosted: Thu Jan 12, 2023 1:46 am
by TonyAJ
I added the text file with supported fromats for Sony Bravia KDL-60W630B

Re: HEVC streaming problems

PostPosted: Fri Jan 13, 2023 1:21 am
by atc98092
I always have trouble deciphering those format files, but I don't see H.265 support in there. Not that I expected it.

Looking at the "Sony Bravia TV (2013/14)" profile, I do see a line to capture H.265 in any container and transcode it to MPEG-2 video with AC-3 audio. Since it's the first matches line, nothing should be overriding it. I can't say why it's not being transcoded properly for you. As a test, you might try the Roku TV (non-4K) profile. It transcodes the H265 video into H264 with AC-3 audio. If your computer is having issues with transcoding H265 to MPEG-2, making it H264 might be a bit easier for the processor. That profile uses applehttp as the transcoding protocol, but I'm pretty sure the Sony TV will support it. But I could be wrong, and if it doesn't work it doesn't hurt anything.

Re: HEVC streaming problems

PostPosted: Thu Feb 09, 2023 1:20 am
by TonyAJ
I converted the H265 videos to H264 using ffmpeg. But I have the same problem , slow mo & no sound like the original H265.
Other videos H264 recorded by the iPhone are streamed perfectly by Serviio. Why a converted H264 is not streamed properly??
Then I moved the converted H264video on a USB stick and plugged it directly in the TV. It plays correctly !
Note: My desktop w10 media player plays any H264 and H265 videos without any problem.
Please advise if you have any suggestions how to fix this.

Re: HEVC streaming problems

PostPosted: Thu Feb 09, 2023 1:33 am
by atc98092
Well, I've been playing a few HEVC videos on my Shield today, just by accident, and had no issues. I even switched to my Roku Ultra with the same results.

But your comment about it working with a USB drive made me remember an issue I had. I was getting some messages from Kodi that my connection was too slow for the playback, which was odd since both my server and my Shield are wired to my Gigabit network. And I was having an occasional problem with playback. As it turned out, I had two hard drives in my media server that were not working correctly, probably approaching a failure point in the near future. I moved all those media files onto a new hard drive, and all the errors went away. It was also taking 20-30 minutes to reboot the computer, and once the old drives were removed from the computer it was back to booting in less than 30 seconds. So you might use a disc checking program to see if you are experiencing an early hard drive failure.

Re: HEVC streaming problems

PostPosted: Sun Feb 26, 2023 7:16 pm
by TonyAJ
Disk check returned 0 bad sectors.
I got a 2010 Blueray player Sony BDP9x70/SMP-N100 connected to the Sony TV through HDMI.
I connected Serviio to the Blueray and (surprise) it streamed all files h.264 and HEVC.
The downside is that the quality of videos is worse than when Serviio streams directly to the TV.
My network is handled by a router model CGM4140COM. Can this be a problem?
Or is a problem with Serviio transcoding HEVC for "Sony Bravia TV (2013/14)" profile ?

Re: HEVC streaming problems

PostPosted: Sun Feb 26, 2023 7:23 pm
by atc98092
TV manufacturers don't seem to put much effort into their DLNA implementations. I've never had a Sony TV, so can't judge them specifically. Samsung is pretty poor. A Blu Ray player likely has far better DLNA functionality.