Ok it's not a function of the file size.

Huh.  I don't get it.  Any ideas?

Robert W. Fuller wrote:
Now I'm truly baffled. This seems to be a function of the size of the LPCM file. With this file size, I get the FP exception:

-rw-r--r--  1 edison users   430811612 Jun 19 01:04 audio.lpcm

If I mock up a dummy lpcm file with something like "echo foo >bar.lpcm", then mplex gets past printing out the header info.

Robert W. Fuller wrote:

Okay so here's the deal. It's doing a division by zero. version_id is 3 and frequency is 3. That corresponds to 0 in mpa_freq_table.

Isn't Gentoo cool? I've built my entire system with the -g flag for debugging.

static const int mpa_freq_table [4][4] =
{
    /* MPEG audio V2.5 */
    {11025,12000,8000,0},
    /* RESERVED */
    { 0, 0, 0, 0 },
    /* MPEG audio V2 */
    {22050,24000, 16000,0},
    /* MPEG audio V1 */
    {44100, 48000, 32000, 0}
};


Robert W. Fuller wrote:

I'm getting a floating point exception in mplex at the following line in mpastrm_in.cpp:

    framesize =
        mpa_bitrates_kbps[version_id][layer][bit_rate_code]  *
        mpa_slots[layer] *1000 /
        mpa_freq_table[version_id][frequency];

The sum of the audio and video files exceeds 2 GB. Is that the problem? If so, how should I split this up?


------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to