IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Lame with libsndfile -- errorlevel, Downloaded from Rarewares
UNHchabo
post Feb 17 2011, 21:43
Post #1





Group: Members
Posts: 57
Joined: 16-June 08
Member No.: 54429



When I run a copy of Lame I downloaded from Rarewares, and attempt to encode a file that's not supported, the program returns a non-zero value, showing that there was an error.

CODE
c:\Media\Flac>lame metaflac.exe
Warning: unsupported audio format

c:\Media\Flac>echo %errorlevel%
1

c:\Media\Flac>


Running the copy of Lame from that includes the libsndfile library, though, it will encode anything, and return 0, indicating success.

CODE
c:\Media\Flac>lame metaflac.exe
LAME 3.98.4 32bits (http://www.mp3dev.org/)
CPU features: MMX (ASM used), SSE (ASM used), SSE2
Using polyphase lowpass filter, transition band: 16538 Hz - 17071 Hz
Encoding metaflac.exe to metaflac.exe.mp3
Encoding as 44.1 kHz j-stereo MPEG-1 Layer III (11x) 128 kbps qval=3
    Frame          |  CPU time/estim | REAL time/estim | play/CPU |    ETA
    89/89    (100%)|    0:00/    0:00|    0:00/    0:00|   24.733x|    0:00
-------------------------------------------------------------------------------
   kbps        LR    MS  %     long switch short %
  128.0       12.4  87.6        76.4   9.0  14.6
Writing LAME Tag...done
ReplayGain: -11.8dB

c:\Media\Flac>echo %errorlevel%
0

c:\Media\Flac>


I'd really appreciate it if this copy of Lame threw an error, or at least returned a non-zero value, if it finds non-audio data. Is this feasible?


--------------------
http://sourceforge.net/projects/flacsquisher/
Go to the top of the page
+Quote Post
john33
post Feb 24 2011, 10:49
Post #2


xcLame and OggDropXPd Developer


Group: Developer
Posts: 3760
Joined: 30-September 01
From: Bracknell, UK
Member No.: 111



I'll take a look at it when I have a moment. smile.gif


--------------------
John
----------------------------------------------------------------
My compiles and utilities are at http://www.rarewares.org/
Go to the top of the page
+Quote Post
UNHchabo
post Mar 1 2011, 17:11
Post #3





Group: Members
Posts: 57
Joined: 16-June 08
Member No.: 54429



Cool, thanks!


--------------------
http://sourceforge.net/projects/flacsquisher/
Go to the top of the page
+Quote Post

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: 29th August 2014 - 11:53