Menu

#19 Insert wrong filepositions into flv files

open
nobody
None
5
2015-02-10
2010-05-21
Anonymous
No

Hello,

On a computer G5 mac, I installed yamdi 1.4, and when I inject metadata into flv files, yamdi inject wrong filepositions with Exponent as :
0 double 2.6764919419029E-317
1 double 4.0231005075011E-315
2 double 1.0629424434981E-314
3 double 3.53609032659E-316
...

Have you a solution for inject right filepositions ?
Real thanks !

Rémy
remy.hennuyer@gmail.com

Discussion

  • Ingo Oppermann

    Ingo Oppermann - 2010-05-30

    This is probably due to the different byte ordering on PPC. I'll have a look into it

     
  • Chris Brookes

    Chris Brookes - 2010-09-14

    I have the exact same problem when I compile yamdi 1.5 on Solaris/Sparc. If I run the same file through y1.5 compiled on linux/intel it comes out with different (working) results, but the file length is the same.

     
  • Ingo Oppermann

    Ingo Oppermann - 2010-09-15

    That's right. It's due to byte ordering. Quick fix for big endian systems:

    Take a look at the function "size_t writeFLVDouble(FILE *fp, double value)". There reverse the order of

    b[0] = d.dc[7];
    b[1] = d.dc[6];
    b[2] = d.dc[5];
    ...

    to

    b[0] = d.dc[0];
    b[1] = d.dc[1];
    b[2] = d.dc[2];
    ...

    This will be fixed in the next version. If I find some time, y1.6 will be available soon.

     
  • Nobody/Anonymous

    Confirmed this works. Thank you. Was going to suggest something like

    define is_bigendian() ( ((char)&i) == 0 )

    if (is_bigendian()) {
    <orginal code="">
    } else {
    <reversed code="">
    }</reversed></orginal>

     
  • Anonymous

    Anonymous - 2015-02-10

    got the prolem:
    ffmpeg -i input.flv -c:a libfaac -b:a 32k output.flv
    yamdi -i output.flv -o output1.flv
    now,audio bitrate is 59!
    59 kb/s

    how fix ?

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB