2023-10-15, 10:13 PM
I am trying to watch a movie via the Jellyfin app for Roku TV, but at certain points throughout the movie, it exits with an extremely helpful and descriptive message "An error was encountered while playing this item."... if I go back to play the movie again, it will play for a few more seconds, then exit again.
The logs are below:
I can get as far as determining that the audio codec is at the heart of the problem. The file properties say the codec is AC-3 (ATSC A/52) surround 5.1, sample rate 48 kHz. My research indicates that the Jellyfin Roku TV app should have native support for this. I am asking my TV to downsample to stereo, but that shouldn't affect Jellyfin's ability to play back the item, right?
Any suggestions?
The logs are below:
Code:
[2023-10-15 14:41:46.740 -07:00] [INF] [87] Emby.Server.Implementations.Session.SessionManager: Current/Max sessions for user "media": 0/0
[2023-10-15 14:41:46.748 -07:00] [INF] [87] Emby.Server.Implementations.Session.SessionManager: Creating new access token for user d99f2414-c961-4759-b49d-95e0e29ee804
[2023-10-15 14:46:46.253 -07:00] [INF] [109] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "media". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2023-10-15 14:46:46.301 -07:00] [INF] [109] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile="Anonymous Profile", Path="/movies/The Lord of the Rings/2001. The Fellowship of the Ring/Part 1.mkv", AudioStreamIndex=1, SubtitleStreamIndex=-1 ) => ( PlayMethod=Transcode, TranscodeReason=AudioCodecNotSupported ) "media:/videos/662c21e9-37f9-164e-d730-f17c9d70c125/master.m3u8?MediaSourceId=662c21e937f9164ed730f17c9d70c125&VideoCodec=hevc,h264,hevc&AudioCodec=aac,ac3&AudioStreamIndex=1&VideoBitrate=40000000&AudioBitrate=640000&MaxFramerate=23.976025&api_key=<token>&SubtitleMethod=Encode&TranscodingMaxAudioChannels=6&RequireAvc=false&Tag=038a8e5949ffcc54017f98cb8171a0ba&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&hevc-level=153&hevc-videobitdepth=10&hevc-profile=main10&hevc-rangetype=SDR,HDR10,HLG&TranscodeReasons=AudioCodecNotSupported"
[2023-10-15 14:46:46.998 -07:00] [INF] [61] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[2023-10-15 14:46:47.012 -07:00] [INF] [61] Jellyfin.Api.Helpers.TranscodingJobHelper: "/usr/lib/jellyfin-ffmpeg/ffmpeg" "-analyzeduration 200M -fflags +genpts -i file:\"/movies/The Lord of the Rings/2001. The Fellowship of the Ring/Part 1.mkv\" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -tag:v:0 hvc1 -bsf:v hevc_mp4toannexb -start_at_zero -codec:a:0 libfdk_aac -ac 6 -ab 640000 -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 6 -hls_segment_type mpegts -start_number 0 -hls_segment_filename \"/config/data/transcodes/7f00b6e0444d84d2d2d6d59ddfb83388%d.ts\" -hls_playlist_type vod -hls_list_size 0 -y \"/config/data/transcodes/7f00b6e0444d84d2d2d6d59ddfb83388.m3u8\""
[2023-10-15 14:46:47.635 -07:00] [WRN] [45] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://10.0.0.238:8096/videos/662c21e9-37f9-164e-d730-f17c9d70c125/hls1/main/0.ts?DeviceId=c409ab06-f0e6-57f2-a917-0a05f751e8c3&MediaSourceId=662c21e937f9164ed730f17c9d70c125&VideoCodec=hevc,h264,hevc&AudioCodec=aac,ac3&AudioStreamIndex=1&VideoBitrate=40000000&AudioBitrate=640000&MaxFramerate=23.976025&PlaySessionId=950a2e1f5f284f39865568864df91744&api_key=cb86c5cd40444e10b31f5f8cb2e4397b&SubtitleMethod=Encode&TranscodingMaxAudioChannels=6&RequireAvc=false&Tag=038a8e5949ffcc54017f98cb8171a0ba&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&hevc-level=153&hevc-videobitdepth=10&hevc-profile=main10&hevc-rangetype=SDR,HDR10,HLG&TranscodeReasons=AudioCodecNotSupported&runtimeTicks=0&actualSegmentLengthTicks=64230000" to "10.0.0.27" in 0:00:00.6498463 with Status Code 200
[2023-10-15 14:47:02.249 -07:00] [INF] [61] Jellyfin.Api.Helpers.TranscodingJobHelper: Stopping ffmpeg process with q command for "/config/data/transcodes/7f00b6e0444d84d2d2d6d59ddfb83388.m3u8"
[2023-10-15 14:47:02.271 -07:00] [INF] [61] Jellyfin.Api.Helpers.TranscodingJobHelper: FFmpeg exited with code 0
[2023-10-15 14:47:02.274 -07:00] [INF] [61] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[2023-10-15 14:47:02.274 -07:00] [INF] [61] Jellyfin.Api.Helpers.TranscodingJobHelper: "/usr/lib/jellyfin-ffmpeg/ffmpeg" "-analyzeduration 200M -ss 00:10:06.105 -fflags +genpts -i file:\"/movies/The Lord of the Rings/2001. The Fellowship of the Ring/Part 1.mkv\" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -tag:v:0 hvc1 -bsf:v hevc_mp4toannexb -start_at_zero -codec:a:0 libfdk_aac -ac 6 -ab 640000 -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 6 -hls_segment_type mpegts -start_number 101 -hls_segment_filename \"/config/data/transcodes/7f00b6e0444d84d2d2d6d59ddfb83388%d.ts\" -hls_playlist_type vod -hls_list_size 0 -y \"/config/data/transcodes/7f00b6e0444d84d2d2d6d59ddfb83388.m3u8\""
[2023-10-15 14:47:03.386 -07:00] [WRN] [61] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://10.0.0.238:8096/videos/662c21e9-37f9-164e-d730-f17c9d70c125/hls1/main/101.ts?DeviceId=c409ab06-f0e6-57f2-a917-0a05f751e8c3&MediaSourceId=662c21e937f9164ed730f17c9d70c125&VideoCodec=hevc,h264,hevc&AudioCodec=aac,ac3&AudioStreamIndex=1&VideoBitrate=40000000&AudioBitrate=640000&MaxFramerate=23.976025&PlaySessionId=950a2e1f5f284f39865568864df91744&api_key=cb86c5cd40444e10b31f5f8cb2e4397b&SubtitleMethod=Encode&TranscodingMaxAudioChannels=6&RequireAvc=false&Tag=038a8e5949ffcc54017f98cb8171a0ba&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&hevc-level=153&hevc-videobitdepth=10&hevc-profile=main10&hevc-rangetype=SDR,HDR10,HLG&TranscodeReasons=AudioCodecNotSupported&runtimeTicks=6061050000&actualSegmentLengthTicks=66320000" to "10.0.0.27" in 0:00:01.1403929 with Status Code 200
[2023-10-15 14:51:13.821 -07:00] [INF] [48] Jellyfin.Api.Helpers.TranscodingJobHelper: Stopping ffmpeg process with q command for "/config/data/transcodes/7f00b6e0444d84d2d2d6d59ddfb83388.m3u8"
[2023-10-15 14:51:13.841 -07:00] [INF] [48] Jellyfin.Api.Helpers.TranscodingJobHelper: FFmpeg exited with code 0
[2023-10-15 14:51:13.842 -07:00] [INF] [48] Jellyfin.Api.Helpers.TranscodingJobHelper: Deleting partial stream file(s) "/config/data/transcodes/7f00b6e0444d84d2d2d6d59ddfb83388.m3u8"
[2023-10-15 14:51:15.924 -07:00] [INF] [48] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app "Jellyfin Roku" "1.6.6" playing "The Lord of the Rings: The Fellowship of the Ring". Stopped at "852000" ms
[2023-10-15 14:51:15.961 -07:00] [WRN] [48] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://10.0.0.238:8096/Sessions/Playing/Stopped" to "10.0.0.27" in 0:00:02.1471463 with Status Code 204
[2023-10-15 14:54:58.759 -07:00] [INF] [36] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "media". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2023-10-15 14:54:58.760 -07:00] [INF] [36] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile="Anonymous Profile", Path="/movies/The Lord of the Rings/2001. The Fellowship of the Ring/Part 1.mkv", AudioStreamIndex=1, SubtitleStreamIndex=-1 ) => ( PlayMethod=Transcode, TranscodeReason=AudioCodecNotSupported ) "media:/videos/662c21e9-37f9-164e-d730-f17c9d70c125/master.m3u8?MediaSourceId=662c21e937f9164ed730f17c9d70c125&VideoCodec=hevc,h264,hevc&AudioCodec=aac,ac3&AudioStreamIndex=1&VideoBitrate=40000000&AudioBitrate=640000&MaxFramerate=23.976025&api_key=<token>&SubtitleMethod=Encode&TranscodingMaxAudioChannels=6&RequireAvc=false&Tag=038a8e5949ffcc54017f98cb8171a0ba&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&hevc-level=153&hevc-videobitdepth=10&hevc-profile=main10&hevc-rangetype=SDR,HDR10,HLG&TranscodeReasons=AudioCodecNotSupported"
[2023-10-15 14:54:59.399 -07:00] [INF] [36] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[2023-10-15 14:54:59.400 -07:00] [INF] [36] Jellyfin.Api.Helpers.TranscodingJobHelper: "/usr/lib/jellyfin-ffmpeg/ffmpeg" "-analyzeduration 200M -ss 00:14:06.679 -fflags +genpts -i file:\"/movies/The Lord of the Rings/2001. The Fellowship of the Ring/Part 1.mkv\" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -tag:v:0 hvc1 -bsf:v hevc_mp4toannexb -start_at_zero -codec:a:0 libfdk_aac -ac 6 -ab 640000 -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 6 -hls_segment_type mpegts -start_number 141 -hls_segment_filename \"/config/data/transcodes/493a95384e891c35030def5f07c06dd2%d.ts\" -hls_playlist_type vod -hls_list_size 0 -y \"/config/data/transcodes/493a95384e891c35030def5f07c06dd2.m3u8\""
[2023-10-15 14:55:00.434 -07:00] [WRN] [68] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://10.0.0.238:8096/videos/662c21e9-37f9-164e-d730-f17c9d70c125/hls1/main/141.ts?DeviceId=c409ab06-f0e6-57f2-a917-0a05f751e8c3&MediaSourceId=662c21e937f9164ed730f17c9d70c125&VideoCodec=hevc,h264,hevc&AudioCodec=aac,ac3&AudioStreamIndex=1&VideoBitrate=40000000&AudioBitrate=640000&MaxFramerate=23.976025&PlaySessionId=eaf62023ad3d4e94b70ab8893e47cc13&api_key=cb86c5cd40444e10b31f5f8cb2e4397b&SubtitleMethod=Encode&TranscodingMaxAudioChannels=6&RequireAvc=false&Tag=038a8e5949ffcc54017f98cb8171a0ba&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&hevc-level=153&hevc-videobitdepth=10&hevc-profile=main10&hevc-rangetype=SDR,HDR10,HLG&TranscodeReasons=AudioCodecNotSupported&runtimeTicks=8466790000&actualSegmentLengthTicks=60060000" to "10.0.0.27" in 0:00:01.0401778 with Status Code 200
[2023-10-15 14:55:10.503 -07:00] [INF] [70] Jellyfin.Api.Helpers.TranscodingJobHelper: Stopping ffmpeg process with q command for "/config/data/transcodes/493a95384e891c35030def5f07c06dd2.m3u8"
[2023-10-15 14:55:10.536 -07:00] [INF] [70] Jellyfin.Api.Helpers.TranscodingJobHelper: FFmpeg exited with code 0
[2023-10-15 14:55:10.537 -07:00] [INF] [70] Jellyfin.Api.Helpers.TranscodingJobHelper: Deleting partial stream file(s) "/config/data/transcodes/493a95384e891c35030def5f07c06dd2.m3u8"
I can get as far as determining that the audio codec is at the heart of the problem. The file properties say the codec is AC-3 (ATSC A/52) surround 5.1, sample rate 48 kHz. My research indicates that the Jellyfin Roku TV app should have native support for this. I am asking my TV to downsample to stereo, but that shouldn't affect Jellyfin's ability to play back the item, right?
Any suggestions?