Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 8 of 8
  1. #1
    Senior Member
    Join Date
    Dec 2013
    Posts
    110

    Extract chapter markers from mp4 into m3u for fextracted Flac file

    Hi

    I have a concert recording which has chapter markers. So far, so good.
    It is in mp4 format, and I would like to extract the audio. I did this using ffmpeg :

    ffmpeg -i Concert\ for\ Charlottesville\ \(2017\).mp4 -vn -acodec copy Concert\ for\ Charlottesville\ \(2017\).aac

    But this did obviously not include the chapter markers.

    Is there a way to extract the chapter markers as an m3u, or split the mp4 by chapter markers and rename them accordingly?

    Thanks,

    Rainer

  2. #2
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    20,429
    I briefly looked at chapter markers in MPEG4 in relation whether they needed to be part of MPEG4 support in LMS but after looking around I felt they weren't used much in audio except for audiobooks.

    From memory.

    I think ffmpeg support of chapter marker for mPEG4 file is limited.

    I think best support for MPEG4 chapter handling is with MP4Box but it does not have the solution you require.

    Do you really need m3u file or do you want chapter support when playing MEPG-4 files (which can be aac,mp3 or another audio codec) - similar to CUE file handling.

  3. #3
    Senior Member
    Join Date
    Dec 2013
    Posts
    110

    Extract chapter markers from mp4 into m3u for fextractedFlac file

    I do not think I think I really need m3u files, but I would like to have the 5 hour concert marked / split into individual tracks so that I can access the individual tracks. I remember, that an m3u accompanying the audio (in my case after extraction as aaa, converted to Flac) would be one option, but I would be open (and prefer) the splitting into individual files.



    > On 3 Mar 2021, at 11:16, bpa <bpa.9xxkbz (AT) no-mx (DOT) forums.slimdevices.com> wrote:
    >
    >
    > I briefly looked at chapter markers in MPEG4 in relation whether they
    > needed to be part of MPEG4 support in LMS but after looking around I
    > felt they weren't used much in audio except for audiobooks.
    >
    > From memory.
    >
    > I think ffmpeg support of chapter marker for mPEG4 file is limited.
    >
    > I think best support for MPEG4 chapter handling is with MP4Box but it
    > does not have the solution you require.
    >
    > Do you really need m3u file or do you want chapter support when playing
    > MEPG-4 files (which can be aac,mp3 or another audio codec) - similar to
    > CUE file handling.
    >
    >
    > ------------------------------------------------------------------------
    > bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
    > View this thread: http://forums.slimdevices.com/showthread.php?t=114072
    >
    >

  4. #4
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    20,429
    Quote Originally Posted by rkrug View Post
    I do not think I think I really need m3u files, but I would like to have the 5 hour concert marked / split into individual tracks so that I can access the individual tracks. I remember, that an m3u accompanying the audio (in my case after extraction as aaa, converted to Flac) would be one option, but I would be open (and prefer) the splitting into individual files.
    LMS has playlist processing. With somehting like CUE file - the cue file is processed to create virtual tracks from a single audio file (e.g. flac).

    If your mpeg-4 audio file was processed to create a virtual track list - would that meet your requirements ? or do you really want the file split into separate files which can then be playable by LMS.

    The issue is whether the task is an LMS code addon or the use of external tools and if equally acceptable then which is simpler.

    edit:

    There are different version of chapters. For example, is this an old Quicktime file or a modern MP4G-4 with "chpl" atoms. (i.e how was it created)

  5. #5
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    4,193
    Paul Webster
    http://dabdig.blogspot.com
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, Supla Finland, ABC Australia, CBC/Radio-Canada and RTE Ireland

  6. #6
    Senior Member
    Join Date
    Dec 2013
    Posts
    110

    Extract chapter markers from mp4 into m3u for fextractedFlac file

    Thanks Paul - sounds inter but esI am a Mac and Linux person - no Windows at hand.


    > On 3 Mar 2021, at 12:35, Paul Webster <Paul.Webster.9xxny0 (AT) no-mx (DOT) forums.slimdevices.com> wrote:
    >
    >
    > This tool might help
    > https://github.com/tautcony/ChapterTool
    >
    >
    >
    > Paul Webster
    > http://dabdig.blogspot.com
    > author of "now playing" plugins covering radio france (fip etc), kcrw,
    > supla finland, abc australia, cbc/radio-canada and rte ireland
    > ------------------------------------------------------------------------
    > Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105
    > View this thread: http://forums.slimdevices.com/showthread.php?t=114072
    >
    >

  7. #7
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    20,429
    Quote Originally Posted by rkrug View Post
    Thanks Paul - sounds inter but esI am a Mac and Linux person - no Windows at hand.
    There are lots of tools available (some better than others and ways to run windows under Linux)

    the question is what do you want/need so some options can be eliminated ? to split the file into small files or just play the file as a series of virtual tracks ?

  8. #8
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    4,193
    How about this one then ... in JavaScript.

    If it manages to extract the markers from your file then you could modify the output part of it to write a .cue file.

    https://gist.github.com/gglnx/86bc6d...b3a1f8a8235427
    Paul Webster
    http://dabdig.blogspot.com
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, Supla Finland, ABC Australia, CBC/Radio-Canada and RTE Ireland

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •