Jellyfin Forum
Fixed - Playback failed with error "loading failed". - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Fixed - Playback failed with error "loading failed". (/t-fixed-playback-failed-with-error-loading-failed)



Fixed - Playback failed with error "loading failed". - jonm - 2024-03-13

Jellyfin Media Player on a Mac, I just started getting this when trying to watch Live TV:

Playback failed with error "loading failed". Retry with transcode? (Note this may hang the player.)

It was working fine without transcoding up until recently, and I've not knowingly changed anything... 

What could be causing this, please? 

Server 10.8.3 on Linux, Fedora 39, Tvheadend for live TV.

Relevant bit of the log: 

Code:
[2024-03-13 15:06:06.789 +01:00] [INF] [37] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "jelly". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2024-03-13 15:06:06.789 +01:00] [INF] [37] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile="Jellyfin Media Player", Path="http://127.0.0.1:9981/stream/channelid/104591168?ticket=c1cb322b16157452321e60427a1c605e9fb9de99", AudioStreamIndex=null, SubtitleStreamIndex=null ) => ( PlayMethod=DirectPlay, TranscodeReason=0 ) "media:/videos/00824aef-a4cc-cf0e-eef8-75125de5bac4/stream?MediaSourceId=104591168&Static=true&AudioStreamIndex=-1&api_key=<token>"
[2024-03-13 15:06:19.987 +01:00] [INF] [38] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "jelly". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2024-03-13 15:06:19.987 +01:00] [INF] [38] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile="Jellyfin Media Player", Path="http://127.0.0.1:9981/stream/channelid/104591168?ticket=c1cb322b16157452321e60427a1c605e9fb9de99", AudioStreamIndex=-1, SubtitleStreamIndex=null ) => ( PlayMethod=Transcode, TranscodeReason=DirectPlayError ) "media:/videos/00824aef-a4cc-cf0e-eef8-75125de5bac4/master.m3u8?MediaSourceId=104591168&VideoCodec=h264&AudioCodec=aac,mp3,ac3&AudioStreamIndex=-1&VideoBitrate=139360000&AudioBitrate=640000&api_key=<token>&TranscodingMaxAudioChannels=6&RequireAvc=false&SegmentContainer=ts&BreakOnNonKeyFrames=False&TranscodeReasons=DirectPlayError"
[2024-03-13 15:06:21.505 +01:00] [INF] [11] Jellyfin.Api.Helpers.TranscodingJobHelper: "/usr/local/bin/ffmpeg" "-analyzeduration 200M -autorotate 0 -i \"http://127.0.0.1:9981/stream/channelid/104591168?ticket=c1cb322b16157452321e60427a1c605e9fb9de99\" -map_metadata -1 -map_chapters -1 -threads 0 -sn -codec:v:0 libx264 -preset superfast -crf 23 -maxrate 139360000 -bufsize 278720000 -x264opts:0 subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none -force_key_frames:0 \"expr:gte(t,n_forced*3)\" -sc_threshold:v:0 0 -vf \"setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,yadif=0:-1:0,format=yuv420p\" -flags -global_header -codec:a:0 libfdk_aac -ac 6 -ab 384000 -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/1e04686c764f80d790d57adf0483d6d6/\" -hls_segment_filename \"/ssd/transcodes/1e04686c764f80d790d57adf0483d6d6%d.ts\" -hls_playlist_type event -hls_list_size 0 -y \"/ssd/transcodes/1e04686c764f80d790d57adf0483d6d6.m3u8\""


Thanks Smiling-face


Playback failed with error "loading failed". Retry with transcode? (Note this may hang the player.)

Playback failed with error "loading failed". Retry with transcode? (Note this may hang the player.)


Answering my own question - the IP for the tvheadend server was 127.0.0.1 and it shouldn't have been... now fixed. Please ignore me Smiling-face