Regular Interval Labels - cannot handle large files

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Splaxi
Posts: 6
Joined: Thu Feb 12, 2015 9:55 am
Operating System: Please select

Regular Interval Labels - cannot handle large files

Post by Splaxi » Thu Feb 12, 2015 10:36 am

Hi guys!

I'm new in town and hope that some one could help me out.

I'm trying to split a large/long track into several small tracks. After some searching I finally found the magic wand - "Regular Interval Labels", it's a great tool!

It seems that I'm pushing the plugin to the limits:
When trying to set an interval higher than 480 seconds - it fails.
When selecting a track section longer than 7 hours and 55 minutes - it fails.

Can someone guide me to the source code of the plugin? I might be able to fix the issues myself.

Have some of you ever worked on tracks that long and trying to split them?

Thank you for your time.

/Splaxi

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Regular Interval Labels - cannot handle large files

Post by Gale Andrews » Thu Feb 12, 2015 3:52 pm

Could you please look at the pink panel at the top of the page and fill in the information requested.

If you look in the Plugins folder where you are running Audacity from, you can open "equalabel.ny" in your favourite text editor and change it.
splaxi wrote:I'm trying to split a large/long track into several small tracks. After some searching I finally found the magic wand - "Regular Interval Labels", it's a great tool!

It seems that I'm pushing the plugin to the limits:
When trying to set an interval higher than 480 seconds - it fails.
What happens exactly? I have just labelled an hour long track with an interval of 600 seconds (Audacity 2.1.0-alpha, Windows 8.1).
splaxi wrote:When selecting a track section longer than 7 hours and 55 minutes - it fails.
On the same system, I've just labelled a 10 hour track with 60 labels at intervals of 600 seconds.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Splaxi
Posts: 6
Joined: Thu Feb 12, 2015 9:55 am
Operating System: Please select

Re: Regular Interval Labels - cannot handle large files

Post by Splaxi » Thu Feb 12, 2015 4:46 pm

Hi Gale,

Sorry for my missing details:
Windows XP SP3
Audacity 2.0.6
I downloaded the exe file.

The error I get is "Including your time offset of ~a seconds, your requested~%label interval of ~a seconds is greater than the duration~%of your selected audio (~a seconds)". I just copied the error from the plugin, because I found a way around my issue. The problem might be that I'm running Windows XP.

I've built a label file generator, that fits my needs. It's a bat file and will ask for hours, minutes, seconds, timesplit period and the title for the labels. It handles up to 999 files.

Code: Select all

@echo off
SETLOCAL ENABLEDELAYEDEXPANSION

echo "Remove this line" s> test.txt

set /p Hours="Hours: "

set /p Minutes="Minutes: "

set /p Seconds="Seconds: "

set /p Titel="Titel for tracks: "

set /p Timesplit="Timesplit in seconds: "

set /A TotalSeconds = %Hours% * 60 * 60 + (%Minutes% * 60) + (%Seconds% * 1)

echo Total time is "%TotalSeconds%"

set /A Counter = %TotalSeconds% / %Timesplit%

echo Total chapters is "%Counter%"

set /A countTemp=0
set /A Counter=%Counter%+1
set Chapter = 0

FOR /L %%G in (0,1,%Counter%) DO (
	set /A Chapter=!countTemp!+1
	set Var=00!Chapter!
	set Var=!Var:~-3!
	
	set /A Temp = !countTemp! * %Timesplit%
	echo !Temp!,000000	!Temp!,000000	%Titel%-!Var! >> Labels.txt
	set /A countTemp=!countTemp!+1
)

ENDLOCAL
But I might try import the next large file to my Win7 machine and compare what I can do on either machine.

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Regular Interval Labels - cannot handle large files

Post by Gale Andrews » Thu Feb 12, 2015 5:42 pm

Splaxi wrote:The error I get is "Including your time offset of ~a seconds, your requested~%label interval of ~a seconds is greater than the duration~%of your selected audio (~a seconds)".
So looking at your selection length and your offset and label interval setting, is that error statement true?

If not, please state the track length, selection length and the exact value of each setting in the plugin. A screenshot may be convenient. Please see here for how to attach files: http://forum.audacityteam.org/viewtopic ... 49&t=64936.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Splaxi
Posts: 6
Joined: Thu Feb 12, 2015 9:55 am
Operating System: Please select

Re: Regular Interval Labels - cannot handle large files

Post by Splaxi » Thu Feb 12, 2015 9:41 pm

Hi Gale,

I will do a screen shot in the weekend - so you can see what my settings are when it's working and what they are when it doesn't work.
Gale Andrews wrote:So looking at your selection length and your offset and label interval setting, is that error statement true?
From my point of view - no. I did CTRL+A (Select ALL), and the time periods in the bar at the bottom was 00:00:00.000 - 14:37:20.000. In the Regular Interval form I only changed the period and how the numbers should be applied to the prefix text. When I tried with a smaller part of the track(00:00:00.000 - 08:00:00.000), but it still failed, the time selection in the bar at the bottom defaulted back to the full length of the track. So I concluded that something must have gone wrong, since it changed my selection.

But I will supply screenshots over the weekend :)

steve
Site Admin
Posts: 81649
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Regular Interval Labels - cannot handle large files

Post by steve » Fri Feb 13, 2015 1:41 am

Splaxi wrote:When trying to set an interval higher than 480 seconds - it fails.
When selecting a track section longer than 7 hours and 55 minutes - it fails.
I've just tried an 8 hour selection with labels at intervals of 600 seconds.
It works fine here:
window000.png
window000.png (58.75 KiB) Viewed 979 times
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Regular Interval Labels - cannot handle large files

Post by Gale Andrews » Fri Feb 13, 2015 3:48 pm

Splaxi wrote:
Gale Andrews wrote:So looking at your selection length and your offset and label interval setting, is that error statement true?
From my point of view - no. I did CTRL+A (Select ALL), and the time periods in the bar at the bottom was 00:00:00.000 - 14:37:20.000. In the Regular Interval form I only changed the period and how the numbers should be applied to the prefix text.
if I'm selecting all of a track that long at 44100 Hz, I can reproduce the error "Including your time offset of ~a seconds, your requested~%label interval of ~a seconds is greater than the duration~%of your selected audio (~a seconds)". It doesn't give that error if the 14.5 hours track is at 22050 Hz. This is one of the 32-bit limitations still in Nyquist or Audacity, I guess - at just over 13.5 hours, a 44100 Hz track exceeds the 32-bit limit of 2^31 samples of audio.
Splaxi wrote:When I tried with a smaller part of the track(00:00:00.000 - 08:00:00.000), but it still failed, the time selection in the bar at the bottom defaulted back to the full length of the track. So I concluded that something must have gone wrong, since it changed my selection.
Perhaps you clicked outside the track in error, so that Audacity would not have the selection in the track any longer. In that case Audacity would select all the track. Regular Interval Labels works for me in a selection 8 hours long in a 14.5 hour track at 44100 Hz.

But if you can reproduce a problem, please give the steps and the plugin settings.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

steve
Site Admin
Posts: 81649
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Regular Interval Labels - cannot handle large files

Post by steve » Fri Feb 13, 2015 4:11 pm

Gale Andrews wrote:This is one of the 32-bit limitations still in Nyquist or Audacity, I guess
I did my test before Splaxi said that he was applying to a 14+ hour selection.
Yes, Nyquist works entirely in 32-bit, so 14 hours of audio at 44100 Hz sample rate will overflow (the number of samples is greater than can be represented as a "signed 32 bit integer").

To work around this limitation, create a new track (Tracks menu > Add New > Audio Track), and use the track control panel menu to set the track sample rate to a low rate (such as 11025 Hz) http://manual.audacityteam.org/o/man/tr ... _menu.html
Then ensure that the selection is in the new (low rate) track only.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Robert J. H.
Posts: 3633
Joined: Thu May 31, 2012 8:33 am
Operating System: Windows 10

Re: Regular Interval Labels - cannot handle large files

Post by Robert J. H. » Fri Feb 13, 2015 6:11 pm

steve wrote:
Gale Andrews wrote:This is one of the 32-bit limitations still in Nyquist or Audacity, I guess
I did my test before Splaxi said that he was applying to a 14+ hour selection.
Yes, Nyquist works entirely in 32-bit, so 14 hours of audio at 44100 Hz sample rate will overflow (the number of samples is greater than can be represented as a "signed 32 bit integer").

To work around this limitation, create a new track (Tracks menu > Add New > Audio Track), and use the track control panel menu to set the track sample rate to a low rate (such as 11025 Hz) http://manual.audacityteam.org/o/man/tr ... _menu.html
Then ensure that the selection is in the new (low rate) track only.
This can be altered for the next audacity version (or rather the version after that).
The selection end time (from the property '*selection-->'end) is expressed in seconds and not affected by this limitation.

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Regular Interval Labels - cannot handle large files

Post by Gale Andrews » Sat Feb 14, 2015 2:18 pm

Robert J. H. wrote:
steve wrote:
Gale Andrews wrote:This is one of the 32-bit limitations still in Nyquist or Audacity, I guess
I did my test before Splaxi said that he was applying to a 14+ hour selection.
Yes, Nyquist works entirely in 32-bit, so 14 hours of audio at 44100 Hz sample rate will overflow (the number of samples is greater than can be represented as a "signed 32 bit integer").

To work around this limitation, create a new track (Tracks menu > Add New > Audio Track), and use the track control panel menu to set the track sample rate to a low rate (such as 11025 Hz) http://manual.audacityteam.org/o/man/tr ... _menu.html
Then ensure that the selection is in the new (low rate) track only.
This can be altered for the next audacity version (or rather the version after that).
The selection end time (from the property '*selection-->'end) is expressed in seconds and not affected by this limitation.
Sorry Robert can you explain that in more detail. What are you suggesting can be changed?


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Post Reply