IPB

Welcome Guest ( Log In | Register )

SoX crashes when reading FLAC files (on Windows)
Ben Johnson
post Sep 8 2008, 05:48
Post #1





Group: Members
Posts: 6
Joined: 30-July 08
Member No.: 56479



Hello, everyone,

I have managed to compile SoX on Windows (Vista 32-bit) with support for LAME MP3, MAD MP3, FLAC, and OggVorbis. Everything works fine -- except for reading FLAC audio files.

I can write FLAC files just fine, but for whatever reason, reading FLAC files causes an Application Error: "The instruction at 0x76e83387 referenced memory at 0x00000014. The memory could not be written." I am accessing sox.exe on the Windows command prompt.

I compiled SoX using flac-1.2.1-devel-win with libFLAC.lib, which, of course, requires libFLAC.dll to be accessible when sox.exe is executed. I've tried compiling with older versions of FLAC and the result is the same.

Has anyone run into this type of thing before? Any insight would be much appreciated.

Thanks!
Go to the top of the page
+Quote Post
 
Start new topic
Replies
romor
post Mar 25 2013, 13:23
Post #2





Group: Members
Posts: 668
Joined: 16-January 09
Member No.: 65630



Azevedo, if you know the track length you just append the value on -d switch. For example, according your first image your test track seems to be around 3:32, in which case you could have used:

CODE
neroAacDec.exe -if input.m4a -of - | sox.exe -t raw -e signed -b 16 -c 2 -r 44k - -n spectrogram -d 3:32

and get the same image.

If you don't know the length, then you could perhaps use some tool that can print this value and you can catch it with "for" command tokens to a variable which you can then append to arguments as shown above. That would be definitely better then using temp file


--------------------
scripts: http://goo.gl/M1qVLQ
Go to the top of the page
+Quote Post
chi
post Mar 26 2013, 13:10
Post #3





Group: Members
Posts: 45
Joined: 27-November 11
Member No.: 95439



QUOTE (romor @ Mar 25 2013, 13:23) *
If you don't know the length, then you could perhaps use some tool that can print this value


SoX (SoXi) can do this:
CODE
sox.exe --i -D
Go to the top of the page
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 28th July 2014 - 17:40