Wednesday, April 02, 2008

How to stream AMR to RTP and Play it in QuickTime

Use AMR file as source to stream AMR to RTP. ffmpeg -re -i "d:\media\vel1.amr" -acodec libamr_nb -ar 8000 -ab 12.2kb -ac 1 -f rtp rtp://192.168.1.198:5000/

it plays the audio in Quicktime.
AMR.SDP File contents:
-----------------------
v=0
o=Mass 3123312 121232 IN IP4 192.168.1.198
s=Rtsp Session
c=IN IP4 192.168.1.198
t=0 0
a=range:npt=0-
m=audio 5000 RTP/AVP 97
a=rtpmap:97 AMR/8000
a=fmtp:97 octet-align=1

Labels: ,

1 Comments:

Anonymous Samir said...

Hi

I have tried to do RTP with your commands. But it didn’t work for me .do I need to do any patch? Please provide if needed.

Thanks in advance.

FFmpeg version SVN-r15410, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --enable-libamr-nb --enable-libamr-wb --enable-libfaac --enable-libfaad --enable-gpl --enable-nonfree --enable-libx264
libavutil 49.10. 0 / 49.10. 0
libavcodec 52. 0. 0 / 52. 0. 0
libavformat 52.22. 1 / 52.22. 1
libavdevice 52. 1. 0 / 52. 1. 0
built on Sep 26 2008 13:12:48, gcc: 4.0.2 20050901 (prerelease) (SUSE Linux)
FFmpeg SVN-r15410

Regards,
Samir.

8:08 AM  

Post a Comment

<< Home