Jump to content

H265 codec movies don't work


Recommended Posts

Posted

Hello!

 

Plain and simple problem... I get an error message when I try to play H265 codec movies. Do you need any other log than transcode log?

This is the error message what i see:

"Playback Error
No compatible streams are currently available. Please try again later or contact your system administrator for detail"

Movie codec information:

image.png.1d3bbdbcb4ad0c0ffda6b553d16ad76b.png

 

Emby server run on Windows server 2022 (Emby premiere) and Emby run on HPE Microserver Gen 8 and Processor is Intel(R) Xeon(R) CPU E3-1265L V2 @ 2.50GHz, 2501 Mhz, 4 Core(s), 8 Logical Processor(s).

 

I have also tested this on another computer which is H265 compatible in terms of processor, but it gives the same error. Also tested latest beta version without success. 

I have also tried adjusting various settings without any result. If any essential information was missing, I will fill it in accordingly. 

 

ffmpeg-transcode-b9289f5d-a5f2-47e2-a20e-90f26a775ee8_1.txt

pwhodges
Posted

It would be helpful to have also the server log, and to mention what client you are using.

Paul

Posted

Oh, sorry for the missing info. 

Here is server log also. embyserver.txt

Mainly i use  my LG Oled G3 tv. I also tested this on my other computer using Web browser Edge and Chrome.

 

PS. For example i can play that movie from HPE Microserver if i use VLC. If this information has any value. My Samsung smartphone also plays the movie and I use the Emby client on the phone.

Neminem
Posted

Is your transcoding dir on your NAS ?

09:52:49.667 Output #0, segment, to '\\192.168.10.12\Media\Transcoding_temporary_path\transcoding-temp\472517\472517_%d.ts':
09:52:49.667 Output file #0 does not contain any stream

How have you configured your user ?

image.png.58e4f8a3b02df0c97899c86d48dee4b8.png

Posted (edited)

Yes, transcoding dir located on my NAS like all my media files. It was on my HPE before, but i changed it for testing purpose. 

 

My user config is like yours. This "user" User what you can see in the log file is my admin account. Everything should be allowed by default i think...

image.png.875a4b5b2915cc00f324bbc173c46254.png

Edited by s2mpyLLy
Neminem
Posted (edited)

Hmm ok is it only this file or all h265 files ?

I don't like this error in your logs

Emby.Server.MediaEncoding.Unified.Ffmpeg.FfRunException: Emby.Server.MediaEncoding.Unified.Ffmpeg.FfRunException: Error starting ffmpeg
-loglevel +timing -y -print_graphs_file "C:\Users\administrator.KOTI\AppData\Roaming\Emby-Server\programdata\logs\ffmpeg-transcode-3669cdbd-2ec9-4126-989d-df68e4174431_1graph.txt" -copyts -start_at_zero -f matroska,webm -i "\\192.168.10.12\Media\Elokuvat\The Thomas Crown Affair\The Thomas Crown Affair.mkv" -vn -an -sn -max_delay 5000000 -avoid_negative_ts disabled -f segment -map_metadata -1 -map_chapters -1 -segment_format mpegts -segment_list "\\192.168.10.12\Media\Transcoding_temporary_path\transcoding-temp\A20DF0\A20DF0.m3u8" -segment_list_type m3u8 -segment_time 00:00:03.000 -segment_list_entry_prefix hls/A20DF0/ -segment_start_number 0 -individual_header_trailer 0 -write_header_trailer 0 -segment_write_temp 1 "\\192.168.10.12\Media\Transcoding_temporary_path\transcoding-temp\A20DF0\A20DF0_%d.ts"

And then exited with this error.

Output file #0 does not contain any stream

As if Emby can't read the file when trying to transcode it.

 

Can you try remuxing the file.

Edited by Neminem
Posted (edited)

I have problem with all h265 files so far. I use handbrake for transcoding files back to H264 format. Then all files work normally. 

Is there any suggestion to avoid those errors? Like i said, i got same errors and problems with new server installation on Windows. One thing what I also tried, i copied file localy to HPE Microserver to avoid playing files over network. Did not work either.

Edited by s2mpyLLy
Neminem
Posted (edited)

When transcoding them back to h264 is the file still a MKV ?

And does it still have all subtitles ?

Edited by Neminem
Neminem
Posted (edited)

Does this file play via Emby, this is just a test.

video-h265.mkv

Found it here h265 Files this file plays great on my test setup using a browser.

Edited by Neminem
Posted (edited)

Yes, file is on a MKV format and no, subtiles not working anymore after conversion. Don't know much about these things, but sometimes the file has separate subtitles (srt file), but they don't work anymore after conversion either. 

 

This movie you see in the log file has burned subtitles. Here i get out using VLC.

image.png.2f20026c68ed3efc457d26296d4d9aa6.png

 

 

EDIT: Yes, yout test sampe did work. So, this might be subtiles related, even subtiles are burned?

Edited by s2mpyLLy
Neminem
Posted

Can you try the MKV file I posted in your system and see if that plays.

It does not contain DVD_Subtitles. 

Happy2Play
Posted

Looks like ffprobe is choking on the files so Emby will not get media info to be able to play.

transcode log first post no media info ie no streams/format

Quote

{"Protocol":"File","Id":"dc199d5bfe1ae6c333f93063f8f989c1","Path":"\\\\192.168.10.12\\Media\\Elokuvat\\The Thomas Crown Affair\\The Thomas Crown Affair.mkv","Type":"Default","Container":"mkv","Size":0,"Name":"The Thomas Crown Affair","IsRemote":false,"HasMixedProtocols":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[],"Formats":[],"RequiredHttpHeaders":{},"AddApiKeyToDirectStreamUrl":false,"ReadAtNativeFramerate":false,"ItemId":"624547"}

server log

Emby.Server.MediaEncoding.Unified.Ffmpeg.FfRunException: ffprobe failed - streams and format are both null: -i 

 

2025-08-12 11:33:16.328 Error App: Error in ffprobe
	*** Error Report ***
	Version: 4.8.11.0
	Command line: C:\Users\administrator.KOTI\AppData\Roaming\Emby-Server\system\EmbyServer.dll
	Operating system: Microsoft Windows 10.0.20348
	Framework: .NET 6.0.36
	OS/Process: x64/x64
	Runtime: C:/Users/administrator.KOTI/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
	Processor count: 8
	Data path: C:\Users\administrator.KOTI\AppData\Roaming\Emby-Server\programdata
	Application path: C:\Users\administrator.KOTI\AppData\Roaming\Emby-Server\system
	Emby.Server.MediaEncoding.Unified.Ffmpeg.FfRunException: Emby.Server.MediaEncoding.Unified.Ffmpeg.FfRunException: ffprobe failed - streams and format are both null: -i file:"\\192.168.10.12\Media\Elokuvat\The Thomas Crown Affair\The Thomas Crown Affair.mkv" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format -show_data
ffprobe version 5.1-emby_2023_06_25 Copyright (c) 2007-2022 the FFmpeg developers and softworkz for Emby LLC
	  built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
	[dvdsub @ 0000016e45a3be80] [IMGUTILS @ 00000064f0dff5b0] Picture size 0x0 is invalid
	[matroska,webm @ 0000016e45a25e80] Failed to open codec in avformat_find_stream_info
	[dvdsub @ 0000016e45a3dac0] [IMGUTILS @ 00000064f0dff5b0] Picture size 0x0 is invalid
	[matroska,webm @ 0000016e45a25e80] Failed to open codec in avformat_find_stream_info
	[dvdsub @ 0000016e45a3e6c0] [IMGUTILS @ 00000064f0dff5b0] Picture size 0x0 is invalid
	[matroska,webm @ 0000016e45a25e80] Failed to open codec in avformat_find_stream_info
	[dvdsub @ 0000016e45a3f2c0] [IMGUTILS @ 00000064f0dff5b0] Picture size 0x0 is invalid
	[matroska,webm @ 0000016e45a25e80] Failed to open codec in avformat_find_stream_info
	[dvdsub @ 0000016e45a3ff40] [IMGUTILS @ 00000064f0dff5b0] Picture size 0x0 is invalid
	[matroska,webm @ 0000016e45a25e80] Failed to open codec in avformat_find_stream_info
	Input #0, matroska,webm, from 'file:\\192.168.10.12\Media\Elokuvat\The Thomas Crown Affair\The Thomas Crown Affair.mkv':
	  Metadata:
	    title           : The Thomas Crown Affair
	    encoder         : libmakemkv v1.18.1 (1.3.10/1.5.2) win(x64-release)
	    creation_time   : 2025-07-19T13:10:52.000000Z
	  Duration: 01:53:17.17, start: 0.000000, bitrate: 4792 kb/s
	  Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv), 1920x812, SAR 1:1 DAR 480:203, Level 120, 23.98 fps, 23.98 tbr, 1k tbn
	    Metadata:
	      BPS-eng         : 4250383
	      DURATION-eng    : 01:53:17.165375000
	      NUMBER_OF_FRAMES-eng: 162969
	      NUMBER_OF_BYTES-eng: 3611319857
	  Stream #0:1(eng): Audio: aac (LC), 48000 Hz, 5.1, fltp, Start-Time 0.020s (default)
	    Metadata:
	      title           : Surround 5.1
	      BPS-eng         : 500980
	      DURATION-eng    : 01:53:17.162666666
	      NUMBER_OF_FRAMES-eng: 318617
	      NUMBER_OF_BYTES-eng: 425655303
	  Stream #0:2(fin): Subtitle: dvd_subtitle (default)
	    Metadata:
	      BPS-eng         : 7996
	      DURATION-eng    : 01:47:21.048888888
	      NUMBER_OF_FRAMES-eng: 1059
	      NUMBER_OF_BYTES-eng: 6437835
	  Stream #0:3(eng): Subtitle: dvd_subtitle
	    Metadata:
	      BPS-eng         : 9577
	      DURATION-eng    : 01:52:06.501755555
	      NUMBER_OF_FRAMES-eng: 1482
	      NUMBER_OF_BYTES-eng: 8052579
	  Stream #0:4(dan): Subtitle: dvd_subtitle
	    Metadata:
	      BPS-eng         : 7921
	      DURATION-eng    : 01:47:21.048888888
	      NUMBER_OF_FRAMES-eng: 1057
	      NUMBER_OF_BYTES-eng: 6378180
	  Stream #0:5(nob): Subtitle: dvd_subtitle
	    Metadata:
	      BPS-eng         : 7222
	      DURATION-eng    : 01:47:21.048888888
	      NUMBER_OF_FRAMES-eng: 1059
	      NUMBER_OF_BYTES-eng: 5815172
	  Stream #0:6(swe): Subtitle: dvd_subtitle
	    Metadata:
	      BPS-eng         : 7649
	      DURATION-eng    : 01:47:22.050177777
	      NUMBER_OF_FRAMES-eng: 1060
	      NUMBER_OF_BYTES-eng: 6160174
	[dvdsub @ 0000016e45cfd940] [IMGUTILS @ 00000064f0dff7f0] Picture size 0x0 is invalid
	Could not open codec for input stream 2
	
	
{
	

	   at Emby.Server.MediaEncoding.Probing.MediaProbeManager.GetMediaInfoInternal(String inputPath, String primaryPath, MediaProtocol protocol, String userAgent, Boolean extractChapters, String probeSizeArgument, Boolean isAudio, Boolean hasMixedProtocols, CancellationToken cancellationToken)
	   at Emby.Providers.MediaInfo.FFProbeVideoInfo.ProbeVideo[T](MetadataResult`1 metadataResult, MetadataRefreshOptions options, LibraryOptions libraryOptions, CancellationToken cancellationToken)
	   at Emby.Providers.Manager.MetadataService`2.RunCustomProvider(ICustomMetadataProvider`1 provider, MetadataResult`1 itemResult, String logName, MetadataRefreshOptions options, LibraryOptions libraryOptions, RefreshResult refreshResult, CancellationToken cancellationToken)
	Source: Emby.Server.MediaEncoding
	TargetSite: Void MoveNext()

So to me this would suggest something wrong with file header information.

 

Have you tried just remuxing the file with MKVTOOLNIX?

  • Like 1
Posted
2 minutes ago, Neminem said:

Can you try the MKV file I posted in your system and see if that plays.

It does not contain DVD_Subtitles. 

Edited previous post. That sample did work.

 

3 minutes ago, Happy2Play said:

Looks like ffprobe is choking on the files so Emby will not get media info to be able to play.

transcode log first post no media info ie no streams/format

server log

Emby.Server.MediaEncoding.Unified.Ffmpeg.FfRunException: ffprobe failed - streams and format are both null: -i 
2025-08-12 11:33:16.328 Error App: Error in ffprobe
	*** Error Report ***
	Version: 4.8.11.0
	Command line: C:\Users\administrator.KOTI\AppData\Roaming\Emby-Server\system\EmbyServer.dll
	Operating system: Microsoft Windows 10.0.20348
	Framework: .NET 6.0.36
	OS/Process: x64/x64
	Runtime: C:/Users/administrator.KOTI/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
	Processor count: 8
	Data path: C:\Users\administrator.KOTI\AppData\Roaming\Emby-Server\programdata
	Application path: C:\Users\administrator.KOTI\AppData\Roaming\Emby-Server\system
	Emby.Server.MediaEncoding.Unified.Ffmpeg.FfRunException: Emby.Server.MediaEncoding.Unified.Ffmpeg.FfRunException: ffprobe failed - streams and format are both null: -i file:"\\192.168.10.12\Media\Elokuvat\The Thomas Crown Affair\The Thomas Crown Affair.mkv" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format -show_data
ffprobe version 5.1-emby_2023_06_25 Copyright (c) 2007-2022 the FFmpeg developers and softworkz for Emby LLC
	  built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
	[dvdsub @ 0000016e45a3be80] [IMGUTILS @ 00000064f0dff5b0] Picture size 0x0 is invalid
	[matroska,webm @ 0000016e45a25e80] Failed to open codec in avformat_find_stream_info
	[dvdsub @ 0000016e45a3dac0] [IMGUTILS @ 00000064f0dff5b0] Picture size 0x0 is invalid
	[matroska,webm @ 0000016e45a25e80] Failed to open codec in avformat_find_stream_info
	[dvdsub @ 0000016e45a3e6c0] [IMGUTILS @ 00000064f0dff5b0] Picture size 0x0 is invalid
	[matroska,webm @ 0000016e45a25e80] Failed to open codec in avformat_find_stream_info
	[dvdsub @ 0000016e45a3f2c0] [IMGUTILS @ 00000064f0dff5b0] Picture size 0x0 is invalid
	[matroska,webm @ 0000016e45a25e80] Failed to open codec in avformat_find_stream_info
	[dvdsub @ 0000016e45a3ff40] [IMGUTILS @ 00000064f0dff5b0] Picture size 0x0 is invalid
	[matroska,webm @ 0000016e45a25e80] Failed to open codec in avformat_find_stream_info
	Input #0, matroska,webm, from 'file:\\192.168.10.12\Media\Elokuvat\The Thomas Crown Affair\The Thomas Crown Affair.mkv':
	  Metadata:
	    title           : The Thomas Crown Affair
	    encoder         : libmakemkv v1.18.1 (1.3.10/1.5.2) win(x64-release)
	    creation_time   : 2025-07-19T13:10:52.000000Z
	  Duration: 01:53:17.17, start: 0.000000, bitrate: 4792 kb/s
	  Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv), 1920x812, SAR 1:1 DAR 480:203, Level 120, 23.98 fps, 23.98 tbr, 1k tbn
	    Metadata:
	      BPS-eng         : 4250383
	      DURATION-eng    : 01:53:17.165375000
	      NUMBER_OF_FRAMES-eng: 162969
	      NUMBER_OF_BYTES-eng: 3611319857
	  Stream #0:1(eng): Audio: aac (LC), 48000 Hz, 5.1, fltp, Start-Time 0.020s (default)
	    Metadata:
	      title           : Surround 5.1
	      BPS-eng         : 500980
	      DURATION-eng    : 01:53:17.162666666
	      NUMBER_OF_FRAMES-eng: 318617
	      NUMBER_OF_BYTES-eng: 425655303
	  Stream #0:2(fin): Subtitle: dvd_subtitle (default)
	    Metadata:
	      BPS-eng         : 7996
	      DURATION-eng    : 01:47:21.048888888
	      NUMBER_OF_FRAMES-eng: 1059
	      NUMBER_OF_BYTES-eng: 6437835
	  Stream #0:3(eng): Subtitle: dvd_subtitle
	    Metadata:
	      BPS-eng         : 9577
	      DURATION-eng    : 01:52:06.501755555
	      NUMBER_OF_FRAMES-eng: 1482
	      NUMBER_OF_BYTES-eng: 8052579
	  Stream #0:4(dan): Subtitle: dvd_subtitle
	    Metadata:
	      BPS-eng         : 7921
	      DURATION-eng    : 01:47:21.048888888
	      NUMBER_OF_FRAMES-eng: 1057
	      NUMBER_OF_BYTES-eng: 6378180
	  Stream #0:5(nob): Subtitle: dvd_subtitle
	    Metadata:
	      BPS-eng         : 7222
	      DURATION-eng    : 01:47:21.048888888
	      NUMBER_OF_FRAMES-eng: 1059
	      NUMBER_OF_BYTES-eng: 5815172
	  Stream #0:6(swe): Subtitle: dvd_subtitle
	    Metadata:
	      BPS-eng         : 7649
	      DURATION-eng    : 01:47:22.050177777
	      NUMBER_OF_FRAMES-eng: 1060
	      NUMBER_OF_BYTES-eng: 6160174
	[dvdsub @ 0000016e45cfd940] [IMGUTILS @ 00000064f0dff7f0] Picture size 0x0 is invalid
	Could not open codec for input stream 2
	
	
{
	

	   at Emby.Server.MediaEncoding.Probing.MediaProbeManager.GetMediaInfoInternal(String inputPath, String primaryPath, MediaProtocol protocol, String userAgent, Boolean extractChapters, String probeSizeArgument, Boolean isAudio, Boolean hasMixedProtocols, CancellationToken cancellationToken)
	   at Emby.Providers.MediaInfo.FFProbeVideoInfo.ProbeVideo[T](MetadataResult`1 metadataResult, MetadataRefreshOptions options, LibraryOptions libraryOptions, CancellationToken cancellationToken)
	   at Emby.Providers.Manager.MetadataService`2.RunCustomProvider(ICustomMetadataProvider`1 provider, MetadataResult`1 itemResult, String logName, MetadataRefreshOptions options, LibraryOptions libraryOptions, RefreshResult refreshResult, CancellationToken cancellationToken)
	Source: Emby.Server.MediaEncoding
	TargetSite: Void MoveNext()

So to me this would suggest something wrong with file header information.

 

Have you tried just remuxing the file with MKVTOOLNIX?

I have not test MKVTOOLNIX. If these files are not working without remuxin/transcodin files to another format, i stop getting these files. It take about 30 min to transcode files with this older PC.

Happy2Play
Posted
Just now, s2mpyLLy said:

Edited previous post. That sample did work.

 

I have not test MKVTOOLNIX. If these files are not working without remuxin/transcodin files to another format, i stop getting these files. It take about 30 min to transcode files with this older PC.

But it currently point to the files specifically as I have no issues with my HEVC/H265 files.

Can only guess something has happened to your file headers but am no expert on this.  Just can tell from your logs the ffprobe is have issue with them.

  • Agree 1
Neminem
Posted

A remux even if you exclude subtitles should not take that much time.

Remux is a copy but will fix a lot problems in media files.

  • Agree 1
Happy2Play
Posted (edited)

Correct as Emby remux/transcode (ffmpeg/ffprobe) it can only read the info the file provides.  Where MKVTOOLNIX will rewrite all the header information possibly correcting the issue as it is quite easy to mess up header info of mkv files.

Edited by Happy2Play
Neminem
Posted
6 minutes ago, s2mpyLLy said:

Edited previous post. That sample did work.

Great then we know its not HEVC / h265 problem, but a file problem.

If you get all your files from the same source, then that will be a pain.

Posted (edited)

Ok, i did managed to use mkvtoolnix and disabled subtiles. Without subtiles movie worked just fine. 

Is this something what Emby side can fix in future or is this no can do situtation? I can provide the file if needed...

Edited by s2mpyLLy
Neminem
Posted (edited)

Do you still have a copy from when the source file had subs ?

Try again without removing the subs, just remux the file,

and see if that works.

If it does not work then its the subs.

Edited by Neminem
Posted

Not too familiar with the mkvtoolnix, but i run the movie throught it and subtiles was enabled. Movie did not work

Neminem
Posted (edited)

Ok then it will be that subs + remux.

I always only use .srt subs, they are so much lighter that PGS, DVD and other picture based subs.

Text based subs are best for streaming use like Emby.

Edited by Neminem
  • Agree 1
Posted

Thanks a lot guys for figuring this out and your help! I hope this kinda movie+sub combo will work some day. Until that, i try to avoid these H265 files with subtiles. 👍

Neminem
Posted

Np only happy to help 😁

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...