• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Transcoding FFmpeg error 218

    Pages (3): 1 2 3 Next »

     
    • 0 Vote(s) - 0 Average

    Transcoding FFmpeg error 218

    Kiwa
    Offline

    Junior Member

    Posts: 32
    Threads: 6
    Joined: 2024 Aug
    Reputation: 0
    #1
    2024-11-07, 02:40 PM (This post was last modified: 2024-11-07, 08:27 PM by Kiwa. Edited 2 times in total.)
    Jellyfin server version: 10.10.0
    Over Proxmox VM with passthrough Intel Arc 380.
    Using the last Intel compute Runtime repository version.
     
    Hi, my server has been working perfectly for almost 3 weeks 24/7 without any problems and working at 100% with all the functions that Jellyfin provides.
    Right now I'm away from home and I'm having problems with video transcoding on all devices.

    Works perfectly with direct play / original quality.

    I have searched for " FFmpeg exited with code 218 " on google and found nothing relevant.

    When I get home I'll restart the server and everything will work normally, because this is not the first time this happens.
    Do you think it's a jellyfin or proxmox problem?

    Thanks for the help.

    I'm sharing the LOG lines that show the error in case it helps you:

    Code:
    [2024-11-07 15:09:11.064 +01:00] [INF] "/usr/lib/jellyfin-ffmpeg/ffmpeg" "-analyzeduration 200M -probesize 1G -f matroska -init_hw_device vaapi=va:/dev/dri/renderD128,driver=iHD -init_hw_device qsv=qs@va -filter_hw_device qs -hwaccel vaapi -hwaccel_output_format vaapi -noautorotate -i file:\"/mnt/media_root/peliculas/The Black Stallion (1979)/El corcel negro (1979) [BDRemux 1080p AVC Dual DTS MA 1.0 - DTS-MA 5.1 Subs][HDOlimpo].mkv\" -noautoscale -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 hevc_qsv -tag:v:0 hvc1 -low_power 1 -preset veryfast -b:v 9119732 -maxrate 9119732 -bufsize 18239464 -profile:v:0 main -g:v:0 72 -keyint_min:v:0 72 -vf \"setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_vaapi=format=nv12:extra_hw_frames=24,hwmap=derive_device=qsv,format=qsv\" -codec:a:0 libfdk_aac -ac 1 -ab 128000 -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_segment_filename \"/mnt/m2-disco/jellyfin/transcodes/efcd28ccb5adda9f0cb8c2d98620bd99%d.ts\" -hls_playlist_type vod -hls_list_size 0 -y \"/mnt/m2-disco/jellyfin/transcodes/efcd28ccb5adda9f0cb8c2d98620bd99.m3u8\""
    [2024-11-07 15:09:12.699 +01:00] [ERR] FFmpeg exited with code 218
    [2024-11-07 15:09:12.773 +01:00] [ERR] Error processing request. URL "GET" "/videos/65277556-c5c6-3e78-61ec-e9dbe9e8192c/hls1/main/0.ts".
    MediaBrowser.Common.FfmpegException: FFmpeg exited with code 218
      at MediaBrowser.MediaEncoding.Transcoding.TranscodeManager.StartFfMpeg(StreamState state, String outputPath, String commandLineArguments, Guid userId, TranscodingJobType transcodingJobType, CancellationTokenSource cancellationTokenSource, String workingDirectory)
      at Jellyfin.Api.Controllers.DynamicHlsController.GetDynamicSegment(StreamingRequestDto streamingRequest, Int32 segmentId)
      at Jellyfin.Api.Controllers.DynamicHlsController.GetHlsVideoSegment(Guid itemId, String playlistId, Int32 segmentId, String container, Int64 runtimeTicks, Int64 actualSegmentLengthTicks, Nullable`1 static, String params, String tag, String deviceProfileId, String playSessionId, String segmentContainer, Nullable`1 segmentLength, Nullable`1 minSegments, String mediaSourceId, String deviceId, String audioCodec, Nullable`1 enableAutoStreamCopy, Nullable`1 allowVideoStreamCopy, Nullable`1 allowAudioStreamCopy, Nullable`1 breakOnNonKeyFrames, Nullable`1 audioSampleRate, Nullable`1 maxAudioBitDepth, Nullable`1 audioBitRate, Nullable`1 audioChannels, Nullable`1 maxAudioChannels, String profile, String level, Nullable`1 framerate, Nullable`1 maxFramerate, Nullable`1 copyTimestamps, Nullable`1 startTimeTicks, Nullable`1 width, Nullable`1 height, Nullable`1 maxWidth, Nullable`1 maxHeight, Nullable`1 videoBitRate, Nullable`1 subtitleStreamIndex, Nullable`1 subtitleMethod, Nullable`1 maxRefFrames, Nullable`1 maxVideoBitDepth, Nullable`1 requireAvc, Nullable`1 deInterlace, Nullable`1 requireNonAnamorphic, Nullable`1 transcodingMaxAudioChannels, Nullable`1 cpuCoreLimit, String liveStreamId, Nullable`1 enableMpegtsM2TsMode, String videoCodec, String subtitleCodec, String transcodeReasons, Nullable`1 audioStreamIndex, Nullable`1 videoStreamIndex, Nullable`1 context, Dictionary`2 streamOptions, Boolean enableAudioVbrEncoding, Boolean alwaysBurnInSubtitleWhenTranscoding)
      at lambda_method1746(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-11-07 15:09:13.031 +01:00] [INF] Deleting partial stream file(s) "/mnt/m2-disco/jellyfin/transcodes/efcd28ccb5adda9f0cb8c2d98620bd99.m3u8"
    [2024-11-07 15:09:14.534 +01:00] [INF] Playback stopped reported by app "Android TV" "0.17.9" playing "El corcel negro". Stopped at "0" ms
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-11-07, 02:47 PM
    Can you share the ffmpeg log?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Fate
    Offline

    Member

    Posts: 221
    Threads: 3
    Joined: 2023 Jun
    Reputation: 16
    #3
    2024-11-07, 02:53 PM
    Yeah ffmpeg logs should help...

    I'll fire a random guess: try disable low power hevc encoding in transcode settings and try if that helps.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-11-07, 03:08 PM (This post was last modified: 2024-11-07, 03:08 PM by TheDreadPirate.)
    IIRC, low power encoding is required for Arc and the extra setup for Arc is minimal. But Debian installs often don't pull down non-free packages out of the box.

    So turning it off may not change anything.

    But the ffmpeg log will confirm if low power encoding is not fully setup.

    Also, what distro are you using?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Kiwa
    Offline

    Junior Member

    Posts: 32
    Threads: 6
    Joined: 2024 Aug
    Reputation: 0
    #5
    2024-11-07, 03:09 PM (This post was last modified: 2024-11-07, 03:11 PM by Kiwa.)
    (2024-11-07, 02:47 PM)TheDreadPirate Wrote: Can you share the ffmpeg log?

    Sure! I see some errors.

    Code:
    {"Protocol":0,"Id":"adb4a1a341be4b38b31982b240457c82","Path":"/mnt/media_root/peliculas/Old Henry (2021)/Old Henry (2021) [BDRip 1080p AVC ES DTS 5.1 EN DD 5.1 Subs][HDO].mkv","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mkv","Size":14118528846,"Name":"Old Henry (2021) [BDRip 1080p AVC ES DTS 5.1 EN DD 5.1 Subs][HDO]","IsRemote":false,"ETag":"8481367746442f83c32ee373e9cdb374","RunTimeTicks":59257070000,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"UseMostCompatibleTranscodingProfile":false,"RequiresOpening":false,"OpenToken":null,"RequiresClosing":false,"LiveStreamId":null,"BufferMs":null,"RequiresLooping":false,"SupportsProbing":true,"VideoType":0,"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,"Rotation":null,"Comment":null,"TimeBase":"1/1000","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":"4","IsInterlaced":false,"IsAVC":true,"ChannelLayout":null,"BitRate":19060718,"BitDepth":8,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":720,"Width":1920,"AverageFrameRate":23.976025,"RealFrameRate":23.976025,"ReferenceFrameRate":23.976025,"Profile":"High","Type":1,"AspectRatio":"8:3","Index":0,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":"yuv420p","Level":41,"IsAnamorphic":false},{"Codec":"dts","CodecTag":null,"Language":"spa","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":"1/1000","CodecTimeBase":null,"Title":null,"VideoRange":0,"VideoRangeType":0,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":null,"LocalizedDefault":"Predeterminado","LocalizedForced":null,"LocalizedExternal":"Externo","LocalizedHearingImpaired":null,"DisplayTitle":"Spanish - DTS - 5.1 - Predeterminado","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":"5.1","BitRate":1536000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":6,"SampleRate":48000,"IsDefault":true,"IsForced":true,"IsHearingImpaired":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"ReferenceFrameRate":null,"Profile":"DTS","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},{"Codec":"ac3","CodecTag":null,"Language":"spa","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":"1/1000","CodecTimeBase":null,"Title":null,"VideoRange":0,"VideoRangeType":0,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":null,"LocalizedDefault":"Predeterminado","LocalizedForced":null,"LocalizedExternal":"Externo","LocalizedHearingImpaired":null,"DisplayTitle":"Spanish - Dolby Digital - 5.1","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":"5.1","BitRate":640000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"IsHearingImpaired":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"ReferenceFrameRate":null,"Profile":null,"Type":0,"AspectRatio":null,"Index":2,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"ac3","CodecTag":null,"Language":"eng","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":"1/1000","CodecTimeBase":null,"Title":null,"VideoRange":0,"VideoRangeType":0,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":null,"LocalizedDefault":"Predeterminado","LocalizedForced":null,"LocalizedExternal":"Externo","LocalizedHearingImpaired":null,"DisplayTitle":"English - Dolby Digital - 5.1","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":"5.1","BitRate":640000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"IsHearingImpaired":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"ReferenceFrameRate":null,"Profile":null,"Type":0,"AspectRatio":null,"Index":3,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"subrip","CodecTag":null,"Language":"spa","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":"1/1000","CodecTimeBase":null,"Title":"Firzados","VideoRange":0,"VideoRangeType":0,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":"Indefinido","LocalizedDefault":"Predeterminado","LocalizedForced":"Forzado","LocalizedExternal":"Externo","LocalizedHearingImpaired":"Discapacidad Auditiva","DisplayTitle":"Firzados - Spanish - Forzado - SUBRIP","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":true,"IsHearingImpaired":false,"Height":0,"Width":0,"AverageFrameRate":null,"RealFrameRate":null,"ReferenceFrameRate":null,"Profile":null,"Type":2,"AspectRatio":null,"Index":4,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"subrip","CodecTag":null,"Language":"spa","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":"1/1000","CodecTimeBase":null,"Title":null,"VideoRange":0,"VideoRangeType":0,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":"Indefinido","LocalizedDefault":"Predeterminado","LocalizedForced":"Forzado","LocalizedExternal":"Externo","LocalizedHearingImpaired":"Discapacidad Auditiva","DisplayTitle":"Spanish - SUBRIP","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":false,"IsHearingImpaired":false,"Height":0,"Width":0,"AverageFrameRate":null,"RealFrameRate":null,"ReferenceFrameRate":null,"Profile":null,"Type":2,"AspectRatio":null,"Index":5,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"subrip","CodecTag":null,"Language":"eng","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":"1/1000","CodecTimeBase":null,"Title":null,"VideoRange":0,"VideoRangeType":0,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":"Indefinido","LocalizedDefault":"Predeterminado","LocalizedForced":"Forzado","LocalizedExternal":"Externo","LocalizedHearingImpaired":"Discapacidad Auditiva","DisplayTitle":"English - SUBRIP","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":false,"IsHearingImpaired":false,"Height":0,"Width":0,"AverageFrameRate":null,"RealFrameRate":null,"ReferenceFrameRate":null,"Profile":null,"Type":2,"AspectRatio":null,"Index":6,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null}],"MediaAttachments":[],"Formats":[],"Bitrate":21876718,"FallbackMaxStreamingBitrate":null,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":0,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null,"HasSegments":false}

    /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G -f matroska -init_hw_device vaapi=va:/dev/dri/renderD128,driver=iHD -init_hw_device qsv=qs@va -filter_hw_device qs -hwaccel vaapi -hwaccel_output_format vaapi -noautorotate -i file:"/mnt/media_root/peliculas/Old Henry (2021)/Old Henry (2021) [BDRip 1080p AVC ES DTS 5.1 EN DD 5.1 Subs][HDO].mkv" -noautoscale -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 av1_qsv -preset veryfast -b:v 292000 -maxrate 292000 -bufsize 584000 -profile:v:0 main -level 53 -g:v:0 72 -keyint_min:v:0 72 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_vaapi=w=960:h=360:format=nv12:extra_hw_frames=24,hwmap=derive_device=qsv,format=qsv" -codec:a:0 libfdk_aac -ab 128000 -af "pan=stereo|c0=c0+0.707*c2+0.707*c4|c1=c1+0.707*c2+0.707*c5" -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 "68ca0e464f7be6f9df41057ac92231d5-1.mp4" -start_number 0 -hls_segment_filename "/mnt/m2-disco/jellyfin/transcodes/68ca0e464f7be6f9df41057ac92231d5%d.mp4" -hls_playlist_type vod -hls_list_size 0 -y "/mnt/m2-disco/jellyfin/transcodes/68ca0e464f7be6f9df41057ac92231d5.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=amd64 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-vaapi --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
      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
    libva info: VA-API version 1.22.0
    libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
    libva info: Found init function __vaDriverInit_1_22
    libva info: va_openDriver() returns 0
    libva info: VA-API version 1.22.0
    libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
    libva info: Found init function __vaDriverInit_1_22
    libva info: va_openDriver() returns 0
    Input #0, matroska,webm, from 'file:/mnt/media_root/peliculas/Old Henry (2021)/Old Henry (2021) [BDRip 1080p AVC ES DTS 5.1 EN DD 5.1 Subs][HDO].mkv':
      Metadata:
        encoder        : libebml v1.4.2 + libmatroska v1.6.4
        creation_time  : 2022-10-03T11:08:12.000000Z
      Duration: 01:38:45.71, start: 0.000000, bitrate: 19060 kb/s
      Chapters:
        Chapter #0:0: start 0.000000, end 312.603958
          Metadata:
            title          : Chapter 01
        Chapter #0:1: start 312.603958, end 744.076667
          Metadata:
            title          : Chapter 02
        Chapter #0:2: start 744.076667, end 1355.771083
          Metadata:
            title          : Chapter 03
        Chapter #0:3: start 1355.771083, end 1693.233208
          Metadata:
            title          : Chapter 04
        Chapter #0:4: start 1693.233208, end 2316.063750
          Metadata:
            title          : Chapter 05
        Chapter #0:5: start 2316.063750, end 2924.421500
          Metadata:
            title          : Chapter 06
        Chapter #0:6: start 2924.421500, end 3369.532833
          Metadata:
            title          : Chapter 07
        Chapter #0:7: start 3369.532833, end 3903.107542
          Metadata:
            title          : Chapter 08
        Chapter #0:8: start 3903.107542, end 4336.707375
          Metadata:
            title          : Chapter 09
        Chapter #0:9: start 4336.707375, end 4705.242208
          Metadata:
            title          : Chapter 10
        Chapter #0:10: start 4705.242208, end 5515.843667
          Metadata:
            title          : Chapter 11
        Chapter #0:11: start 5515.843667, end 5914.965333
          Metadata:
            title          : Chapter 12
      Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x720 [SAR 1:1 DAR 8:3], 23.98 fps, 23.98 tbr, 1k tbn (default)
          Metadata:
            BPS            : 16300332
            DURATION        : 01:38:34.951000000
            NUMBER_OF_FRAMES: 141817
            NUMBER_OF_BYTES : 12051958344
            _STATISTICS_WRITING_APP: mkvmerge v64.0.0 ('Willows') 64-bit
            _STATISTICS_WRITING_DATE_UTC: 2022-10-03 11:08:12
            _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:1(spa): Audio: dts (dca) (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default) (forced)
          Metadata:
            BPS            : 1509000
            DURATION        : 01:38:45.707000000
            NUMBER_OF_FRAMES: 555535
            NUMBER_OF_BYTES : 1117736488
            _STATISTICS_WRITING_APP: mkvmerge v64.0.0 ('Willows') 64-bit
            _STATISTICS_WRITING_DATE_UTC: 2022-10-03 11:08:12
            _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:2(spa): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
          Metadata:
            BPS            : 640000
            DURATION        : 01:38:35.072000000
            NUMBER_OF_FRAMES: 184846
            NUMBER_OF_BYTES : 473205760
            _STATISTICS_WRITING_APP: mkvmerge v64.0.0 ('Willows') 64-bit
            _STATISTICS_WRITING_DATE_UTC: 2022-10-03 11:08:12
            _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:3(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
          Metadata:
            BPS            : 640000
            DURATION        : 01:38:35.040000000
            NUMBER_OF_FRAMES: 184845
            NUMBER_OF_BYTES : 473203200
            _STATISTICS_WRITING_APP: mkvmerge v64.0.0 ('Willows') 64-bit
            _STATISTICS_WRITING_DATE_UTC: 2022-10-03 11:08:12
            _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:4(spa): Subtitle: subrip (srt) (forced)
          Metadata:
            title          : Firzados
            BPS            : 61
            DURATION        : 00:00:03.800000000
            NUMBER_OF_FRAMES: 1
            NUMBER_OF_BYTES : 29
            _STATISTICS_WRITING_APP: mkvmerge v64.0.0 ('Willows') 64-bit
            _STATISTICS_WRITING_DATE_UTC: 2022-10-03 11:08:12
            _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:5(spa): Subtitle: subrip (srt)
          Metadata:
            BPS            : 37
            DURATION        : 01:31:02.124000000
            NUMBER_OF_FRAMES: 769
            NUMBER_OF_BYTES : 25279
            _STATISTICS_WRITING_APP: mkvmerge v64.0.0 ('Willows') 64-bit
            _STATISTICS_WRITING_DATE_UTC: 2022-10-03 11:08:12
            _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:6(eng): Subtitle: subrip (srt)
          Metadata:
            BPS            : 34
            DURATION        : 01:32:09.425000000
            NUMBER_OF_FRAMES: 784
            NUMBER_OF_BYTES : 23550
            _STATISTICS_WRITING_APP: mkvmerge v64.0.0 ('Willows') 64-bit
            _STATISTICS_WRITING_DATE_UTC: 2022-10-03 11:08:12
            _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream mapping:
      Stream #0:0 -> #0:0 (h264 (native) -> av1 (av1_qsv))
      Stream #0:1 -> #0:1 (dts (dca) -> aac (libfdk_aac))
    Press [q] to stop, [?] for help
    [h264 @ 0x5569e7009d00] Failed to create decode context: 2 (resource allocation failed).
    [h264 @ 0x5569e7009d00] Failed setup for format vaapi: hwaccel initialisation returned error.
    Impossible to convert between the formats supported by the filter 'Parsed_setparams_0' and the filter 'auto_scale_0'
    [vf#0:0 @ 0x5569e700f580] Error reinitializing filters!
    [vf#0:0 @ 0x5569e700f580] Task finished with error code: -38 (Function not implemented)
    [vf#0:0 @ 0x5569e700f580] Terminating thread with return code -38 (Function not implemented)
    [vost#0:0/av1_qsv @ 0x5569e700db00] Could not open encoder before EOF
    [vost#0:0/av1_qsv @ 0x5569e700db00] Task finished with error code: -22 (Invalid argument)
    [vost#0:0/av1_qsv @ 0x5569e700db00] Terminating thread with return code -22 (Invalid argument)
    [out#0/hls @ 0x5569e6ff1200] Nothing was written into output file, because at least one of its streams received no packets.
    frame=    0 fps=0.0 q=0.0 Lsize=      0KiB time=N/A bitrate=N/A speed=N/A   
    Conversion failed!

    (2024-11-07, 03:08 PM)TheDreadPirate Wrote: IIRC, low power encoding is required for Arc and the extra setup for Arc is minimal.  But Debian installs often don't pull down non-free packages out of the box.

    So turning it off may not change anything.

    But the ffmpeg log will confirm if low power encoding is not fully setup.

    Also, what distro are you using?

    I'm using Debian 12, with kernel backports. I don't remember which one, I'm not at home to check it, sorry.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2024-11-07, 03:21 PM
    For this ffmpeg log, it is using AV1 which doesn't have a low power mode. So that isn't a factor, I think.

    But, to eliminate firmware as a factor, we should ensure they are installed.

    Code:
    sudo apt list --installed | grep firmware-linux-nonfree

    If that returns no packages, you will need to add "non-free" and "non-free-firmware" to your apt config for Debian's repos..
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Kiwa
    Offline

    Junior Member

    Posts: 32
    Threads: 6
    Joined: 2024 Aug
    Reputation: 0
    #7
    2024-11-07, 08:38 PM
    (2024-11-07, 03:21 PM)TheDreadPirate Wrote: For this ffmpeg log, it is using AV1 which doesn't have a low power mode.  So that isn't a factor, I think.

    But, to eliminate firmware as a factor, we should ensure they are installed.

    Code:
    sudo apt list --installed | grep firmware-linux-nonfree

    If that returns no packages, you will need to add "non-free" and "non-free-firmware" to your apt config for Debian's repos..

    I've modified the first post because I have version 10.10.0
    The command gives me the following error: "apt does not have a stable CLI interface. Use with caution in scripts."
    However, I've written only "apt list --installed" and searched,
    I have: firmware-amd-graphics , firmware-intel-graphics , firmware-linux-free
    but I don't have the one you mentioned, however it's strange because transcoding usually works, but sometimes, like now, it magically stops working.

    I have added non free to the repository and I get the following problem I attach.

    Should I try updating Jellyfin to 10.10.1?


    Attached Files Thumbnail(s)
       
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #8
    2024-11-07, 08:57 PM
    What is the output of this command?

    Code:
    grep i915 /var/log/dmesg /var/log/dmesg.0
    zgrep i915 /var/log/dmesg.*.gz
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Kiwa
    Offline

    Junior Member

    Posts: 32
    Threads: 6
    Joined: 2024 Aug
    Reputation: 0
    #9
    2024-11-07, 09:12 PM
    (2024-11-07, 08:57 PM)TheDreadPirate Wrote: What is the output of this command?

    Code:
    grep i915 /var/log/dmesg /var/log/dmesg.0
    zgrep i915 /var/log/dmesg.*.gz

    Both no such file or directory...
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #10
    2024-11-07, 09:16 PM
    Interesting. I'm on Ubuntu, but I didn't think Debian would be this different.

    How about this?

    Code:
    sudo dmesg | grep i915

    If that doesn't return anything, reboot and then re-run the command. The dmesg log doesn't retain a lot and your system isn't preserving logs.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Pages (3): 1 2 3 Next »

    « Next Oldest | Next Newest »

    Users browsing this thread: 2 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode