sox-users@lists.sourceforge.net unofficial mirror
 help / color / 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 --]

<div dir="ltr"><span style="font-size:12.8px">Hello all, love sox and am so glad it&#39;s out there.  I&#39;m using SOX to verify, convert and &quot;normalfy&quot; audio files coming in from untrusted sources (web).  Basically I&#39;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&#39;m wondering if that could be trimmed off somehow.</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I&#39;ve tried a variety of things.  The command I&#39;m using currently:</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">sox --ignore-length [infile] -t wavpcm [outfile]<br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Is there a way to do the conversion and ignore extra meta data? </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I can provide sample audio if necessary. It seems like Cubase and other audio editing software has similar features.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I tried to attach some files, but they got flagged for moderation 6 days ago, so I&#39;m resubmitting this.  Thanks for everything!</div></div>

[-- 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, back to index

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

sox-users@lists.sourceforge.net unofficial mirror

Archives are clonable: git clone --mirror https://public-inbox.org/sox-users

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.audio.sox
	nntp://ou63pmih66umazou.onion/inbox.comp.audio.sox
	nntp://news.gmane.org/gmane.comp.audio.sox

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/ public-inbox