[Asterisk-video] Play and Record videos in Asterisk (ox converter)
Jesús Gumiel
jesus.gumiel at gmail.com
Thu Jun 5 09:31:42 CDT 2008
Hi Sharan.
I answer you above your message:
2008/6/5 Sharan Saxena <ssaxena at devfoundry.com>:
> Hi Jesus,
> Thanks for your directions. From your email and my understanding
> of the code of asterisk, I think that asterisk plays the audio and video
> frames separately. Please correct me if I am wrong.
Yes, Asterisk play the audio and video separately.
>
> I was able to run the ffasterisk command, but I got exceptions and buffer
> underflow/overflow with the audio/video files I tried.
>
This kind of errors are normals, they are the logs of ffasterisk. If
you have the new file created it´s all correct
> It would be helpful if you can guide me to a working .avi file, from which
> you extract the audio and video frames, and also comment on the correctness
> of my steps outlined below. My approach should be as follows then:
>
> ffasterisk -i in.avi -o in.wav --audio ;
> Floating point exception
Normallly I create the audio in .wav with other applications, not with
ffasterisk, I don´t know if ffasterisk works fine with audio, I´m
sorry.
> ffasterisk -i in.avi -o out.h263 --video
> ; buffer underflow, though file created, but didn't play in VLC media player
>
Don´t worry if vlc doesn´t understand this file.
> sox in.wav -r 8000 -c 1 -s -w out.wav resample -ql ;
> was not able to find "ox"
>
> In extensions.conf
> exten => 600,n,Playback(out)
> ; and hope that it will play
>
>
> Thanks for your help.
> Regards
> Sharan
>
Finally if the video isn´t correct, you must hear only the audio. So,
you can test putting the video file with an audio file that normally
asterisk plays correctly (always putting the same name to video and
audio file).
>
> -------------------------------------------------------------------------
> Message: 4
> Date: Wed, 4 Jun 2008 17:34:15 +0200
> From: " Jes?s Gumiel " <jesus.gumiel at gmail.com>
> Subject: Re: [Asterisk-video] Play and Record videos in Asterisk
>
> You must have two files, one file .h263 with the video and other file
> .gsm or .alaw with the audio.
>
> Normally your converted files don?t work in Asterisk, you must
> recodificate them.
>
> ox in.wav -r 8000 -c 1 -s -w out.wav resample -ql ; To convert the audio
>
> ffasterisk -i in.3gp -o out.h263 --video ; To convert the
> video
>
> Put the two files with the same name (in.h263 and in.wav). And this should
> work.
>
>
> 2008/6/4 Sharan Saxena <ssaxena at devfoundry.com>:
>> Dear List Members,
>> I am trying to play videos in Asterisk. I understand that
>> Playback() and Background() functions can play videos in .h263 and .3gp
>> format. In my extensions.conf, I put a call like:
>> exten=> 600,n,Playback(testvideo) ;testvideo.h263 is a
>> file which which plays in VLC media player
>>
>> I get an error saying "Unable to open testvideo format 0x4 (ulaw)".
>>
>> I have made changes to my sip.conf,
>> videosupport = yes
>> allow=ulaw
>> allow=alaw
>> allow=h261
>> allow=h263
>> allow=h263p
>> allow=h264
>>
>> I tried recording a video using Asterisk Record() function, and then tried
>> playing it using Playback(), but was unable to succeed.
>>
>> Though my files get played in VLC media player, I am not sure whether they
>> are the right set for Asterisk.
>>
>> I would request members on the list to kindly guide me to the correct
>> steps/examples/videos which play in Asterisk, so as to enable me to play
>> videos in Asterisk.
>>
>> Thanks for your help,
>> Best Regards
>> Sharan
>>
>>
>> _______________________________________________
>> --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
>>
>
>
>
> ------------------------------
>
> _______________________________________________
> --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
>
> End of asterisk-video Digest, Vol 26, Issue 4
> *********************************************
>
>
> _______________________________________________
> --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