[Asterisk-video] libh324m frame format

Klaus Darilion klaus.mailinglists at pernau.at
Fri Jul 27 07:15:06 CDT 2007


Hi Sergio!

I've fixed some bugs in app_h324m and app_mp4 and it is getting more 
stable. (patches will come next week)

But I can't solve this one:

I use h324m_gw and Echo(). Video works fine but audio sounds wrong.

In create_ast_frame I dump the whole h324m frame to the log file. In a 
sample call this looks like:

[Jul 27 14:07:06] DEBUG[22680] app_h324m.c: create_ast_frame: H324M 
frame: ========= AUDIO =========
[Jul 27 14:07:06] DEBUG[22680] app_h324m.c: create_ast_frame: H324M 
frame: length=31, buffer=0x844c3e8
07 a1 6a 9b 22 e3 58 58 10 78 7e b5 04 42 22 12 00 00 37 1b d4 81 88 01 
00 90 3e e2 29 e7 2e

[Jul 27 14:07:06] DEBUG[22680] app_h324m.c: create_ast_frame: H324M 
frame: ========= AUDIO =========
[Jul 27 14:07:06] DEBUG[22680] app_h324m.c: create_ast_frame: H324M 
frame: length=31, buffer=0x84077a0
07 a1 6a 9b 22 e3 58 58 10 78 7e b5 04 42 22 12 00 00 37 1b d4 81 88 01 
00 90 3e e2 29 e7 2e

[Jul 27 14:07:06] DEBUG[22680] app_h324m.c: create_ast_frame: H324M 
frame: ========= AUDIO =========
[Jul 27 14:07:06] DEBUG[22680] app_h324m.c: create_ast_frame: H324M 
frame: length=31, buffer=0x84077a0
b7 f7 ae 1f 77 f6 3c 78 01 6f ba f5 e4 24 24 10 00 00 3c 1e 1e a4 56 02 
00 50 2c 44 23 fd 3c


As this frames are 31 byte I guess this is mode 7. Mode 7 uses 244 bits. 
Thus, to fill up 31 bytes the last 4 bits should be zero. I verified 
this with an helix producer AMR where the last 4 bits of a frame are 
always zero.

Any comments in this?

thanks
klaus



More information about the asterisk-video mailing list