jellyfin / jellyfin

The Free Software Media System
https://jellyfin.org
GNU General Public License v2.0
33.71k stars 3.09k forks source link

[Issue]: HEVC via HW acceleration transcoding is broken for TV channels on 10.9.4/10.9.5/10.9.6 on Nvidia & Windows #11997

Closed xatornet closed 1 month ago

xatornet commented 3 months ago

Please describe your bug

Since the update to 10.9.4 (the previous releases work fine, and also the 10.10 nightly works fine) If I enable HW Accelerated transcoding using NVENC on my Pascal GPUs (I have 2 servers with 1050Ti and 1060 respectively) I cannot play any TV channel that needs transcoding to play. Remuxing or Direct Stream works fine, but as soon as I want to transcode the stream, I only get sound.

If I go into settings, and disable HEVC transcoding, but keep the HW transcoding ON, I can watch the TV properly, but I only get H264 transcoding.

HEVC works fine without trouble on local media, Movies or TVShows. It's only a thing on the TV channels.

I've tried a m3u8 file with bot MPEG TS stream and HLS streams, with the same results.

Reproduction Steps

Steps to reproduce the problem: 1-Install /Update to 10.9.4/5/6 versions 2-Add your live TV m3U file, does not matter if you are using HLS or MPEG-TS format. 3-Config the HW Acceleration acordingly and enable HEVC (you HW must support it) 4-Go to any Live TV channel, and play it 5-Then if its playing on Direct Stream, select a lower resolution, 720p @ 4 Mbps for instance, and let it transcode 6-You will get either an error, or only sound streaming, or stuck there.

Jellyfin Version

10.9.0

if other:

10.9.5

Environment

- OS: Windows 11 Pro 24H2 build 26100.712
- Browser: Chrome & Edge.
- FFmpeg Version: Integrated Jellyfin
- Playback Method: Transcoding Live TV
- Hardware Acceleration: NVENC & NVDEC
- GPU Model: GTX 1060 & GTX 1050Ti (Pascal cards, HEVC capable)
- Plugins: Default.
- Storage: Local & M3U file for TV Channels.

Jellyfin logs

[2024-06-06 22:35:12.223 +02:00] [INF] [86] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "37.15.180.2" request
[2024-06-06 22:35:28.024 +02:00] [ERR] [87] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL "GET" "/Items/dc418a51af3e80b346df44de845c338f/Images/Primary".
System.InvalidOperationException: Unable to convert any images to local
   at Emby.Server.Implementations.Library.LibraryManager.ConvertImageToLocal(BaseItem item, ItemImageInfo image, Int32 imageIndex, Boolean removeOnFailure)
   at Jellyfin.Api.Controllers.ImageController.GetImageInternal(Guid itemId, ImageType imageType, Nullable`1 imageIndex, String tag, Nullable`1 format, Nullable`1 maxWidth, Nullable`1 maxHeight, Nullable`1 percentPlayed, Nullable`1 unplayedCount, Nullable`1 width, Nullable`1 height, Nullable`1 quality, Nullable`1 fillWidth, Nullable`1 fillHeight, Nullable`1 blur, String backgroundColor, String foregroundLayer, BaseItem item, ItemImageInfo imageInfo)
   at Jellyfin.Api.Controllers.ImageController.GetItemImage(Guid itemId, ImageType imageType, Nullable`1 maxWidth, Nullable`1 maxHeight, Nullable`1 width, Nullable`1 height, Nullable`1 quality, Nullable`1 fillWidth, Nullable`1 fillHeight, String tag, Nullable`1 format, Nullable`1 percentPlayed, Nullable`1 unplayedCount, Nullable`1 blur, String backgroundColor, String foregroundLayer, Nullable`1 imageIndex)
   at lambda_method1331(Closure, Object)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Jellyfin.Api.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager)
   at Jellyfin.Api.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager)
   at Jellyfin.Api.Middleware.IPBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager)
   at Jellyfin.Api.Middleware.LanFilteringMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Jellyfin.Api.Middleware.QueryStringDecodingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Jellyfin.Api.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext)
   at Jellyfin.Api.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context)
   at Jellyfin.Api.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager)
   at Jellyfin.Api.Middleware.ExceptionMiddleware.Invoke(HttpContext context)
[2024-06-06 22:35:32.252 +02:00] [INF] [64] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "Luka". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2024-06-06 22:35:32.261 +02:00] [INF] [64] Jellyfin.Api.Helpers.MediaInfoHelper: RemoteClientBitrateLimit: 2000000, RemoteIP: "37.15.180.2", IsInLocalNetwork: False
[2024-06-06 22:35:32.269 +02:00] [INF] [64] Jellyfin.LiveTv.LiveTvMediaSourceProvider: Opening channel stream from "Emby", external channel Id: "m3u_c41cf4059f2cd3edfb5807bc124597bef432ebc8379d05393824c512032dc790"
[2024-06-06 22:35:32.276 +02:00] [INF] [64] Jellyfin.LiveTv.DefaultLiveTvService: Streaming Channel "m3u_c41cf4059f2cd3edfb5807bc124597bef432ebc8379d05393824c512032dc790"
[2024-06-06 22:35:32.282 +02:00] [INF] [64] Jellyfin.LiveTv.DefaultLiveTvService: Live stream "f432ebc8379d05393824c512032dc790" consumer count is now 2
[2024-06-06 22:35:32.289 +02:00] [INF] [64] Emby.Server.Implementations.Library.MediaSourceManager: Live tv media info probe took "0.000785" seconds
[2024-06-06 22:35:32.294 +02:00] [INF] [64] Emby.Server.Implementations.Library.MediaSourceManager: Live stream opened: MediaSourceInfo { Protocol: Http, Id: "f432ebc8379d05393824c512032dc790", Path: "http://127.0.0.1:6878/ace/manifest.m3u8?content_id=5789ca155323664edd293b848606688edf803f4d", EncoderPath: null, EncoderProtocol: null, Type: Default, Container: "hls", Size: 349, Name: null, IsRemote: False, ETag: null, RunTimeTicks: null, ReadAtNativeFramerate: False, IgnoreDts: True, IgnoreIndex: False, GenPtsInput: False, SupportsTranscoding: True, SupportsDirectStream: False, SupportsDirectPlay: True, IsInfiniteStream: True, RequiresOpening: True, OpenToken: null, RequiresClosing: True, LiveStreamId: "e2329f4997b378e64ccf8fa396deb76e_af999c25a00715699361240d4c6c7a53_f432ebc8379d05393824c512032dc790", BufferMs: null, RequiresLooping: False, SupportsProbing: True, VideoType: null, IsoType: null, Video3DFormat: null, MediaStreams: [MediaStream { Codec: "h264", CodecTag: null, Language: null, ColorRange: null, ColorSpace: null, ColorTransfer: null, ColorPrimaries: null, DvVersionMajor: null, DvVersionMinor: null, DvProfile: null, DvLevel: null, RpuPresentFlag: null, ElPresentFlag: null, BlPresentFlag: null, DvBlSignalCompatibilityId: null, Comment: null, TimeBase: "1/90000", CodecTimeBase: null, Title: null, VideoRange: SDR, VideoRangeType: SDR, VideoDoViTitle: null, AudioSpatialFormat: None, LocalizedUndefined: null, LocalizedDefault: null, LocalizedForced: null, LocalizedExternal: null, LocalizedHearingImpaired: null, DisplayTitle: "1080p H264 SDR", NalLengthSize: "0", IsInterlaced: False, IsAVC: null, ChannelLayout: null, BitRate: 20000000, BitDepth: 8, RefFrames: 1, PacketLength: null, Channels: null, SampleRate: null, IsDefault: False, IsForced: False, IsHearingImpaired: False, Height: 1080, Width: 1920, AverageFrameRate: 50, RealFrameRate: 50, Profile: "High", Type: Video, AspectRatio: "16:9", Index: -1, Score: null, IsExternal: False, DeliveryMethod: null, DeliveryUrl: null, IsExternalUrl: null, IsTextSubtitleStream: False, SupportsExternalStream: False, Path: null, PixelFormat: "yuv420p", Level: 40, IsAnamorphic: False }, MediaStream { Codec: "mp2", CodecTag: null, Language: null, ColorRange: null, ColorSpace: null, ColorTransfer: null, ColorPrimaries: null, DvVersionMajor: null, DvVersionMinor: null, DvProfile: null, DvLevel: null, RpuPresentFlag: null, ElPresentFlag: null, BlPresentFlag: null, DvBlSignalCompatibilityId: null, Comment: null, TimeBase: "1/90000", CodecTimeBase: null, Title: null, VideoRange: Unknown, VideoRangeType: Unknown, VideoDoViTitle: null, AudioSpatialFormat: None, LocalizedUndefined: null, LocalizedDefault: null, LocalizedForced: null, LocalizedExternal: null, LocalizedHearingImpaired: null, DisplayTitle: "MP2 - Stereo", NalLengthSize: null, IsInterlaced: False, IsAVC: False, ChannelLayout: "stereo", BitRate: 192000, BitDepth: null, RefFrames: null, PacketLength: null, Channels: 2, SampleRate: 48000, IsDefault: False, IsForced: False, IsHearingImpaired: False, Height: null, Width: null, AverageFrameRate: null, RealFrameRate: null, Profile: null, Type: Audio, AspectRatio: null, Index: -1, Score: null, IsExternal: False, DeliveryMethod: null, DeliveryUrl: null, IsExternalUrl: null, IsTextSubtitleStream: False, SupportsExternalStream: False, Path: null, PixelFormat: null, Level: 0, IsAnamorphic: null }], MediaAttachments: [], Formats: [], Bitrate: 20192000, Timestamp: null, RequiredHttpHeaders: [("User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36")], TranscodingUrl: null, TranscodingSubProtocol: http, TranscodingContainer: null, AnalyzeDurationMs: 3000, TranscodeReasons: 0, DefaultAudioStreamIndex: null, DefaultSubtitleStreamIndex: null, VideoStream: MediaStream { Codec: "h264", CodecTag: null, Language: null, ColorRange: null, ColorSpace: null, ColorTransfer: null, ColorPrimaries: null, DvVersionMajor: null, DvVersionMinor: null, DvProfile: null, DvLevel: null, RpuPresentFlag: null, ElPresentFlag: null, BlPresentFlag: null, DvBlSignalCompatibilityId: null, Comment: null, TimeBase: "1/90000", CodecTimeBase: null, Title: null, VideoRange: SDR, VideoRangeType: SDR, VideoDoViTitle: null, AudioSpatialFormat: None, LocalizedUndefined: null, LocalizedDefault: null, LocalizedForced: null, LocalizedExternal: null, LocalizedHearingImpaired: null, DisplayTitle: "1080p H264 SDR", NalLengthSize: "0", IsInterlaced: False, IsAVC: null, ChannelLayout: null, BitRate: 20000000, BitDepth: 8, RefFrames: 1, PacketLength: null, Channels: null, SampleRate: null, IsDefault: False, IsForced: False, IsHearingImpaired: False, Height: 1080, Width: 1920, AverageFrameRate: 50, RealFrameRate: 50, Profile: "High", Type: Video, AspectRatio: "16:9", Index: -1, Score: null, IsExternal: False, DeliveryMethod: null, DeliveryUrl: null, IsExternalUrl: null, IsTextSubtitleStream: False, SupportsExternalStream: False, Path: null, PixelFormat: "yuv420p", Level: 40, IsAnamorphic: False } }
[2024-06-06 22:35:32.601 +02:00] [INF] [64] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "Luka". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2024-06-06 22:35:32.605 +02:00] [INF] [64] Jellyfin.Api.Helpers.MediaInfoHelper: RemoteClientBitrateLimit: 2000000, RemoteIP: "37.15.180.2", IsInLocalNetwork: False
[2024-06-06 22:35:33.003 +02:00] [INF] [64] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[2024-06-06 22:35:33.008 +02:00] [INF] [64] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: "ffmpeg" "-analyzeduration 3000000 -probesize 1G -user_agent \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36\" -fflags +igndts -init_hw_device cuda=cu:0 -filter_hw_device cu -hwaccel cuda -hwaccel_output_format cuda -hwaccel_flags +unsafe_output -threads 1 -noautorotate -i \"http://127.0.0.1:6878/ace/manifest.m3u8?content_id=5789ca155323664edd293b848606688edf803f4d\" -noautoscale -map_metadata -1 -map_chapters -1 -threads 0 -sn -codec:v:0 hevc_nvenc -tag:v:0 hvc1 -preset p1 -b:v 1616000 -maxrate 1616000 -bufsize 3232000 -g:v:0 150 -keyint_min:v:0 150 -vf \"setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_cuda=w=720:h=404:format=yuv420p\" -flags -global_header -codec:a:0 libfdk_aac -ac 2 -ab 256000 -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 0 -hls_base_url \"hls/d1a0f09e9367732e523e52f9a3c72011/\" -hls_segment_filename \"C:\ProgramData\Jellyfin\Server\cache\transcodes\d1a0f09e9367732e523e52f9a3c72011%d.ts\" -hls_playlist_type event -hls_list_size 0 -y \"C:\ProgramData\Jellyfin\Server\cache\transcodes\d1a0f09e9367732e523e52f9a3c72011.m3u8\""
[2024-06-06 22:35:45.231 +02:00] [INF] [86] MediaBrowser.Controller.MediaEncoding.TranscodingJob: Stopping ffmpeg process with q command for "C:\ProgramData\Jellyfin\Server\cache\transcodes\d1a0f09e9367732e523e52f9a3c72011.m3u8"
[2024-06-06 22:35:45.895 +02:00] [INF] [86] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: FFmpeg exited with code 0
[2024-06-06 22:35:45.899 +02:00] [INF] [86] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: Deleting partial stream file(s) "C:\ProgramData\Jellyfin\Server\cache\transcodes\d1a0f09e9367732e523e52f9a3c72011.m3u8"
[2024-06-06 22:35:47.407 +02:00] [INF] [64] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app "Jellyfin Web" "10.9.5" playing "DAZN F1 HD ALT 2 1080". Stopped at "7272" ms
[2024-06-06 22:35:47.416 +02:00] [INF] [64] Emby.Server.Implementations.Library.MediaSourceManager: Live stream "f432ebc8379d05393824c512032dc790" consumer count is now 1

FFmpeg logs

FFmpeg.Transcode-2024-06-06_22-35-33_f432ebc8379d05393824c512032dc790_09b22781

{"Protocol":1,"Id":"f432ebc8379d05393824c512032dc790","Path":"http://127.0.0.1:6878/ace/manifest.m3u8?content_id=5789ca155323664edd293b848606688edf803f4d","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"hls","Size":349,"Name":null,"IsRemote":false,"ETag":null,"RunTimeTicks":null,"ReadAtNativeFramerate":false,"IgnoreDts":true,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":false,"SupportsDirectPlay":true,"IsInfiniteStream":true,"RequiresOpening":true,"OpenToken":null,"RequiresClosing":true,"LiveStreamId":"e2329f4997b378e64ccf8fa396deb76e_af999c25a00715699361240d4c6c7a53_f432ebc8379d05393824c512032dc790","BufferMs":null,"RequiresLooping":false,"SupportsProbing":true,"VideoType":null,"IsoType":null,"Video3DFormat":null,"MediaStreams":[{"Codec":"h264","CodecTag":null,"Language":null,"ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/90000","CodecTimeBase":null,"Title":null,"VideoRange":1,"VideoRangeType":1,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"LocalizedHearingImpaired":null,"DisplayTitle":"1080p H264 SDR","NalLengthSize":"0","IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":20000000,"BitDepth":8,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":false,"IsHearingImpaired":false,"Height":1080,"Width":1920,"AverageFrameRate":50,"RealFrameRate":50,"Profile":"High","Type":1,"AspectRatio":"16:9","Index":-1,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":"yuv420p","Level":40,"IsAnamorphic":false},{"Codec":"mp2","CodecTag":null,"Language":null,"ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/90000","CodecTimeBase":null,"Title":null,"VideoRange":0,"VideoRangeType":0,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"LocalizedHearingImpaired":null,"DisplayTitle":"MP2 - Stereo","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":"stereo","BitRate":192000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":2,"SampleRate":48000,"IsDefault":false,"IsForced":false,"IsHearingImpaired":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":0,"AspectRatio":null,"Index":-1,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null}],"MediaAttachments":[],"Formats":[],"Bitrate":20192000,"Timestamp":null,"RequiredHttpHeaders":{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"},"TranscodingUrl":null,"TranscodingSubProtocol":0,"TranscodingContainer":null,"AnalyzeDurationMs":3000,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null}

ffmpeg -analyzeduration 3000000 -probesize 1G -user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36" -fflags +igndts -init_hw_device cuda=cu:0 -filter_hw_device cu -hwaccel cuda -hwaccel_output_format cuda -hwaccel_flags +unsafe_output -threads 1 -noautorotate -i "http://127.0.0.1:6878/ace/manifest.m3u8?content_id=5789ca155323664edd293b848606688edf803f4d" -noautoscale -map_metadata -1 -map_chapters -1 -threads 0 -sn -codec:v:0 hevc_nvenc -tag:v:0 hvc1 -preset p1 -b:v 1616000 -maxrate 1616000 -bufsize 3232000 -g:v:0 150 -keyint_min:v:0 150 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_cuda=w=720:h=404:format=yuv420p" -flags -global_header -codec:a:0 libfdk_aac -ac 2 -ab 256000 -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 0 -hls_base_url "hls/d1a0f09e9367732e523e52f9a3c72011/" -hls_segment_filename "C:\ProgramData\Jellyfin\Server\cache\transcodes\d1a0f09e9367732e523e52f9a3c72011%d.ts" -hls_playlist_type event -hls_list_size 0 -y "C:\ProgramData\Jellyfin\Server\cache\transcodes\d1a0f09e9367732e523e52f9a3c72011.m3u8"

ffmpeg version 6.0.1-Jellyfin Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 13-win32 (GCC)
  configuration: --prefix=/opt/ffmpeg --arch=x86_64 --target-os=mingw32 --cross-prefix=x86_64-w64-mingw32- --pkg-config=pkg-config --pkg-config-flags=--static --extra-version=Jellyfin --disable-ffplay --disable-debug --disable-doc --disable-sdl2 --disable-ptx-compression --disable-w32threads --enable-pthreads --enable-shared --enable-lto --enable-gpl --enable-version3 --enable-schannel --enable-iconv --enable-libxml2 --enable-zlib --enable-lzma --enable-gmp --enable-chromaprint --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libwebp --enable-libvpx --enable-libzimg --enable-libx264 --enable-libx265 --enable-libsvtav1 --enable-libdav1d --enable-libfdk-aac --enable-opencl --enable-dxva2 --enable-d3d11va --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
  libavutil      58.  2.100 / 58.  2.100
  libavcodec     60.  3.100 / 60.  3.100
  libavformat    60.  3.100 / 60.  3.100
  libavdevice    60.  1.100 / 60.  1.100
  libavfilter     9.  3.100 /  9.  3.100
  libswscale      7.  1.100 /  7.  1.100
  libswresample   4. 10.100 /  4. 10.100
  libpostproc    57.  1.100 / 57.  1.100
[hls @ 0000015ae391ba80] Skip ('#EXT-X-VERSION:3')
[hls @ 0000015ae391ba80] Opening 'http://127.0.0.1:6878/ace/c/dc0732e5f63a59001b7ef446a7e69c4a4adf7999/0.ts' for reading
[NULL @ 0000015ae5124bc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] decode_slice_header error
[h264 @ 0000015ae5140cc0] no frame!
[NULL @ 0000015ae5124bc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] decode_slice_header error
[h264 @ 0000015ae5140cc0] no frame!
[NULL @ 0000015ae5124bc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] decode_slice_header error
[h264 @ 0000015ae5140cc0] no frame!
[NULL @ 0000015ae5124bc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] decode_slice_header error
[h264 @ 0000015ae5140cc0] no frame!
[NULL @ 0000015ae5124bc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] decode_slice_header error
[h264 @ 0000015ae5140cc0] no frame!
[NULL @ 0000015ae5124bc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] decode_slice_header error
[h264 @ 0000015ae5140cc0] no frame!
[NULL @ 0000015ae5124bc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] decode_slice_header error
[h264 @ 0000015ae5140cc0] no frame!
[NULL @ 0000015ae5124bc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] decode_slice_header error
[h264 @ 0000015ae5140cc0] no frame!
[NULL @ 0000015ae5124bc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] decode_slice_header error
[h264 @ 0000015ae5140cc0] no frame!
[NULL @ 0000015ae5124bc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] decode_slice_header error
[h264 @ 0000015ae5140cc0] no frame!
[NULL @ 0000015ae5124bc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] decode_slice_header error
[h264 @ 0000015ae5140cc0] no frame!
[NULL @ 0000015ae5124bc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] decode_slice_header error
[h264 @ 0000015ae5140cc0] no frame!
[NULL @ 0000015ae5124bc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] decode_slice_header error
[h264 @ 0000015ae5140cc0] no frame!
[NULL @ 0000015ae5124bc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] decode_slice_header error
[h264 @ 0000015ae5140cc0] no frame!
[NULL @ 0000015ae5124bc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] decode_slice_header error
[h264 @ 0000015ae5140cc0] no frame!
[NULL @ 0000015ae5124bc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] decode_slice_header error
[h264 @ 0000015ae5140cc0] no frame!
[NULL @ 0000015ae5124bc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] decode_slice_header error
[h264 @ 0000015ae5140cc0] no frame!
[NULL @ 0000015ae5124bc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] decode_slice_header error
[h264 @ 0000015ae5140cc0] no frame!
[NULL @ 0000015ae5124bc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] decode_slice_header error
[h264 @ 0000015ae5140cc0] no frame!
[NULL @ 0000015ae5124bc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] decode_slice_header error
[h264 @ 0000015ae5140cc0] no frame!
[NULL @ 0000015ae5124bc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] decode_slice_header error
[h264 @ 0000015ae5140cc0] no frame!
[NULL @ 0000015ae5124bc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] decode_slice_header error
[h264 @ 0000015ae5140cc0] no frame!
[NULL @ 0000015ae5124bc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] decode_slice_header error
[h264 @ 0000015ae5140cc0] no frame!
[NULL @ 0000015ae5124bc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] decode_slice_header error
[h264 @ 0000015ae5140cc0] no frame!
[NULL @ 0000015ae5124bc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] decode_slice_header error
[h264 @ 0000015ae5140cc0] no frame!
[NULL @ 0000015ae5124bc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] non-existing PPS 0 referenced
[h264 @ 0000015ae5140cc0] decode_slice_header error
[h264 @ 0000015ae5140cc0] no frame!
[h264 @ 0000015ae5140cc0] mmco: unref short failure
Input #0, hls, from 'http://127.0.0.1:6878/ace/manifest.m3u8?content_id=5789ca155323664edd293b848606688edf803f4d':
  Duration: N/A, start: 10890.803000, bitrate: N/A
  Program 0 
    Metadata:
      variant_bitrate : 0
  Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn
    Metadata:
      variant_bitrate : 0
  Stream #0:1: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s
    Metadata:
      variant_bitrate : 0
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> hevc (hevc_nvenc))
  Stream #0:1 -> #0:1 (mp2 (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
[h264 @ 0000015af3e1eb40] reference picture missing during reorder
[h264 @ 0000015af3e1eb40] Missing reference picture, default is 2147483647
[h264 @ 0000015af3e1eb40] reference picture missing during reorder
[h264 @ 0000015af3e1eb40] Missing reference picture, default is 2147483647
[h264 @ 0000015af3e1eb40] reference picture missing during reorder
[h264 @ 0000015af3e1eb40] Missing reference picture, default is 2147483647
[h264 @ 0000015af3e1eb40] mmco: unref short failure
[h264 @ 0000015af3e1eb40] reference picture missing during reorder
[h264 @ 0000015af3e1eb40] Missing reference picture, default is 65592
[h264 @ 0000015af3e1eb40] reference picture missing during reorder
    Last message repeated 1 times
[h264 @ 0000015af3e1eb40] Missing reference picture, default is 65592
    Last message repeated 1 times
[h264 @ 0000015af3e1eb40] reference picture missing during reorder
[h264 @ 0000015af3e1eb40] Missing reference picture, default is 65593
[h264 @ 0000015af3e1eb40] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0000015af3e1eb40] reference picture missing during reorder
[h264 @ 0000015af3e1eb40] Missing reference picture, default is 65598
Output #0, hls, to 'C:\ProgramData\Jellyfin\Server\cache\transcodes\d1a0f09e9367732e523e52f9a3c72011.m3u8':
  Metadata:
    encoder         : Lavf60.3.100
  Stream #0:0: Video: hevc (Main) (hvc1 / 0x31637668), cuda(bt709, top coded first (swapped)), 720x404 [SAR 404:405 DAR 16:9], q=2-31, 1616 kb/s, 50 fps, 90k tbn
    Metadata:
      encoder         : Lavc60.3.100 hevc_nvenc
    Side data:
      cpb: bitrate max/min/avg: 1616000/0/1616000 buffer size: 3232000 vbv_delay: N/A
  Stream #0:1: Audio: aac, 48000 Hz, stereo, s16, 256 kb/s
    Metadata:
      encoder         : Lavc60.3.100 libfdk_aac
frame=    0 fps=0.0 q=0.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x    
[hls @ 0000015ae51b0100] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\d1a0f09e9367732e523e52f9a3c720110.ts' for writing
[hls @ 0000015ae51b0100] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\d1a0f09e9367732e523e52f9a3c72011.m3u8.tmp' for writing
[hls @ 0000015ae391ba80] Opening 'http://127.0.0.1:6878/ace/m/dc0732e5f63a59001b7ef446a7e69c4a4adf7999/f528764d624db129b32c21fbca0cb8d6.m3u8' for reading
[hls @ 0000015ae391ba80] Skip ('#EXT-X-VERSION:3')
[http @ 0000015ae511fd80] Opening 'http://127.0.0.1:6878/ace/c/dc0732e5f63a59001b7ef446a7e69c4a4adf7999/1.ts' for reading
[hls @ 0000015ae391ba80] Opening 'http://127.0.0.1:6878/ace/c/dc0732e5f63a59001b7ef446a7e69c4a4adf7999/2.ts' for reading
frame=  215 fps= 45 q=30.0 size=N/A time=00:00:04.35 bitrate=N/A dup=108 drop=0 speed=0.913x    
[hls @ 0000015ae51b0100] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\d1a0f09e9367732e523e52f9a3c720111.ts' for writing
[hls @ 0000015ae51b0100] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\d1a0f09e9367732e523e52f9a3c72011.m3u8.tmp' for writing
[hls @ 0000015ae51b0100] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\d1a0f09e9367732e523e52f9a3c720112.ts' for writing
[hls @ 0000015ae51b0100] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\d1a0f09e9367732e523e52f9a3c72011.m3u8.tmp' for writing
[http @ 0000015ae511fd80] Opening 'http://127.0.0.1:6878/ace/c/dc0732e5f63a59001b7ef446a7e69c4a4adf7999/3.ts' for reading

[q] command received. Exiting.

[hls @ 0000015ae51b0100] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\d1a0f09e9367732e523e52f9a3c720113.ts' for writing
[hls @ 0000015ae51b0100] Opening 'C:\ProgramData\Jellyfin\Server\cache\transcodes\d1a0f09e9367732e523e52f9a3c72011.m3u8.tmp' for writing
frame=  479 fps= 52 q=31.0 Lsize=N/A time=00:00:09.64 bitrate=N/A dup=239 drop=0 speed=1.05x    
video:1982kB audio:334kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

Please attach any browser or client logs here

No response

Please attach any screenshots here

image

Code of Conduct

jellyfin-bot commented 3 months ago

Hi, it seems like your issue report has the following item(s) that need to be addressed:

This is an automated message, currently under testing. Please file an issue here if you encounter any problems.

gnattu commented 3 months ago

We disabled HEVC for liveTV on purpose because numerous compatibility problems, and the fact that you are still using HEVC is a bug, will look later

xatornet commented 3 months ago

If so, would it be possible to add a toggle to disable it only for Live TV and make it still available for all other media? It's a pitty to be completely disabled just to make Live TV work...

gnattu commented 3 months ago

It would not be a 10.9 thing, and would come to 10.10 at earliest.

We would not force you to disable HEVC for everything, we are investigating why HEVC is still picked up for livetv transcoding.

xatornet commented 3 months ago

Great, If there's any test you'd like me to run, just tell me

felix920506 commented 1 month ago

fixed by #12017