• 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 General Questions Comskip and Media Segments

     
    • 0 Vote(s) - 0 Average

    Comskip and Media Segments

    AustinL
    Offline

    Junior Member

    Posts: 9
    Threads: 1
    Joined: 2025 Jan
    Reputation: 0
    Country:United Kingdom
    #3
    2025-03-20, 10:35 AM
    Thanks!

    I will certainly post my code, but it's still embarrassingly sloppy... I will do so when I have tidied it up a little bit and fixed a couple of issues :-)

    But basically, apart from one or two niggles it works as expected, and as a post-processing script set up in the DVR settings. Storage is a local drive on the PC, and recordings are stored in the default Jellyfish location - C:\ProgramData\Jellyfin\Server\data\livetv\recordings

    The Niggles (both minor):

    1. As mentioned, I need to run a scan before Jellyfin will recognise the new .mkv file, even though I have "Enable real time monitoring" checked in the Recordings library settings (maybe because it has the same filename as the original .ts file?).
    2. For some reason my script can't delete the original .ts file, I think this is either a permissions issue (but there are no problems deleting the various other files generated by Comskip and ffmpeg), or because the file is still open by ffmpeg when the script runs - I have added a try/retry block in case this is the case, but without luck.

    But... the reason for my post isn't the niggles (I'll try to figure these out myself), but that I think there might be a way of using the Media Segments API to skip one of the stages... so right now, my script uses ffmpeg to remux the .ts to .mkv and mark chapters, and then JellyFin uses the chapters to mark the Media Segments based on the chapters - my understanding is that once this is done, the chapters themselves are of no further use. Wouldn't it be more efficient to skip the remuxing, and just call the Media Segments API directly after Comskip has identified the timestamps of the commercials?

    I'm not really sure how to do this though - my understanding is the the Media Segments API is still a plugin and maybe not supported yet?

    Thanks again,
    Austin
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Comskip and Media Segments - by AustinL - 2025-03-19, 01:42 PM
    RE: Comskip and Media Segments - by TheDreadPirate - 2025-03-19, 02:07 PM
    RE: Comskip and Media Segments - by AustinL - 2025-03-20, 10:35 AM
    RE: Comskip and Media Segments - by TheDreadPirate - 2025-03-20, 02:22 PM
    RE: Comskip and Media Segments - by AustinL - 2025-03-21, 12:47 PM
    RE: Comskip and Media Segments - by TheDreadPirate - 2025-03-21, 01:17 PM
    RE: Comskip and Media Segments - by AustinL - 2025-03-21, 01:41 PM
    RE: Comskip and Media Segments - by TheDreadPirate - 2025-03-21, 01:52 PM
    RE: Comskip and Media Segments - by AustinL - 2025-03-21, 10:56 PM
    RE: Comskip and Media Segments - by esvee - 2025-03-25, 07:11 AM
    RE: Comskip and Media Segments - by esvee - 2025-03-25, 07:19 AM
    RE: Comskip and Media Segments - by TheDreadPirate - 2025-03-25, 01:45 PM
    RE: Comskip and Media Segments - by esvee - 2025-03-25, 03:25 PM
    RE: Comskip and Media Segments - by AustinL - 2025-03-31, 11:00 PM
    RE: Comskip and Media Segments - by TheDreadPirate - 2025-04-01, 01:27 PM
    RE: Comskip and Media Segments - by AustinL - 2025-04-01, 07:16 PM
    RE: Comskip and Media Segments - by AustinL - 2025-04-01, 07:29 PM
    RE: Comskip and Media Segments - by AustinL - 2025-04-02, 10:35 AM

    • 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