Re: Trying to split on silence but losing content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Nov 01 11:49:46, patrick@xxxxxxxxxxxxxxxxxxxxxx wrote:
> sox ../whats-been-happening.mp3 out.wav silence   1 0.5 5%    1 0.5 5% :
> newfile : restart

Run that again with -V and show sox's response, in full.

> and this was the command to concatenate:
> sox -V $(ls | sort -f) conten.wav
> 
> Here is the first printout, there were 8 of them and they were all similar.
> 
> """"
> Input File     : 'out001.wav'
> Channels       : 2
> Sample Rate    : 44100
> Precision      : 16-bit
> Duration       : 00:00:02.28 = 100495 samples = 170.91 CDDA sectors

This one, for example, is 2.28 seconds long.
Is that intended?

> File Size      : 402k
> Bit Rate       : 1.41M
> Sample Encoding: 16-bit Signed Integer PCM
> Endian Type    : little
> Reverse Nibbles: no
> Reverse Bits   : no
> """

You are now showing the Output File section,
so we still know nothing. Post the response in full.
Use the script(1) tool if you were unaware of it.

> I was able to split audio files fine with Audacity and I
> thought that it uses Sox in the background

Audacity and SoX have nothing to do with each other.

> and that I must have just
> done something dumb but now I am not sure. The resulting concatenated
> audio file from sox is a lot shorter than the files that were inputted.

We still don't know what the files are and what SoX does with them.
If it's not private, please post whats-been-happening.mp3 somewhere.

	Jan

> On 2021-10-31 8:41 a.m., Jan Stary wrote:
> > On Oct 30 15:21:52, patrick@xxxxxxxxxxxxxxxxxxxxxx wrote:
> >> I would like to take 10 minutes of audio and split it on silence into
> >> numerous audio files. I am then hoping to use a "for loop" to repeat
> >> these split sections.
> >>
> >> If the audio was 001.wav 002.wav 003.wav, I want to concatenate ten
> >> 001.wav files together then ten 002.wav files etc.
> >>
> >> I ran this command:
> >>
> >> sox audio.wav out.wav silence   1 0.5 5%    1 0.5 5% : newfile : restart
> >>
> >> It splits fine
> > Meaning, you have out001.wav, out002.wav, etc?
> > Did you actually play them? What does soxi out*wav say?
> >
> >> but if I concatenate the results back together to check
> >> for lost sound, I get about 15 seconds of audio from a 10 minute audio file.
> > What exactly is your "concatenating" command? (Please show sox -V)
> >
> >> Does anyone know why I am losing content? Is there a better set of
> >> command arguments to do this?
> > Hard to say if we don't know what you did and what sox said.
> >
> > 	Jan


_______________________________________________
Sox-users mailing list
Sox-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/sox-users




[Index of Archives]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux