Help - Search - Members - Calendar
Full Version: Shine Mp3 encoder outputs 0byte mp3 files
Hydrogenaudio Forums > Lossy Audio Compression > MP3 > MP3 - Tech
stagnant7
Hi,

As my final year thesis I am implementing a simple mp3 decoder on FPGA (field programmable gate array).

As preliminary study I am testing numerous codecs, simply to learn about the mp3 format in general.

Today i compiled the shine mp3 codec (using msvc++ 6.0) and i got the exe file (albeit with 51 warnings) however when i try to use it (i can access all the usage instructions using "shine -help") the marvellous windows critical error sending report box thingo comes up...and i am left with a 0byte mp3 outfile.

Can anyone give me some info that may help me out with this...?

Thanks. smile.gif
xmixahlx
i'm no help with the windows error stuff, but there are precompiled binaries of shine available (if you just want a working binary) at ReallyRareWares, here:
http://www.rjamorim.com/rrw/shine.html


later
TrNSZ
QUOTE (stagnant7 @ Mar 17 2006, 08:57 PM)
Today i compiled the shine mp3 codec (using msvc++ 6.0) and i got the exe file (albeit with 51 warnings) however when i try to use it (i can access all the usage instructions using "shine -help") the marvellous windows critical error sending report box thingo comes up...and i am left with a 0byte mp3 outfile.
*

What is the error message?

Also, you might want to try using the latest MSVC, too - It is free until the end of the month.
stagnant7
Thanks for the help guys...I had been to that site but diddnt realised there was a precompiled version rolleyes.gif

The error message is that generic "shine.exe has encountered a problem and needs to close. We are sorry for the inconvenience" and then you can send the error report to microsoft.

But im happy with the precompiled version....maybe ill try another compiler too smile.gif
Mangix
if you want to, you can try compiling it with the msvc++ 8.0 compiler which is included with Visual Studio 2005 Express(The Express version is free)
john33
QUOTE (stagnant7 @ Mar 18 2006, 12:57 AM)
Hi,

As my final year thesis I am implementing a simple mp3 decoder on FPGA (field programmable gate array).

As preliminary study I am testing numerous codecs, simply to learn about the mp3 format in general.

Today i compiled the shine mp3 codec (using msvc++ 6.0) and i got the exe file (albeit with 51 warnings) however when i try to use it (i can access all the usage instructions using "shine -help") the marvellous windows critical error sending report box thingo comes up...and i am left with a 0byte mp3 outfile.

Can anyone give me some info that may help me out with this...?

Thanks. smile.gif
*

First, add #include<string.h> at the beginning of files l3loop.c and wave.c.

Next, in FormatBitstream.c, from line 143, replace the function writePartSideInfo with the following:
CODE
static int
//writePartSideInfo( BF_BitstreamPart *part )
writePartSideInfo( BF_BitstreamPart *part, BF_FrameResults *results )
{
   BF_BitstreamElement *ep;
   int i, bits;

   assert( results );
   assert( part );

   bits = 0;
   ep = part->element;
   for ( i = 0; i < part->nrEntries; i++, ep++ )
   {
    (*PutBits)( ep->value, ep->length );
    bits += ep->length;
   }
   return bits;
}

This should leave a single compile warning that can be ignored. If you compile the 'debug' version, it will still crash. However, the 'release' version appears to run here. I am also using VC6 for this.
john33
Slight correction to the above. The compiles above were using VC6/ICL4.5. Using VC6 alone, there are still 47 warnings, IIRC, but the release version runs fine. The debug version crashes as before.
xmixahlx
i've built some linux compiles and modified source:
http://www.hydrogenaudio.org/forums/index....ndpost&p=372351


later
john33
It seems like the code change above, not the '#includes', is unnecessary and causes a problem under linux, so it should be ignored!! wink.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.