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

jonas at kongslund.net jonas at kongslund.net
Mon Mar 7 06:31:16 CET 2016


On 2016-03-07 02:14, Carl Eugen Hoyos wrote:
> <jonas <at> kongslund.net> writes:
> 
>>    ffmpeg -i input.sdp -i input.rtp output.wav
> 
> Complete, uncut console output missing.

Here is one example.

$ cat input.sdp
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


$ ffmpeg -loglevel debug -i input.sdp -i input.rtp output.wav
ffmpeg version 2.8.6 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/2.8.6 --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-libvo-aacenc --enable-libxvid --enable-libopencore-amrnb 
--enable-libopencore-amrwb --enable-libopus --enable-vda
   libavutil      54. 31.100 / 54. 31.100
   libavcodec     56. 60.100 / 56. 60.100
   libavformat    56. 40.101 / 56. 40.101
   libavdevice    56.  4.100 / 56.  4.100
   libavfilter     5. 40.101 /  5. 40.101
   libavresample   2.  1.  0 /  2.  1.  0
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  2.101 /  1.  2.101
   libpostproc    53.  3.100 / 53.  3.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.
[sdp @ 0x7fd87c800000] Format sdp probed with size=2048 and score=50
[sdp @ 0x7fd87c800000] audio codec set to: amrnb
[sdp @ 0x7fd87c800000] audio samplerate set to: 8000
[sdp @ 0x7fd87c800000] audio channels set to: 1
[sdp @ 0x7fd87c800000] Unsupported RTP/AMR configuration!
[sdp @ 0x7fd87c800000] audio codec set to: amrnb
[sdp @ 0x7fd87c800000] audio samplerate set to: 8000
[sdp @ 0x7fd87c800000] audio channels set to: 1
[udp @ 0x7fd87b700be0] end receive buffer size reported is 65536
[udp @ 0x7fd87b403d00] end receive buffer size reported is 65536
[sdp @ 0x7fd87c800000] Before avformat_find_stream_info() pos: 356 bytes 
read:356 seeks:0
[sdp @ 0x7fd87c800000] After avformat_find_stream_info() pos: 356 bytes 
read:356 seeks:0 frames:0
Input #0, sdp, from 'input.sdp':
   Metadata:
     title           : -
   Duration: N/A, bitrate: N/A
     Stream #0:0, 0, 1/8000: Audio: amr_nb, 8000 Hz, mono, flt
Successfully opened the file.
Parsing a group of options: input file input.rtp.
Successfully parsed a group of options.
Opening an input file: input.rtp.
[AVIOContext @ 0x7fd87da00240] Statistics: 73932 bytes read, 0 seeks
input.rtp: Invalid data found when processing input
[AVIOContext @ 0x7fd87b6004a0] Statistics: 356 bytes read, 0 seeks

Regards,
Jonas Kongslund


More information about the ffmpeg-user mailing list