[FFmpeg-user] Converting SDP/RTP files to WAV

jonas at kongslund.net jonas at kongslund.net
Mon Mar 7 20:46:41 CET 2016


On 2016-03-07 12:09, Carl Eugen Hoyos wrote:
> <jonas <at> kongslund.net> writes:
> 
>> ffmpeg version 2.8.6 Copyright (c) 2000-2016 the FFmpeg developers
> 
> Please test current FFmpeg git head when asking for support here.

Sorry about that, Carl. Below is the new output.


$ ffmpeg -loglevel debug -i input.sdp -i input.rtp output.wav
ffmpeg version git-2016-03-07-8c24523 Copyright (c) 2000-2016 the FFmpeg 
developers
   built with Apple LLVM version 7.0.2 (clang-700.1.81)
   configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared 
--enable-pthreads --enable-gpl --enable-version3 
--enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= 
--host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame 
--enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-vda
   libavutil      55. 19.100 / 55. 19.100
   libavcodec     57. 28.100 / 57. 28.100
   libavformat    57. 28.100 / 57. 28.100
   libavdevice    57.  0.101 / 57.  0.101
   libavfilter     6. 39.102 /  6. 39.102
   libavresample   3.  0.  0 /  3.  0.  0
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
   libpostproc    54.  0.100 / 54.  0.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging 
level) with argument 'debug'.
Reading option '-i' ... matched as input file with argument 'input.sdp'.
Reading option '-i' ... matched as input file with argument 'input.rtp'.
Reading option 'output.wav' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file input.sdp.
Successfully parsed a group of options.
Opening an input file: input.sdp.
[file @ 0x7fbc7a700000] Setting default whitelist 'file'
[sdp @ 0x7fbc7b000000] Format sdp probed with size=2048 and score=50
[sdp @ 0x7fbc7b000000] audio codec set to: amrnb
[sdp @ 0x7fbc7b000000] audio samplerate set to: 8000
[sdp @ 0x7fbc7b000000] audio channels set to: 1
[sdp @ 0x7fbc7b000000] Unsupported RTP/AMR configuration!
[sdp @ 0x7fbc7b000000] audio codec set to: amrnb
[sdp @ 0x7fbc7b000000] audio samplerate set to: 8000
[sdp @ 0x7fbc7b000000] audio channels set to: 1
[rtp @ 0x7fbc7a7002a0] Protocol not on whitelist 'file'!
[AVIOContext @ 0x7fbc7a7001c0] Statistics: 356 bytes read, 0 seeks
input.sdp: Invalid data found when processing input

For reference, input.sdp, look likes this

v=0
o=- 579365561 1241609809 IN IP4 10.238.244.251
s=-
c=IN IP4 10.238.33.163
t=0 0
a=sendrecv
m=audio 44700 RTP/AVP 118 110
c=IN IP4 10.238.33.163
b=RR:0
b=RS:0
a=rtpmap:118 AMR/8000/1
a=fmtp:118 
mode-set=0,2,4,7;mode-change-period=2;mode-change-capability=2;mode-change-neighbor=1;max-red=0
a=rtpmap:110 telephone-event/8000
a=fmtp:110 0-15
a=maxptime:40

Regards,
Jonas Kongslund


More information about the ffmpeg-user mailing list