2024-11-07, 07:24 PM
Interesting...
So I changed it to
And, ffmpeg:
So I changed it to
network_mode: host
and it works. I uh... have no idea o.oCode:
jellyfin_1 | [19:20:17] [INF] [32] TVHeadEnd.AccessTicketHandler: [TVHclient] AccessTicketHandler.GetAccessTicket: New ticket (#1) created for channelId=694893686
jellyfin_1 | [19:20:17] [INF] [32] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for IngwiePhoenix. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
jellyfin_1 | [19:20:17] [ERR] [8] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL GET /Items/7335ceaca30eea45df80a92487099eb6/Images/Primary.
jellyfin_1 | System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 (Unauthorized).
jellyfin_1 | at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
jellyfin_1 | at MediaBrowser.Providers.Manager.ProviderManager.SaveImage(BaseItem item, String url, ImageType type, Nullable`1 imageIndex, CancellationToken cancellationToken)
jellyfin_1 | at Emby.Server.Implementations.Library.LibraryManager.ConvertImageToLocal(BaseItem item, ItemImageInfo image, Int32 imageIndex, Boolean removeOnFailure)
jellyfin_1 | 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)
jellyfin_1 | 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)
jellyfin_1 | at lambda_method1219(Closure, Object)
jellyfin_1 | at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
jellyfin_1 | at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
jellyfin_1 | at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
jellyfin_1 | at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
jellyfin_1 | at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
jellyfin_1 | at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
jellyfin_1 | at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
jellyfin_1 | at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
jellyfin_1 | at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
jellyfin_1 | at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
jellyfin_1 | at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
jellyfin_1 | at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
jellyfin_1 | at Jellyfin.Api.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager)
jellyfin_1 | at Jellyfin.Api.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager)
jellyfin_1 | at Jellyfin.Api.Middleware.IPBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager)
jellyfin_1 | at Jellyfin.Api.Middleware.LanFilteringMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager)
jellyfin_1 | at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
jellyfin_1 | at Jellyfin.Api.Middleware.QueryStringDecodingMiddleware.Invoke(HttpContext httpContext)
jellyfin_1 | at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext)
jellyfin_1 | at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
jellyfin_1 | at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
jellyfin_1 | at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
jellyfin_1 | at Jellyfin.Api.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext)
jellyfin_1 | at Jellyfin.Api.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext)
jellyfin_1 | at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context)
jellyfin_1 | at Jellyfin.Api.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager)
jellyfin_1 | at Jellyfin.Api.Middleware.ExceptionMiddleware.Invoke(HttpContext context)
jellyfin_1 | [19:20:18] [INF] [19] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
jellyfin_1 | [19:20:19] [INF] [8] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 3000000 -probesize 1G -init_hw_device rkmpp=rk -i "http://192.168.1.8:9981/stream/channelid/694893686?ticket=0f4e2668de1bad91e8e77b8bdea8dba448266c2e" -map_metadata -1 -map_chapters -1 -threads 0 -sn -codec:v:0 hevc_rkmpp -tag:v:0 hvc1 -b:v 115093396 -maxrate 115093396 -bufsize 230186792 -profile:v:0 main -level 150 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,yadif=0:-1:0,format=nv12" -codec:a:0 libfdk_aac -ab 384000 -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type fmp4 -hls_fmp4_init_filename "8ec3eda6234ba0b31099c9b830f18e65-1.mp4" -start_number 0 -hls_base_url "hls/8ec3eda6234ba0b31099c9b830f18e65/" -hls_segment_filename "/cache/transcodes/8ec3eda6234ba0b31099c9b830f18e65%d.mp4" -hls_playlist_type event -hls_list_size 0 -y "/cache/transcodes/8ec3eda6234ba0b31099c9b830f18e65.m3u8"
jellyfin_1 | [19:21:49] [INF] [48] MediaBrowser.Controller.MediaEncoding.TranscodingJob: Stopping ffmpeg process with q command for /cache/transcodes/8ec3eda6234ba0b31099c9b830f18e65.m3u8
jellyfin_1 | [19:21:49] [INF] [47] Emby.Server.Implementations.HttpServer.WebSocketManager: WS 100.64.0.1 closed
jellyfin_1 | [19:21:50] [INF] [48] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: FFmpeg exited with code 0
jellyfin_1 | [19:21:50] [INF] [48] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: Deleting partial stream file(s) /cache/transcodes/8ec3eda6234ba0b31099c9b830f18e65.m3u8
jellyfin_1 | [19:21:51] [INF] [47] TVHeadEnd.AccessTicketHandler: [TVHclient] AccessTicketHandler.GetAccessTicket: New ticket (#2) created for channelId=694893686
jellyfin_1 | [19:21:51] [INF] [47] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app Jellyfin Web 10.10.1 playing RTL Television. Stopped at 67949 ms
And, ffmpeg:
Code:
{"Protocol":1,"Id":"694893686","Path":"http://192.168.1.8:9981/stream/channelid/694893686?ticket=0f4e2668de1bad91e8e77b8bdea8dba448266c2e","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":null,"Size":null,"Name":null,"IsRemote":false,"ETag":null,"RunTimeTicks":null,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":true,"UseMostCompatibleTranscodingProfile":false,"RequiresOpening":false,"OpenToken":null,"RequiresClosing":false,"LiveStreamId":null,"BufferMs":1500,"RequiresLooping":false,"SupportsProbing":true,"VideoType":null,"IsoType":null,"Video3DFormat":null,"MediaStreams":[{"Codec":null,"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,"Rotation":null,"Comment":null,"TimeBase":null,"CodecTimeBase":null,"Title":null,"VideoRange":1,"VideoRangeType":1,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"LocalizedHearingImpaired":null,"DisplayTitle":"SDR","NalLengthSize":"0","IsInterlaced":true,"IsAVC":null,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":false,"IsHearingImpaired":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"ReferenceFrameRate":null,"Profile":null,"Type":1,"AspectRatio":null,"Index":-1,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":null,"IsAnamorphic":null},{"Codec":null,"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,"Rotation":null,"Comment":null,"TimeBase":null,"CodecTimeBase":null,"Title":null,"VideoRange":0,"VideoRangeType":0,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"LocalizedHearingImpaired":null,"DisplayTitle":"","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":false,"IsHearingImpaired":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"ReferenceFrameRate":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":null,"IsAnamorphic":null}],"MediaAttachments":[],"Formats":[],"Bitrate":null,"FallbackMaxStreamingBitrate":null,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":0,"TranscodingContainer":null,"AnalyzeDurationMs":3000,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null,"HasSegments":false}
/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 3000000 -probesize 1G -init_hw_device rkmpp=rk -i "http://192.168.1.8:9981/stream/channelid/694893686?ticket=0f4e2668de1bad91e8e77b8bdea8dba448266c2e" -map_metadata -1 -map_chapters -1 -threads 0 -sn -codec:v:0 hevc_rkmpp -tag:v:0 hvc1 -b:v 115093396 -maxrate 115093396 -bufsize 230186792 -profile:v:0 main -level 150 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,yadif=0:-1:0,format=nv12" -codec:a:0 libfdk_aac -ab 384000 -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type fmp4 -hls_fmp4_init_filename "8ec3eda6234ba0b31099c9b830f18e65-1.mp4" -start_number 0 -hls_base_url "hls/8ec3eda6234ba0b31099c9b830f18e65/" -hls_segment_filename "/cache/transcodes/8ec3eda6234ba0b31099c9b830f18e65%d.mp4" -hls_playlist_type event -hls_list_size 0 -y "/cache/transcodes/8ec3eda6234ba0b31099c9b830f18e65.m3u8"
ffmpeg version 7.0.2-Jellyfin Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 12 (Debian 12.2.0-14)
configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto=auto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-opencl --enable-libdrm --enable-libxml2 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libharfbuzz --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libsvtav1 --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=arm64 --cross-prefix=/usr/bin/aarch64-linux-gnu- --toolchain=hardened --enable-cross-compile --enable-rkmpp --enable-rkrga
libavutil 59. 8.100 / 59. 8.100
libavcodec 61. 3.100 / 61. 3.100
libavformat 61. 1.100 / 61. 1.100
libavdevice 61. 1.100 / 61. 1.100
libavfilter 10. 1.100 / 10. 1.100
libswscale 8. 1.100 / 8. 1.100
libswresample 5. 1.100 / 5. 1.100
libpostproc 58. 1.100 / 58. 1.100
[mpeg2video @ 0xaaaad5e14560] Invalid frame dimensions 0x0.
Last message repeated 2 times
[mp3float @ 0xaaaad5e111b0] Header missing
[mpeg2video @ 0xaaaad5e14560] Invalid frame dimensions 0x0.
[mpegts @ 0xaaaad5e08820] Could not find codec parameters for stream 4 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' (3000000) and 'probesize' (1000000000) options
Input #0, mpegts, from 'http://192.168.1.8:9981/stream/channelid/694893686?ticket=0f4e2668de1bad91e8e77b8bdea8dba448266c2e':
Duration: N/A, start: 30096.658278, bitrate: N/A
Program 1
Metadata:
service_name : RTL Television
service_provider: RTL Deutschland
Stream #0:1[0x68](deu): Audio: mp2 (mp3float) ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 192 kb/s
Stream #0:2[0x69](deu): Subtitle: dvb_teletext (libzvbi_teletextdec) ([6][0][0][0] / 0x0006), 492x250
Stream #0:3[0x6a](deu): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 384 kb/s
Stream #0:4[0x6c]: Unknown: none ([5][0][0][0] / 0x0005)
Stream #0:5[0x6e](deu): Subtitle: dvb_subtitle (dvbsub) ([6][0][0][0] / 0x0006) (hearing impaired)
Stream #0:6[0xa3]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bt470bg, top first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn
Side data:
cpb: bitrate max/min/avg: 15000000/0/0 buffer size: 1835008 vbv_delay: N/A
No Program
Stream #0:0[0x12]: Data: epg
Stream mapping:
Stream #0:6 -> #0:0 (mpeg2video (native) -> hevc (hevc_rkmpp))
Stream #0:1 -> #0:1 (mp2 (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
[mp2 @ 0xaaaad5e22090] Header missing
[aist#0:1/mp2 @ 0xaaaad5e16c90] [dec:mp2 @ 0xaaaad5e17de0] Error submitting packet to decoder: Invalid data found when processing input
[hls @ 0xaaaad5e5c080] Opening '/cache/transcodes/8ec3eda6234ba0b31099c9b830f18e65-1.mp4' for writing
Output #0, hls, to '/cache/transcodes/8ec3eda6234ba0b31099c9b830f18e65.m3u8':
Metadata:
encoder : Lavf61.1.100
Stream #0:0: Video: hevc (Main) (hvc1 / 0x31637668), nv12(tv, bt709, progressive), 720x576 [SAR 64:45 DAR 16:9], q=2-31, 115093 kb/s, 25 fps, 12800 tbn
Metadata:
encoder : Lavc61.3.100 hevc_rkmpp
Stream #0:1: Audio: aac, 48000 Hz, stereo, s16, 384 kb/s
Metadata:
encoder : Lavc61.3.100 libfdk_aac
frame= 77 fps=0.0 q=-0.0 size=N/A time=00:00:00.00 bitrate=N/A speed= 0x
frame= 88 fps= 88 q=-0.0 size=N/A time=00:00:00.46 bitrate=N/A speed=0.469x
(...)
[hls @ 0xaaaad5e5c080] Opening '/cache/transcodes/8ec3eda6234ba0b31099c9b830f18e657.mp4' for writing
[hls @ 0xaaaad5e5c080] Opening '/cache/transcodes/8ec3eda6234ba0b31099c9b830f18e65.m3u8.tmp' for writing
frame= 2020 fps= 26 q=-0.0 size=N/A time=00:01:17.46 bitrate=N/A speed=0.993x
frame= 2032 fps= 26 q=-0.0 size=N/A time=00:01:18.03 bitrate=N/A speed=0.994x
frame= 2044 fps= 26 q=-0.0 size=N/A time=00:01:18.42 bitrate=N/A speed=0.992x
frame= 2057 fps= 26 q=-0.0 size=N/A time=00:01:18.99 bitrate=N/A speed=0.993x
frame= 2066 fps= 26 q=-0.0 size=N/A time=00:01:19.48 bitrate=N/A speed=0.993x
frame= 2080 fps= 26 q=-0.0 size=N/A time=00:01:19.95 bitrate=N/A speed=0.993x
frame= 2095 fps= 26 q=-0.0 size=N/A time=00:01:20.53 bitrate=N/A speed=0.994x
frame= 2109 fps= 26 q=-0.0 size=N/A time=00:01:21.02 bitrate=N/A speed=0.994x
frame= 2121 fps= 26 q=-0.0 size=N/A time=00:01:21.49 bitrate=N/A speed=0.993x
frame= 2136 fps= 26 q=-0.0 size=N/A time=00:01:22.06 bitrate=N/A speed=0.994x
frame= 2147 fps= 26 q=-0.0 size=N/A time=00:01:22.45 bitrate=N/A speed=0.993x
frame= 2156 fps= 26 q=-0.0 size=N/A time=00:01:23.02 bitrate=N/A speed=0.994x
frame= 2170 fps= 26 q=-0.0 size=N/A time=00:01:23.52 bitrate=N/A speed=0.994x
frame= 2185 fps= 26 q=-0.0 size=N/A time=00:01:23.98 bitrate=N/A speed=0.994x
frame= 2197 fps= 26 q=-0.0 size=N/A time=00:01:24.48 bitrate=N/A speed=0.993x
frame= 2207 fps= 26 q=-0.0 size=N/A time=00:01:24.94 bitrate=N/A speed=0.993x
[q] command received. Exiting.
[hls @ 0xaaaad5e5c080] Opening '/cache/transcodes/8ec3eda6234ba0b31099c9b830f18e658.mp4' for writing
[hls @ 0xaaaad5e5c080] Opening '/cache/transcodes/8ec3eda6234ba0b31099c9b830f18e65.m3u8.tmp' for writing
[out#0/hls @ 0xaaaad5e5baf0] video:173610KiB audio:4176KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: unknown
frame= 2224 fps= 26 q=-0.0 Lsize=N/A time=00:01:25.58 bitrate=N/A dup=1 drop=0 speed=0.992x