eharris / mp3splt

mp3splt/mp3splt-gtk/libmp3splt are tools and a library to allow frame-accurate splitting and joining of encoded audio files without requiring decoding or re-encoding. This project was migrated from the abandoned Sourceforge project on 2020-09-13.
0 stars 0 forks source link

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

Closed eharris closed 4 years ago

eharris commented 4 years ago

Imported from SourceForge on 2020-09-13 04:44:04 Created by kintrupf on 2013-04-02 10:03:08 Original: https://sourceforge.net/p/mp3splt/feature-requests/99


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.

eharris commented 4 years ago

Imported from SourceForge on 2020-09-13 04:44:05 Created by io_alex_2004 on 2013-04-04 21:04:16 Original: https://sourceforge.net/p/mp3splt/feature-requests/99/#ae4b


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 ?

eharris commented 4 years ago

Imported from SourceForge on 2020-09-13 04:44:08 Created by kintrupf on 2013-04-05 07:18:18 Original: https://sourceforge.net/p/mp3splt/feature-requests/99/#e1b4


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.

eharris commented 4 years ago

Imported from SourceForge on 2020-09-13 04:44:11 Created by io_alex_2004 on 2013-04-27 20:05:14 Original: https://sourceforge.net/p/mp3splt/feature-requests/99/#5069


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.

eharris commented 4 years ago

Imported from SourceForge on 2020-09-13 04:44:14 Created by kintrupf on 2013-04-28 11:23:46 Original: https://sourceforge.net/p/mp3splt/feature-requests/99/#5069/2114


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

eharris commented 4 years ago

Imported from SourceForge on 2020-09-13 04:44:16 Created by io_alex_2004 on 2013-04-28 17:01:03 Original: https://sourceforge.net/p/mp3splt/feature-requests/99/#aaff


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/

eharris commented 4 years ago

Imported from SourceForge on 2020-09-13 04:44:20 Created by kintrupf on 2013-04-28 21:45:52 Original: https://sourceforge.net/p/mp3splt/feature-requests/99/#133c


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/

eharris commented 4 years ago

Imported from SourceForge on 2020-09-13 04:44:23 Created by io_alex_2004 on 2013-04-30 22:06:33 Original: https://sourceforge.net/p/mp3splt/feature-requests/99/#ac54


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

eharris commented 4 years ago

Imported from SourceForge on 2020-09-13 04:44:25 Created by io_alex_2004 on 2013-07-21 21:58:41 Original: https://sourceforge.net/p/mp3splt/feature-requests/99/#d282


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

eharris commented 4 years ago

Imported from SourceForge on 2020-09-13 04:44:28 Created by io_alex_2004 on 2013-07-21 21:58:52 Original: https://sourceforge.net/p/mp3splt/feature-requests/99/#200c