Asterisk as streaming server . Converting video files to play in asterisk .

Working on app_mp4 and app_rtsp to play video files and  streams directly on asteirsk I got very familiar with filetypes and ffmpeg . But spending another two days to find out how can I convert video files to play in asterisk and this is the result . 
– Audio should decode form a video file to WAV/PCM file format
– Video should decode form a video file to H263 asterisk file format
Converting 3gp video format to play in asterisk :
ffasterisk -i dolphins_1600k.3gp -o dolphins_1600k.h263 –video
ffmpeg -i dolphins_1600k.3gp -vn -acodec copy clarinet.aac
ffmpeg -y -i clarinet.aac -ar 8000 -ac 1 -ab 64000 -f mulaw dolphins_1600k.pcm
Converting AVI video format to play in asterisk : 
ffasterisk -i miniatel.3gp -o miniatel.h263 –video
ffmpeg -i miniatel.avi -s qcif -vcodec h263 -acodec aac -ac 1 -ar 8000 -r 25 -ab 32 -y -strict experimental miniatel.3gp
ffmpeg -i miniatel.3gp -vn -acodec copy clarinet.aac
ffmpeg -y -i clarinet.aac -ar 8000 -ac 1 -ab 64000 -f mulaw miniatel.pcm
————————————————————————————————–
————————————————————————————————–

Comments