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