Menu

#99 Parameter "trackjoin" should work with option "-a"

closed
nobody
trackjoin (1)
1
2013-07-21
2013-04-02
No

I like to split audio books into smaller parts of around 5 minutes. This enables me to fast skip forward or backward within the book with my car stereo. Very useful when you read the same book as eBook or listen to it on a different player ;-)

I'm using this command line to split the files:
mp3splt -f -a -t 5.00 <file>

Works fine for almost all cases, but sometimes a file is split just a few seconds before its end, annoyingly creating a small trailing file of these few seconds.
So I would like to use the "trackjoin" parameter to create files that are, for example, at least 60 seconds long. If a split point is closer than that to the end of a file: skip it.

Related

Feature Requests: #99

Discussion

  • Munteanu Alexandru

    If I understand well, the only issue here is with the last split file.
    All the other split files will most likely be more than 60 seconds long.

    It is not very easy to introduce the 'trackjoin' parameter for the auto adjust option for the moment (because when splitting using silence detection, the split points are detected before the split and when using the auto adjust option, the point is adjusted while splitting).

    What about "not auto adjusting" the last end splitpoint ?

     

    Last edit: Munteanu Alexandru 2013-04-04
  • Frank Kintrup

    Frank Kintrup - 2013-04-05

    Yes, it's only the last split that. All previous splits are fine.
    And it doesnt't have to be the "trackjoin" parameter, a new parameter for -a would be fine, too. ;-)

    I guess you know roughly where you are in the file when you decide to create a splitpoint with -a. Couldn't you then check if there are less than x seconds left in the file and just skip that splitpoint? It doesn't need to very accurate.

     
  • Munteanu Alexandru

    Sorry for the late reply.
    I just wanted to finish an ongoing development before starting this.
    I am now ready to work on this.
    I was thinking about this issue ... in fact, this has nothing to do with the auto adjust option.
    Suppose that you don't use the auto adjust option, it is most likely related to the use of the -t parameter.
    Say for example if the input file has 16 minutes and 3 seconds, then splitting it at every 5 minutes will produce a last file of 1 minute and 3 seconds.
    Probably the best is to introduce an option related to -t for the minimum theoretical track length.

     
    • Frank Kintrup

      Frank Kintrup - 2013-04-28

      An option to request a minimum track length would be just what I need!
      Thank you for considering it!

       
  • Munteanu Alexandru

    I have implemented the minimum track length for the time mode split like this:

    $ ./mp3splt -d output/ songs/La_Verue__Today.mp3 -t "1.0"
    mp3splt 2.6.1320 (28/04/13) - using libmp3splt 0.9.1320
            Matteo Trotta <mtrotta AT users.sourceforge.net>
            Alexandru Munteanu <m AT ioalex.net>
    THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
     Processing file 'songs/La_Verue__Today.mp3' ...
     info: file matches the plugin 'mp3 (libmad)'
     info: found Xing or Info header. Switching to frame mode...
     info: MPEG 1 Layer 3 - 44100 Hz - Joint Stereo - FRAME MODE - Total time: 4m.05s
     info: starting time mode split
       File "output/La_Verue__Today_00m_00s__01m_00s.mp3" created
       File "output/La_Verue__Today_01m_00s__02m_00s.mp3" created
       File "output/La_Verue__Today_02m_00s__03m_00s.mp3" created
       File "output/La_Verue__Today_03m_00s__04m_00s.mp3" created
       File "output/La_Verue__Today_04m_00s__04m_05s_58h.mp3" created
     Processed 9402 frames - Sync errors: 0
     time split ok
    
    $ ./mp3splt -d output/ songs/La_Verue__Today.mp3 -t "1.0>0.06"
    mp3splt 2.6.1320 (28/04/13) - using libmp3splt 0.9.1320
            Matteo Trotta <mtrotta AT users.sourceforge.net>
            Alexandru Munteanu <m AT ioalex.net>
    THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
     Processing file 'songs/La_Verue__Today.mp3' ...
     info: file matches the plugin 'mp3 (libmad)'
     info: found Xing or Info header. Switching to frame mode...
     info: MPEG 1 Layer 3 - 44100 Hz - Joint Stereo - FRAME MODE - Total time: 4m.05s
     info: starting time mode split
       File "output/La_Verue__Today_00m_00s__01m_00s.mp3" created
       File "output/La_Verue__Today_01m_00s__02m_00s.mp3" created
       File "output/La_Verue__Today_02m_00s__03m_00s.mp3" created
       File "output/La_Verue__Today_03m_00s__04m_05s_58h.mp3" created
     Processed 9402 frames - Sync errors: 0
     time split ok
    

    Please note that this minimum is before the auto adjust - using the theoretical splitpoints.

    You can try using the snapshot of this latest development version:
    http://ioalex.net/testing_downloads/

     
  • Frank Kintrup

    Frank Kintrup - 2013-04-28

    <html><head></head><body>


    Hi,

     
    Thank you!!!
     
    I just tried it with the -a option like this:
    mp3splt.exe -f -a -t "5.00>1.00" <file>

    The test track is 50:04 min so it should skip the very last split. And it did!
    Please get yourself a beer, I've just donated some money to mp3plt.
     
    Frank
     
     
    Gesendet: Sonntag, 28. April 2013 um 19:01 Uhr
    Von: "Munteanu Alexandru" <io_alex_2004@users.sf.net>
    An: "[mp3splt:feature-requests] " <99@feature-requests.mp3splt.p.re.sf.net>
    Betreff: [mp3splt:feature-requests] #99 Parameter "trackjoin" should work with option "-a"

    I have implemented the minimum track length for the time mode split like this:

    $ ./mp3splt -d output/ songs/La_Verue__Today.mp3 -t "1.0"
    mp3splt 2.6.1320 (28/04/13) - using libmp3splt 0.9.1320
            Matteo Trotta <mtrotta AT users.sourceforge.net>
            Alexandru Munteanu <m AT ioalex.net>
    THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
     Processing file 'songs/La_Verue__Today.mp3' ...
     info: file matches the plugin 'mp3 (libmad)'
     info: found Xing or Info header. Switching to frame mode...
     info: MPEG 1 Layer 3 - 44100 Hz - Joint Stereo - FRAME MODE - Total time: 4m.05s
     info: starting time mode split
       File "output/La_Verue__Today_00m_00s__01m_00s.mp3" created
       File "output/La_Verue__Today_01m_00s__02m_00s.mp3" created
       File "output/La_Verue__Today_02m_00s__03m_00s.mp3" created
       File "output/La_Verue__Today_03m_00s__04m_00s.mp3" created
       File "output/La_Verue__Today_04m_00s__04m_05s_58h.mp3" created
     Processed 9402 frames - Sync errors: 0
     time split ok
    
    $ ./mp3splt -d output/ songs/La_Verue__Today.mp3 -t "1.0>0.06"
    mp3splt 2.6.1320 (28/04/13) - using libmp3splt 0.9.1320
            Matteo Trotta <mtrotta AT users.sourceforge.net>
            Alexandru Munteanu <m AT ioalex.net>
    THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
     Processing file 'songs/La_Verue__Today.mp3' ...
     info: file matches the plugin 'mp3 (libmad)'
     info: found Xing or Info header. Switching to frame mode...
     info: MPEG 1 Layer 3 - 44100 Hz - Joint Stereo - FRAME MODE - Total time: 4m.05s
     info: starting time mode split
       File "output/La_Verue__Today_00m_00s__01m_00s.mp3" created
       File "output/La_Verue__Today_01m_00s__02m_00s.mp3" created
       File "output/La_Verue__Today_02m_00s__03m_00s.mp3" created
       File "output/La_Verue__Today_03m_00s__04m_05s_58h.mp3" created
     Processed 9402 frames - Sync errors: 0
     time split ok
    

    Please note that this minimum is before the auto adjust - using the theoretical splitpoints.

    You can try using the snapshot of this latest development version:
    http://ioalex.net/testing_downloads/



    [feature-requests:#99] Parameter "trackjoin" should work with option "-a"

    Status: open
    Labels: trackjoin
    Created: Tue Apr 02, 2013 10:03 AM UTC by Frank Kintrup
    Last Updated: Sat Apr 27, 2013 08:05 PM UTC
    Owner: nobody

    I like to split audio books into smaller parts of around 5 minutes. This enables me to fast skip forward or backward within the book with my car stereo. Very useful when you read the same book as eBook or listen to it on a different player ;-)

    I'm using this command line to split the files:
    mp3splt -f -a -t 5.00

    Works fine for almost all cases, but sometimes a file is split just a few seconds before its end, annoyingly creating a small trailing file of these few seconds.
    So I would like to use the "trackjoin" parameter to create files that are, for example, at least 60 seconds long. If a split point is closer than that to the end of a file: skip it.



    Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/mp3splt/feature-requests/99/

    To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/





    </body></html>

     

    Related

    Feature Requests: #99

  • Munteanu Alexandru

    Thank you very much :)
    Feel free to report anything else.

     

    Last edit: Munteanu Alexandru 2013-04-30
  • Munteanu Alexandru

    I am closing the issue because this is now in the released version of mp3splt 2.6.

     
  • Munteanu Alexandru

    • status: open --> closed