thanks borja<br>for the imformation<br>thank you once again<br><br clear="all">"Beautiful pictures are developed by negatives in a dark room. So if u see darkness in your life assume that God is making a beautiful picture for you."<br>
<br><br>Regards,<br><br>Hemanshu Patel<br><br>E-mail: <a href="mailto:Hemanshurpatel@gmail.com">Hemanshurpatel@gmail.com</a><br><br>Mo: 09620922593(Karnatak)<br>Mo: 09898698835(Gujarat)<br>
<br><br><div class="gmail_quote">On Mon, Jul 27, 2009 at 7:52 PM, Borja SIXTO <span dir="ltr"><<a href="mailto:borja.sixto@i6net.com">borja.sixto@i6net.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Hemanshu,<br>
<br>
ffmpeg cannot directly generate files for the Asterisk.<br>
The asterisk formats have a header and marks (and datas for the<br>
payloads) and they are none standard formats.<br>
<br>
Regards,<br>
<br>
<br>
Borja from i6net<br>
<br>
Hemanshu Patel a écrit :<br>
<div class="im">> With playback i am getting following rtp debug<br>
><br>
> Got RTP packet from <a href="http://192.168.1.197:47828" target="_blank">192.168.1.197:47828</a><br>
</div>> <<a href="http://192.168.1.197:47828" target="_blank">http://192.168.1.197:47828</a>> (type 99, seq 063899, ts 46551110, len<br>
<div class="im">> 001368)<br>
> Got RTP packet from <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 028625, ts 4055760385, len<br>
<div class="im">> 000160)<br>
> Got RTP packet from <a href="http://192.168.1.197:47828" target="_blank">192.168.1.197:47828</a><br>
</div>> <<a href="http://192.168.1.197:47828" target="_blank">http://192.168.1.197:47828</a>> (type 99, seq 063900, ts 46557110, len<br>
<div class="im">> 001097)<br>
> Sent RTP packet to <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 031189, ts 651040, len 000160)<br>
<div class="im">> Got RTP packet from <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 028626, ts 4055760545, len<br>
<div class="im">> 000160)<br>
> Sent RTP packet to <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 031190, ts 651200, len 000160)<br>
<div class="im">> Got RTP packet from <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 028627, ts 4055760705, len<br>
<div class="im">> 000160)<br>
> Sent RTP packet to <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 031191, ts 651360, len 000160)<br>
<div class="im">> Got RTP packet from <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 028628, ts 4055760865, len<br>
<div class="im">> 000160)<br>
> Sent RTP packet to <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 031192, ts 651520, len 000160)<br>
<div class="im">> Got RTP packet from <a href="http://192.168.1.197:47828" target="_blank">192.168.1.197:47828</a><br>
</div>> <<a href="http://192.168.1.197:47828" target="_blank">http://192.168.1.197:47828</a>> (type 99, seq 063901, ts 46563110, len<br>
<div class="im">> 000499)<br>
> Got RTP packet from <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 028629, ts 4055761025, len<br>
<div class="im">> 000160)<br>
> Sent RTP packet to <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 031193, ts 651680, len 000160)<br>
<div class="im">> Got RTP packet from <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 028630, ts 4055761185, len<br>
<div class="im">> 000160)<br>
> Sent RTP packet to <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 031194, ts 651840, len 000160)<br>
<div class="im">> Got RTP packet from <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 028631, ts 4055761345, len<br>
<div class="im">> 000160)<br>
> Sent RTP packet to <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 031195, ts 652000, len 000160)<br>
<div class="im">> Got RTP packet from <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 028632, ts 4055761505, len<br>
<div class="im">> 000160)<br>
> Got RTP packet from <a href="http://192.168.1.197:47828" target="_blank">192.168.1.197:47828</a><br>
</div>> <<a href="http://192.168.1.197:47828" target="_blank">http://192.168.1.197:47828</a>> (type 99, seq 063902, ts 46569110, len<br>
<div class="im">> 000399)<br>
> Sent RTP packet to <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 031196, ts 652160, len 000160)<br>
<div class="im">> Got RTP packet from <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 028633, ts 4055761665, len<br>
<div class="im">> 000160)<br>
> Sent RTP packet to <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 031197, ts 652320, len 000160)<br>
<div class="im">> Got RTP packet from <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 028634, ts 4055761825, len<br>
<div class="im">> 000160)<br>
> Sent RTP packet to <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 031198, ts 652480, len 000160)<br>
<div class="im">> Got RTP packet from <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 028635, ts 4055761985, len<br>
<div class="im">> 000160)<br>
> Sent RTP packet to <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 031199, ts 652640, len 000160)<br>
<div class="im">> Got RTP packet from <a href="http://192.168.1.197:47828" target="_blank">192.168.1.197:47828</a><br>
</div>> <<a href="http://192.168.1.197:47828" target="_blank">http://192.168.1.197:47828</a>> (type 99, seq 063903, ts 46575110, len<br>
<div class="im">> 000577)<br>
> Got RTP packet from <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 028636, ts 4055762145, len<br>
<div class="im">> 000160)<br>
> Sent RTP packet to <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 031200, ts 652800, len 000160)<br>
<div class="im">> Got RTP packet from <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 028637, ts 4055762305, len<br>
<div class="im">> 000160)<br>
> Sent RTP packet to <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 031201, ts 652960, len 000160)<br>
<div class="im">> Got RTP packet from <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 028638, ts 4055762465, len<br>
<div class="im">> 000160)<br>
> Sent RTP packet to <a href="http://192.168.1.197:15260" target="_blank">192.168.1.197:15260</a><br>
</div>> <<a href="http://192.168.1.197:15260" target="_blank">http://192.168.1.197:15260</a>> (type 00, seq 031202, ts 653120, len 000160)<br>
<div class="im">> Got RTP packet from 192.168.1.1<br>
><br>
><br>
><br>
> 99 is codec id for h264, does that mean asterisk is reading h264 file<br>
> and sending back to my phone?<br>
> but grandstream gvx3140 understands h264, and it works with<br>
> voicemail, then what could be the problem?<br>
><br>
> problem may be with my encoding?<br>
><br>
> this is how i am encoding my avi file to h264<br>
><br>
><br>
> ffmpeg -y -i abcd.avi -an -v 1 -threads 4 -vcodec libx264 -b 500k -bt<br>
> 175k -refs 1 -loop 1 -deblockalpha 0 -deblockbeta 0 -parti4x4 1<br>
> -partp8x8 1 -me full -subq 1 -me_range 21 -chroma 1 -slice 2 -bf 0<br>
> -level 30 -g 300 -keyint_min 30 -sc_threshold 40 -rc_eq<br>
> 'blurCplx^(1-qComp)' -qcomp 0.7 -qmax 51 -qdiff 4 -i_qfactor<br>
> 0.71428572 -maxrate 768k -bufsize 2M -cmp 1 -s 320x240 -pass 1 abcd.h264<br>
><br>
><br>
> Can anyone suggest what should i do next?<br>
><br>
><br>
> "Beautiful pictures are developed by negatives in a dark room. So if u<br>
> see darkness in your life assume that God is making a beautiful<br>
> picture for you."<br>
><br>
><br>
> Regards,<br>
><br>
> Hemanshu Patel<br>
><br>
</div>> E-mail: <a href="mailto:Hemanshurpatel@gmail.com">Hemanshurpatel@gmail.com</a> <mailto:<a href="mailto:Hemanshurpatel@gmail.com">Hemanshurpatel@gmail.com</a>><br>
<div class="im">><br>
> Mo: 09620922593(Karnatak)<br>
> Mo: 09898698835(Gujarat)<br>
><br>
><br>
> On Sat, Jul 25, 2009 at 4:17 PM, Hemanshu Patel<br>
</div><div><div></div><div class="h5">> <<a href="mailto:hemanshurpatel@gmail.com">hemanshurpatel@gmail.com</a> <mailto:<a href="mailto:hemanshurpatel@gmail.com">hemanshurpatel@gmail.com</a>>> wrote:<br>
><br>
><br>
> Hello there<br>
><br>
> i am currently working on video part with astersik<br>
> i am using asterisk 1.4.26.<br>
> when i have created h263 video and wave using ffasterisk, playback<br>
> comand work fine, and i can see audio and video both.<br>
><br>
> now everyone knows h264 is batter then h263, and so i am not going<br>
> into details y i am trying for h264.<br>
><br>
> what i did is create a h264 file from avi file using ffmpeg.<br>
> i can play that file in vlc, its video only file.<br>
> and sameway i have created wav file.<br>
><br>
> say for example name of the created files are temp.h264 and temp.wav<br>
> now using playback command when i play, playback(temp) .... it<br>
> plays just audio, and gives no error at all<br>
><br>
> its log is:<br>
><br>
> -- Executing [4005@default:1] Answer("SIP/1000-007cee50", "")<br>
> in new stack<br>
> -- Executing [4005@default:2] Playback("SIP/1000-007cee50",<br>
> "/root/ghajani/game") in new stack<br>
> [Jul 25 16:00:13] DEBUG[25914]: file.c:955 ast_streamfile: Ooh,<br>
> found a video stream, too, format h264<br>
> -- <SIP/1000-007cee50> Playing '/root/ghajani/game' (language<br>
> 'en')<br>
> == Spawn extension (default, 4005, 2) exited non-zero on<br>
> 'SIP/1000-007cee50'<br>
> -- Executing [4005@default:1] Answer("SIP/1000-007cee50", "")<br>
> in new stack<br>
> -- Executing [4005@default:2] Playback("SIP/1000-007cee50",<br>
> "/root/ghajani/game") in new stack<br>
> [Jul 25 16:05:38] DEBUG[26007]: file.c:955 ast_streamfile: Ooh,<br>
> found a video stream, too, format h264<br>
> -- <SIP/1000-007cee50> Playing '/root/ghajani/game' (language<br>
> 'en')<br>
> == Spawn extension (default, 4005, 2) exited non-zero on<br>
> 'SIP/1000-007cee50'<br>
><br>
><br>
> What could be the problem?<br>
> why can i hear audio only and there is blank screen in place of video?<br>
><br>
> can anyone help in that.<br>
><br>
><br>
> "Beautiful pictures are developed by negatives in a dark room. So<br>
> if u see darkness in your life assume that God is making a<br>
> beautiful picture for you."<br>
><br>
><br>
> Regards,<br>
><br>
> Hemanshu Patel<br>
><br>
</div></div>> E-mail: <a href="mailto:Hemanshurpatel@gmail.com">Hemanshurpatel@gmail.com</a> <mailto:<a href="mailto:Hemanshurpatel@gmail.com">Hemanshurpatel@gmail.com</a>><br>
<div class="im">><br>
> Mo: 09620922593(Karnatak)<br>
> Mo: 09898698835(Gujarat)<br>
><br>
><br>
</div>> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> --Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
><br>
> asterisk-video mailing list<br>
> To UNSUBSCRIBE or update options visit:<br>
> <a href="http://lists.digium.com/mailman/listinfo/asterisk-video" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-video</a><br>
<br>
_______________________________________________<br>
--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
<br>
asterisk-video mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-video" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-video</a><br>
</blockquote></div><br>