• 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 FFMpeg recording exited with code 8 - recording IPTV

     
    • 0 Vote(s) - 0 Average

    FFMpeg recording exited with code 8 - recording IPTV

    Problem recording an IPTV channel
    syd_reddit
    Offline

    Junior Member

    Posts: 10
    Threads: 3
    Joined: 2024 Nov
    Reputation: 0
    #1
    2024-12-05, 06:24 AM
    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.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-12-05, 02:02 PM (This post was last modified: 2024-12-05, 02:03 PM by TheDreadPirate. Edited 1 time in total.)
    Can you share the associated ffmpeg log via pastebin?
    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]
    syd_reddit
    Offline

    Junior Member

    Posts: 10
    Threads: 3
    Joined: 2024 Nov
    Reputation: 0
    #3
    2024-12-05, 11:22 PM (This post was last modified: 2024-12-06, 01:38 PM by TheDreadPirate. Edited 8 times in total.)
    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}')
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-12-06, 01:37 PM
    I did some testing with that source and I think the issue is the ad injection they appear to be doing.
    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]
    syd_reddit
    Offline

    Junior Member

    Posts: 10
    Threads: 3
    Joined: 2024 Nov
    Reputation: 0
    #5
    2024-12-06, 02:43 PM
    Ah right - is there a way that FFMpeg can be tweaked to cope with it?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2024-12-06, 02:48 PM (This post was last modified: 2024-12-06, 02:48 PM by TheDreadPirate.)
    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.
    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]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 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