• 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 Off Topic General Discussion Split MKV with chapters

     
    • 0 Vote(s) - 0 Average

    Split MKV with chapters

    Tempus
    Offline

    Junior Member

    Posts: 1
    Threads: 0
    Joined: 2023 Jul
    Reputation: 0
    Country:Australia
    #3
    2023-07-20, 10:07 AM
    I literally just had to deal with this issue too. If you use ffmpeg you can do this:

    Get timecodes for all the chapters
    ffprobe -i input.mkv -show_chapters > chapters.txt

    Note the start_time and end_time for each chapter/episode

    Make and run a .bat file for ffmpeg to create individual videos based on the timecodes, using -ss for the start time and -to for the end time
    For example:
    ffmpeg -i input.mkv -c:v libx264 -c:a aac -map 0:v:0 -map 0:a:0 -map_chapters -1 -sn -ss 0 -to 1310.32 "S01E01.mp4" -c:v libx264 -c:a aac -map 0:v:0 -map 0:a:0 -map_chapters -1 -sn -ss 1310.32 -to 2628.2 "S01E02.mp4" -c:v libx264 -c:a aac -map 0:v:0 -map 0:a:0 -map_chapters -1 -sn -ss 2628.2 -to 3940.92 "S01E03.mp4"
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Split MKV with chapters - by felix920506 - 2023-07-20, 02:17 AM
    RE: Split MKV with chapters - by TheDreadPirate - 2023-07-20, 03:13 AM
    RE: Split MKV with chapters - by Tempus - 2023-07-20, 10:07 AM
    RE: Split MKV with chapters - by Perseverant - 2023-07-20, 10:41 PM

    • 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