#22 Cygwin/0 length fragments for mpeg3split

closed-out-of-date
nobody
libmpeg3 (12)
5
2003-04-18
2001-06-27
Anonymous
No

Audio only

1) Looking at the source for mpeg3split,
minimum size of a fragment is 0x100000,
slightly less than 1.5 MBytes - might be
nice for the usage statement to point this
out.

2) More importantly, if my requested byte size is
longer than the file length, I get a "fragment"
written out that's the same length as the original
file (identical). If shorter than file length, I get
continuing 0 length fragments looping.
Adding a printf after line 104:

fragment_size = ftell(in) - current_byte;
printf("Current byte is %d\n",current_byte);
fseek(in, current_byte, SEEK_SET);

I see that current_byte stays at 0 always.

I took byteswap.h from glibc for i386 (doesn't come
natively with Cygwin) and typedef'd __off64_t as long,
otherwise I'm going straight from the Makefile, with
MMX & CSS disabled. Running on NT 4.0, SP6.

Will hack more on this tomorrow to try to find where
the loop fails, but seems to not be finding the proper
mp3 header. (Using Castanets.wav compressed with
Lame).

Bill Eldridge

Discussion

    • status: open --> closed-out-of-date
     
  • Logged In: YES
    user_id=83549

    fragment_size has nothing to do with the total bytes copied in
    copy_data(FILE *out, FILE *in, long bytes).;

    Never used this utility since 1999.