sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
* Trim WAV file Meta Data
@ 2017-12-06 19:54 david
  2017-12-06 20:52 ` Jeremy Nicoll - ml sox users
  2018-02-10 20:30 ` Jan Stary
  0 siblings, 2 replies; 3+ messages in thread
From: david @ 2017-12-06 19:54 UTC (permalink / raw)
  To: sox-users


[-- Attachment #1.1: Type: text/plain, Size: 828 bytes --]

Hello all, love sox and am so glad it's out there.  I'm using SOX to
verify, convert and "normalfy" audio files coming in from untrusted sources
(web).  Basically I'm converting source audio to WAV PCM.  Audio files that
come from sources like Adobe Audition often contain meta data, which just
renders as ~100ms of noise at the end of the track. I'm wondering if that
could be trimmed off somehow.

I've tried a variety of things.  The command I'm using currently:

sox --ignore-length [infile] -t wavpcm [outfile]

Is there a way to do the conversion and ignore extra meta data?

I can provide sample audio if necessary. It seems like Cubase and other
audio editing software has similar features.

I tried to attach some files, but they got flagged for moderation 6 days
ago, so I'm resubmitting this.  Thanks for everything!

[-- Attachment #1.2: Type: text/html, Size: 1307 bytes --]

[-- Attachment #2: Type: text/plain, Size: 202 bytes --]

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Trim WAV file Meta Data
  2017-12-06 19:54 Trim WAV file Meta Data david
@ 2017-12-06 20:52 ` Jeremy Nicoll - ml sox users
  2018-02-10 20:30 ` Jan Stary
  1 sibling, 0 replies; 3+ messages in thread
From: Jeremy Nicoll - ml sox users @ 2017-12-06 20:52 UTC (permalink / raw)
  To: sox-users

On 2017-12-06 19:54, david wrote:
> Hello all, love sox and am so glad it's out there.  I'm using SOX to
> verify, convert and "normalfy" audio files coming in from untrusted 
> sources
> (web).  Basically I'm converting source audio to WAV PCM.  Audio files 
> that
> come from sources like Adobe Audition often contain meta data, which 
> just
> renders as ~100ms of noise at the end of the track. I'm wondering if 
> that
> could be trimmed off somehow.
> 
> I've tried a variety of things.  The command I'm using currently:
> 
> sox --ignore-length [infile] -t wavpcm [outfile]

Why are you sure that the audio-length data in the file headers is 
wrong?
You're telling sox to regard everything in the file as sound data.

What does  soxi  say about such files?  Does it identify their contents 
as
having a particular format?


> I tried to attach some files, but they got flagged for moderation 6 
> days
> ago, so I'm resubmitting this.

Upload them somewhere and post a URL.


-- 
Jeremy Nicoll - my opinions are my own

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Trim WAV file Meta Data
  2017-12-06 19:54 Trim WAV file Meta Data david
  2017-12-06 20:52 ` Jeremy Nicoll - ml sox users
@ 2018-02-10 20:30 ` Jan Stary
  1 sibling, 0 replies; 3+ messages in thread
From: Jan Stary @ 2018-02-10 20:30 UTC (permalink / raw)
  To: sox-users

On Dec 06 12:54:59, david@drj.io wrote:
> Hello all, love sox and am so glad it's out there.  I'm using SOX to
> verify, convert and "normalfy" audio files coming in from untrusted sources
> (web).  Basically I'm converting source audio to WAV PCM.  Audio files that
> come from sources like Adobe Audition often contain meta data, which just
> renders as ~100ms of noise at the end of the track. I'm wondering if that
> could be trimmed off somehow.

What audio files come from sources like Adobe Audition?

SoX 14.4.2 reports the following supported formats:

 AUDIO FILE FORMATS: 8svx aif aifc aiff aiffc al amb amr-nb amr-wb anb au
 avr awb caf cdda cdr cvs cvsd cvu dat dvms f32 f4 f64 f8 fap flac fssd
 gsm gsrt hcom htk ima ircam la lpc lpc10 lu mat mat4 mat5 maud mp2 mp3
 nist ogg opus paf prc pvf raw s1 s16 s2 s24 s3 s32 s4 s8 sb sd2 sds sf
 sl sln smp snd sndfile sndr sndt sou sox sph sw txw u1 u16 u2 u24 u3 u32
 u4 u8 ub ul uw vms voc vorbis vox w64 wav wavpcm wv wve xa xi

Is one of them the Adobe Audition format?
Can you show us an example input file?

> I've tried a variety of things.  The command I'm using currently:
> sox --ignore-length [infile] -t wavpcm [outfile]

Why are you ignoring the input length?

> Is there a way to do the conversion and ignore extra meta data?
> I can provide sample audio if necessary. It seems like Cubase and other
> audio editing software has similar features.

Are those WAV files? Are they BWF files?
http://tech.ebu.ch/docs/tech/tech3306-2009.pdf

> I tried to attach some files, but they got flagged for moderation 6 days
> ago, so I'm resubmitting this.  Thanks for everything!

Better post them to some public download site.


	Jan



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-02-10 20:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-06 19:54 Trim WAV file Meta Data david
2017-12-06 20:52 ` Jeremy Nicoll - ml sox users
2018-02-10 20:30 ` Jan Stary

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/sox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).