Hi,
i'm testing it since days and now i share with you my experiences. Well, i have an avi video file. (Converted from FLV).
First, i must extract the audio track from the avi file. Its easy, i use the following command:
[b]mplayer [i]sample.avi[/i] -ao pcm [i]outputfilename.wav[/i] -vc null -vo null[/b]
Next step, converting this wav file to 8kHz 16bit mono stream. Then i rename this file to [b]pcmu.wav[/b]
Now i'd like to create a H.263 video stream. I can use different picture sizes, CIF, or QCIF. I need CIF settings.
Converting the avi file to H.263 CIF format with 15FPS i will use mencoder. The command looks like:
[b]mencoder [i]sample.avi[/i] -vf scale=352:288 -of rawvideo -ofps 15000/1001 -nosound -o [i]h263_CIF=2[/i] -ovc lavc -lavcopts vcodec=h263:keyint=10:vpsize=1000:vqmin=3:vbitrate=100
[/b]
352:288 means CIF size, 15000/1001 means 15FPS which is option 2 in filename. (Option 1=30FPS)
Then i will use smzip to compress theses files (pcmu.wav & h263_CIF=2) into an archive file.
[b]smzip -ac all 10.zip pcmu.wav h263_CIF=2[/b]
I must use in the name of the zip file numbers only. Next step is copy this file into the announcement folder under Stream Manager. In the routing strategy i use play announcement block to play this video on a routing point.
It works! But... but i'd like to use H.264 video. Lets see the steps:
Audio extracting is the same method. Lets convert some video in H.264 format! Its good to know how it should work. I tried many formats, but it doesnt work..
If i'd like to convert into CIF, 15FPS with profile-level-id=2
[b]mencoder.exe [i]sample.avi[/i] -vf scale=352:288 -of rawvideo -ofps 15000/1001 -nosound -o [i]h264_42e014=2[/i] -ovc x264 -x264encopts keyint=10:bframes=0:nob_adapt:nocabac:level_idc=20[/b]
I tried an another method too:
mencoder.exe [i]sample.avi[/i] -vf scale=352:288 -of rawvideo -ofps 15000/1001 -nosound -o [i]h264_42e014=2[/i] -ovc x264 -x264encopts [b]subq=6:keyint=25[/b]:bframes=0:nob_adapt:nocabac:level_idc=20
Then compress it with the pcmu.wav into an archive, but i receive only the sound of the video.

It works, when i call the routing point from inside with the Counterpath bria softphone, but i use trunk DN -s to another gateways, and only the H263 video works properly.
I tried it with variable formats:
CIF with 15 or 30FPS : 42e00c, 42e00d, 42e014, 42e015, 42e016
Can anybody help me?
best regards, Alex