[FFmpeg-user] I have question about receiving rtsp interleaved from encoder

Nikolay Boyko nikolay.boyko at gmail.com
Tue Dec 25 16:44:52 CET 2012

Hi, all

I have a problem when trying to receive rtsp from remote encoder.

ffmpeg -loglevel debug -rtsp_transport tcp -i rtsp://XXX/0  -acodec
libmp3lame -b:a 32k  -ac 1 -sample_fmt s16 -ar 44100 -vcodec copy -s
704x576 -b:v 512k -f flv rtmp://XXX/mp4:test0
ffmpeg version 0.10.6-6:0.10.6-0ubuntu0jon1~natty1 Copyright (c) 2000-2012
the FFmpeg developers
  built on Nov 12 2012 13:16:47 with gcc 4.5.2
  configuration: --arch=i386 --enable-pthreads --enable-runtime-cpudetect
--extra-version='6:0.10.6-0ubuntu0jon1~natty1' --libdir=/usr/lib
--disable-stripping --prefix=/usr --enable-bzlib --enable-libdc1394
--enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm
--enable-libmp3lame --enable-librtmp --enable-libopenjpeg --enable-libpulse
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx
--enable-zlib --enable-gpl --enable-postproc --enable-libcdio
--enable-x11grab --enable-libx264 --shlibdir=/usr/lib --enable-shared
[rtsp @ 0x8299060] SDP:
o=StreamingServer 3331435948 1116907222000 IN IP4
c=IN IP4
t=0 0
m=video 0 RTP/AVP 96
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1; sprop-parameter-sets=Z0LgHtoCwEkQ,aM4wpIA=
m=audio 0 RTP/AVP 0
a=rtpmap:0 PCMU/8000
m=application 0 RTP/AVP 107
a=rtpmap:107 vnd.onvif.metadata/90000

[rtsp @ 0x8299060] video codec set to: h264
[NULL @ 0x82a12c0] RTP Packetization Mode: 1
[NULL @ 0x82a12c0] Extradata set to 0x82a1700 (size: 20)!audio codec set
to: pcm_mulaw
[rtsp @ 0x8299060] audio samplerate set to: 8000
[rtsp @ 0x8299060] audio channels set to: 1
rtsp:// Invalid data found when processing input

Reason as I can see by tcpdump is when ffmpeg try:
it got
and finished

SETUP trackID=0 and trackID=1 work fine.
Can I somewhat skip this stage and setup only trackID=0 and trackID=1 and
then send PLAY.

Thank for any advice.

More information about the ffmpeg-user mailing list