[FFmpeg-user] RTSP Input/Output error (invalid data found)

Roquene roquene at googlemail.com
Mon Feb 3 20:09:30 CET 2014


Am 03.02.2014 09:07, schrieb Andrey Utkin:
> Sniffing RTSP traffic, and also setting -loglevel debug may help.
>
>

Thanks for the Reply.
i tryed -loglevel with ffmpeg.

this is the output:

bin>ffmpeg -loglevel debug -i rtsp://192.168.178.5:554/live/av0?user=admin
ffmpeg version N-60240-ge1cb6dc Copyright (c) 2000-2014 the FFmpeg 
developers
   built on Jan 29 2014 22:01:42 with gcc 4.8.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads 
--enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r 
--enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca 
--enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug 
--enable-libmp3lame --ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg 
--enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr 
--enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvidstab 
--enable-libvo-aa
cenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx 
--enable-libwavp
ack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
   libavutil      52. 63.100 / 52. 63.100
   libavcodec     55. 49.101 / 55. 49.101
   libavformat    55. 28.101 / 55. 28.101
   libavdevice    55.  7.100 / 55.  7.100
   libavfilter     4.  1.101 /  4.  1.101
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
   libpostproc    52.  3.100 / 52.  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 
'rtsp://192.168.178.5:554/live/av0?user=admin'.
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 
rtsp://192.168.178.5:554/live/av0?user=admin.
Successfully parsed a group of options.
Opening an input file: rtsp://192.168.178.5:554/live/av0?user=admin.
[rtsp @ 003e3380] CSeq 2 expected, 1 received.
rtsp://192.168.178.5:554/live/av0?user=admin: Invalid data found when 
processing input

also tryed to sniff the traffic. but i'm realy new to this.
use wireshark to look what VLC send:

Request: OPTIONS rtsp://192.168.178.5:554/live/av0?user=admin RTSP/1.0\r\n
Method: OPTIONS
URL: rtsp://192.168.178.5:554/live/av0?user=admin
CSeq: 2\r\n
User-Agent: LibVLC/2.1.0 (LIVE555 Streaming Media v2012.12.18)\r\n
\r\n

Request: DESCRIBE rtsp://192.168.178.5:554/live/av0?user=admin RTSP/1.0\r\n
Method: DESCRIBE
URL: rtsp://192.168.178.5:554/live/av0?user=admin
CSeq: 3\r\n
User-Agent: LibVLC/2.1.0 (LIVE555 Streaming Media v2012.12.18)\r\n
Accept: application/sdp\r\n

Request: SETUP rtsp://192.168.178.5:554/audio0 RTSP/1.0\r\n
Method: SETUP
URL: rtsp://192.168.178.5:554/audio0
CSeq: 4\r\n
User-Agent: LibVLC/2.1.0 (LIVE555 Streaming Media v2012.12.18)\r\n
Transport: RTP/AVP;unicast;client_port=57286-57287
\r\n

Request: SETUP rtsp://192.168.178.5:554/video0 RTSP/1.0\r\n
Method: SETUP
URL: rtsp://192.168.178.5:554/video0
CSeq: 5\r\n
User-Agent: LibVLC/2.1.0 (LIVE555 Streaming Media v2012.12.18)\r\n
Transport: RTP/AVP;unicast;client_port=57288-57289
\r\n

Request: PLAY rtsp://192.168.178.5:554/live/av0?user=admin RTSP/1.0\r\n
Method: PLAY
URL: rtsp://192.168.178.5:554/live/av0?user=admin
CSeq: 6\r\n
User-Agent: LibVLC/2.1.0 (LIVE555 Streaming Media v2012.12.18)\r\n
Session: 96311203
Range: npt=0.000-\r\n
\r\n

that works.


And with mmpeg it looks like this:

Request: OPTIONS rtsp://192.168.178.5:554/live/av0?user=admin RTSP/1.0\r\n
Method: OPTIONS
URL: rtsp://192.168.178.5:554/live/av0?user=admin
Cseq: 1\r\n
User-Agent: Lavf55.28.101\r\n
\r\n

Request: DESCRIBE rtsp://192.168.178.5:554/live/av0?user=admin RTSP/1.0\r\n
Method: DESCRIBE
URL: rtsp://192.168.178.5:554/live/av0?user=admin
Accept: application/sdp\r\n
Cseq: 2\r\n
User-Agent: Lavf55.28.101\r\n
\r\n

and it don't work.



so looks like that "Cseq" is the problem.
but have no idea how to fix that.


Roque Ne


More information about the ffmpeg-user mailing list