FFMpeg recording exited with code 8 - recording IPTV - 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: FFMpeg recording exited with code 8 - recording IPTV (/t-ffmpeg-recording-exited-with-code-8-recording-iptv) |
FFMpeg recording exited with code 8 - recording IPTV - syd_reddit - 2024-12-05 Hi, I have Jellyfin running on a Pi 5. It plays IPTV just fine to an iPad and Mac. And it records fine except for 1 family of channels. When I add a program to record, the logs say (my underlining): [2024-12-05 17:15:35.336 +11:00] [INF] Beginning recording. Will record for 44.411054475 minutes. [2024-12-05 17:15:35.336 +11:00] [INF] Writing file to: "/var/lib/jellyfin/data/livetv/recordings/10 News First/Season 2024/10 News First S2024E243.ts" [2024-12-05 17:15:35.339 +11:00] [INF] "/usr/lib/jellyfin-ffmpeg/ffmpeg" "-async 1 -fflags +igndts -analyzeduration 5000000 -i \"https://i.mjh.nz/.r/10-vic.m3u8\" -codec:v:0 copy -fflags +genpts -map_metadata -1 -threads 0 -codec:a:0 copy -sn -y \"/var/lib/jellyfin/data/livetv/recordings/10 News First/Season 2024/10 News First S2024E243.ts\"" [2024-12-05 17:15:35.365 +11:00] [INF] Triggering refresh on "/var/lib/jellyfin/data/livetv/recordings/10 News First/Season 2024/10 News First S2024E243.ts" [2024-12-05 17:15:35.366 +11:00] [INF] Refreshing recording parent "/var/lib/jellyfin/data/livetv/recordings/10 News First/Season 2024" [2024-12-05 17:15:35.372 +11:00] [INF] ffmpeg recording process started for "/var/lib/jellyfin/data/livetv/recordings/10 News First/Season 2024/10 News First S2024E243.ts" [2024-12-05 17:15:36.199 +11:00] [INF] FFMpeg recording exited with code 8 for "/var/lib/jellyfin/data/livetv/recordings/10 News First/Season 2024/10 News First S2024E243.ts" [2024-12-05 17:15:36.201 +11:00] [ERR] Error recording to "/var/lib/jellyfin/data/livetv/recordings/10 News First/Season 2024/10 News First S2024E243.ts" MediaBrowser.Common.FfmpegException: Recording for /var/lib/jellyfin/data/livetv/recordings/10 News First/Season 2024/10 News First S2024E243.ts failed. Exit code 8 at Jellyfin.LiveTv.IO.EncodedRecorder.RecordFromFile(MediaSourceInfo mediaSource, String inputFile, String targetFile, Action onStarted, CancellationToken cancellationToken) at Jellyfin.LiveTv.IO.EncodedRecorder.Record(IDirectStreamProvider directStreamProvider, MediaSourceInfo mediaSource, String targetFile, TimeSpan duration, Action onStarted, CancellationToken cancellationToken) at Jellyfin.LiveTv.Recordings.RecordingsManager.RecordStream(ActiveRecordingInfo recordingInfo, BaseItem channel, DateTime recordingEndDate) This channel plays fine, but just won't record. Hoping someone can assist. RE: FFMpeg recording exited with code 8 - recording IPTV - TheDreadPirate - 2024-12-05 Can you share the associated ffmpeg log via pastebin? RE: FFMpeg recording exited with code 8 - recording IPTV - syd_reddit - 2024-12-05 Here are two logs: IPTV record error on channel that plays successfully https://pastebin.com/JPH1Sctg The first part shows the error when trying to RECORD the stream and the second part shows the log entry when PLAYING the stream successfully. The log does say [https @ 0x5555b5359980] HTTP error 404 Not Found [in#0 @ 0x5555b5359060] Error opening input: Server returned 404 Not Found Error opening input file {IPTV SOURCE - TDP} And here's the FFMEG log https://pastebin.com/yRSy0C7p Threre's two lines that seems to be the issue - presume the IPTV station has redirects to google? [hls @ 0x55567963d650] No longer receiving playlist 1 ('{ad injection URL - TDP}') [hls @ 0x55567963d650] No longer receiving playlist 2 ('{ad injection URL - TDP}') RE: FFMpeg recording exited with code 8 - recording IPTV - TheDreadPirate - 2024-12-06 I did some testing with that source and I think the issue is the ad injection they appear to be doing. RE: FFMpeg recording exited with code 8 - recording IPTV - syd_reddit - 2024-12-06 Ah right - is there a way that FFMpeg can be tweaked to cope with it? RE: FFMpeg recording exited with code 8 - recording IPTV - TheDreadPirate - 2024-12-06 Not that I am aware of. You could try setting up an IPTV proxy like TVHeadend. Setup TVHeadend, add your IPTV source to it, install TVHeadend plugin in Jellyfin, configure TVHeadend proxy as IPTV source in Jellyfin. |