Insert wrong filepositions into flv files
Brought to you by:
ingo_opp
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
Anonymous
This is probably due to the different byte ordering on PPC. I'll have a look into it
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.
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.
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>
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
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 ?