gopalprasad780 / asterisk-video

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

asterisk-video

Hello Guys, This guide is for those who is trying to Play video file in sip phone using Asterisk.

Asterisk is really good open source software that handle sip registration, managing dialplan, sipchannel, capabilities,etc at one place

About me

My Name is Gopal Prasad and am a Python Developer at Pvt Ltd Company. I am sharing my experiences and problem faced during converting Video compatible with Asterisk.

Problem in short, Asterisk will only passthrough video which it can understand. i.e, that is created by Asterisk only.

I have done various research on available resources on internet and found following steps that worked for me

Requirement :

  • ffasterisk - you can download this file from link ffasterisk
  • ffmpeg - It is the ultimate converter ever found. Here is link ffmpeg
  • SOX - Swiss army knife of sound processing. For this, you need to check package manager apt for debian and yum for Redhat/Centos

Following are steps to convert a video to asterisk compatible

ffasterisk -i Ad_30sec2.mp4 --profile=h263 -o Ad_30sec3.h263 -video

sox Ad_30sec3.wav -r 8000 Ad_30sec3.gsm ffmpeg -i Ad_30sec3.mp4 -c:v mpeg2video -s 176X144 -f mp4 Ad_30sec2.mp4

ffmpeg -i samsung_old.mp4 -vn -acodec pcm_s16le -ac 1 -ar 16000 samsung.wav

About