[Live-devel] VLC can't decode MJPEG stream
Brilliantov Kirill Vladimirovich
brilliantov at byterg.ru
Wed Jun 23 01:19:12 PDT 2010
Hello!
I have used vlc 0.8.6h and 1.0.5 to watch MJPEG RTSP-stream.
I successfully connect to server, but I don't see image, I see green or
black square.
Information about stream:
$ openRTSP rtsp://192.168.10.253/jpeg
Opened URL "rtsp://192.168.10.253/jpeg", returning a SDP description:
v=0
o=- 8717677423 1 IN IP4 192.168.10.253
s=streamed by MJPEG
i=JPEG
t=0 0
a=tool:LIVE555 Streaming Media v2009.04.20
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:streamed by MJPEG
a=x-qt-text-inf:JPEG
m=video 0 RTP/AVP 26
c=IN IP4 0.0.0.0
a=x-dimensions:640,480
a=control:track1
m=metadata 0 RTP/AVP 97
c=IN IP4 0.0.0.0
a=rtpmap:97 META/90000
a=control:track2
Created receiver for "video/JPEG" subsession (client ports 55810-55811)
Unable to create receiver for "metadata/META" subsession: RTP payload
format unknown or not supported
Setup "video/JPEG" subsession (client ports 55810-55811)
Created output file: "video-JPEG-1"
Started playing session
Receiving streamed data (signal with "kill -HUP 18170" or "kill -USR1
18170" to terminate)...
^C
$ mplayer rtsp://192.168.10.253/jpeg
MPlayer 1.0rc2-4.3.2-DFSG-free (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 4, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote
control.
Playing rtsp://192.168.10.253/jpeg.
Connecting to server 192.168.10.253[192.168.10.253]: 554...
rtsp_session: unsupported RTSP server. Server type is 'unknown'.
STREAM_LIVE555, URL: rtsp://192.168.10.253/jpeg
Stream not seekable!
file format detected.
Initiated "video/JPEG" RTP subsession on port 59638
demux_rtp: Guessed the video frame rate as 20 frames-per-second.
(If this is wrong, use the "-fps <frame-rate>" option instead.)
VIDEO: [MJPG] 0x0 0bpp 20.000 fps 0.0 kbps ( 0.0 kbyte/s)
[VO_XV] It seems there is no Xvideo support for your video card available.
[VO_XV] Run 'xvinfo' to verify its Xv support and read
[VO_XV] DOCS/HTML/en/video.html#xv!
[VO_XV] See 'mplayer -vo help' for other (non-xv) video out drivers.
[VO_XV] Try -vo x11.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 3)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [x11] 640x480 => 640x480 Planar YV12
[swscaler @ 0xb776c3f8]SwScaler: using unscaled yuv420p -> rgb32 special
convert
er
[mjpeg @ 0xb75a3b50]error count: 64
[mjpeg @ 0xb75a3b50]error y=0 x=33
[mjpeg @ 0xb75a3b50]error count: 64
[mjpeg @ 0xb75a3b50]error y=0 x=33
[mjpeg @ 0xb75a3b50]error count: 64
[mjpeg @ 0xb75a3b50]error y=0 x=33
..............................
RTSP-stream dump:
No. Time Source Destination Protocol
Info
531 40.897661 192.168.10.253 192.168.10.3 JPEG
JPEG message
Frame 531 (1490 bytes on wire, 1490 bytes captured)
Arrival Time: Jun 22, 2010 13:51:45.104001000
[Time delta from previous captured frame: 0.046061000 seconds]
[Time delta from previous displayed frame: 0.046061000 seconds]
[Time since reference or first frame: 40.897661000 seconds]
Frame Number: 531
Frame Length: 1490 bytes
Capture Length: 1490 bytes
[Frame is marked: False]
[Protocols in frame: eth:ip:udp:rtp:jpeg]
[Coloring Rule Name: UDP]
[Coloring Rule String: udp]
Ethernet II, Src: 3com_03:04:05 (00:01:02:03:04:05), Dst:
Giga-Byt_ce:b1:28 (00:0f:ea:ce:b1:28)
Destination: Giga-Byt_ce:b1:28 (00:0f:ea:ce:b1:28)
Address: Giga-Byt_ce:b1:28 (00:0f:ea:ce:b1:28)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address
(factory default)
Source: 3com_03:04:05 (00:01:02:03:04:05)
Address: 3com_03:04:05 (00:01:02:03:04:05)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address
(factory default)
Type: IP (0x0800)
Internet Protocol, Src: 192.168.10.253 (192.168.10.253), Dst:
192.168.10.3 (192.168.10.3)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 1476
Identification: 0x0000 (0)
Flags: 0x04 (Don't Fragment)
0... = Reserved bit: Not set
.1.. = Don't fragment: Set
..0. = More fragments: Not set
Fragment offset: 0
Time to live: 64
Protocol: UDP (0x11)
Header checksum: 0x9ed8 [correct]
[Good: True]
[Bad : False]
Source: 192.168.10.253 (192.168.10.253)
Destination: 192.168.10.3 (192.168.10.3)
User Datagram Protocol, Src Port: 6970 (6970), Dst Port: 48218 (48218)
Source port: 6970 (6970)
Destination port: 48218 (48218)
Length: 1456
Checksum: 0xaec1 [correct]
[Good Checksum: True]
[Bad Checksum: False]
Real-Time Transport Protocol
[Stream setup by RTSP (frame 385)]
[Setup frame: 385]
[Setup Method: RTSP]
10.. .... = Version: RFC 1889 Version (2)
..0. .... = Padding: False
...0 .... = Extension: False
.... 0000 = Contributing source identifiers count: 0
0... .... = Marker: False
Payload type: JPEG-compressed video (26)
Sequence number: 57296
[Extended sequence number: 57296]
Timestamp: 2176382441
Synchronization Source identifier: 0x4f6b30c3 (1332424899)
RFC 2435 JPEG
Main Header
Type Specific: 0
Fragement Offset: 0
Type: 1
Q: 75
Width: 640
Height: 480
Payload: FFDA000C03010002110311003F00F9FE8AC8F8B720A28337...
0000 00 0f ea ce b1 28 00 01 02 03 04 05 08 00 45 00 .....(........E.
0010 05 c4 00 00 40 00 40 11 9e d8 c0 a8 0a fd c0 a8 .... at .@.........
0020 0a 03 1b 3a bc 5a 05 b0 ae c1 80 1a df d0 81 b8 ...:.Z..........
0030 f5 e9 4f 6b 30 c3 00 00 00 00 01 4b 50 3c ff da ..Ok0......KP<..
0040 00 0c 03 01 00 02 11 03 11 00 3f 00 f9 fe 8a c8 ..........?.....
0050 f8 b7 20 a2 83 37 20 a2 82 1c 82 8a 09 b8 51 40 .. ..7 .......Q@
0060 ee 14 50 52 0a 28 2d 05 14 8d 10 51 41 b2 0a 28 ..PR.(-....QA..(
0070 34 4c 28 a0 d6 21 45 05 a6 14 50 68 98 51 41 49 4L(..!E...Ph.QAI
0080 85 14 14 98 51 41 57 0a 28 18 51 40 ee 14 50 01 ....QAW.(.Q at ..P.
0090 45 01 70 a2 80 b8 51 40 ae 14 50 2b 85 14 05 c2 E.p...Q at ..P+....
00a0 8a 04 14 50 2b 85 14 12 d8 51 41 2d 85 14 12 d8 ...P+....QA-....
00b0 51 41 0d 85 14 19 c9 85 14 19 85 14 c1 05 14 8d QA..............
00c0 10 51 41 aa 0a 29 16 14 53 13 0a 28 33 61 45 06 .QA..)..S..(3aE.
00d0 6c 28 a0 80 a2 99 e6 b9 05 14 10 e4 14 50 2b 85 l(...........P+.
00e0 14 05 c2 8a 0a 41 45 05 a0 a2 82 d0 51 48 d2 2c .....AE.....QH.,
00f0 28 a0 d5 30 a2 99 a2 61 45 23 44 c2 8a 0d 13 0a (..0...aE#D.....
0100 28 34 4c 28 a0 a4 14 50 55 c2 8a 07 70 a2 81 dc (4L(...PU...p...
0110 28 a0 77 0a 28 0b 85 14 05 c2 8a 18 5c 28 a0 57 (.w.(.......\(.W
0120 0a 28 13 61 45 0c 2e 14 50 26 c2 8a 05 70 a2 81 .(.aE...P&...p..
0130 36 14 50 4b 0a 28 25 85 14 12 d8 51 41 9b 0a 28 6.PK.(%....QA..(
0140 20 28 a0 68 28 a0 d1 05 14 8d 50 51 41 56 0a 29 (.h(.....PQAV.)
0150 89 85 14 19 b0 a2 83 36 14 50 43 0a 29 9e 3b 90 .......6.PC.).;.
0160 51 40 ae 14 50 17 0a 28 28 28 a0 a4 c2 8a 0a 41 Q at ..P..(((.....A
0170 45 05 a6 14 52 2d 30 a2 83 54 c2 8a 0d 53 0a 28 E...R-0..T...S.(
0180 34 4c 28 a0 b4 c2 8a 0d 13 0a 28 2d 30 a2 81 dc 4L(.......(-0...
0190 28 a0 ab 85 14 c2 e1 45 21 dc 28 a0 2e 14 53 0b (......E!.(...S.
01a0 85 14 85 70 a2 81 5c 28 a0 2e 14 50 1a 05 14 0a ...p..\(...P....
01b0 e1 45 02 b8 51 43 13 61 45 02 6c 28 a0 96 14 50 .E..QC.aE.l(...P
01c0 4b 61 45 33 36 c2 8a 42 0a 28 29 05 14 1a c5 05 KaE36..B.().....
01d0 14 8d 50 51 4c ab 05 14 10 c2 8a 0c 98 51 41 01 ..PQL........QA.
01e0 45 04 b0 a2 99 e1 5c 28 a0 68 28 a0 68 28 a0 a0 E.....\(.h(.h(..
01f0 a2 81 85 14 15 70 a2 82 d0 51 41 69 85 14 8d 22 .....p...QAi..."
0200 c2 8a 66 a9 85 14 8d 13 0a 29 9a 26 14 50 5a 61 ..f......).&.PZa
0210 45 22 d3 0a 29 95 70 a2 80 b8 51 40 ee 14 52 0b E"..).p...Q at ..R.
0220 85 14 c7 70 a2 81 5c 28 a0 2e 14 50 17 0a 29 09 ...p..\(...P..).
0230 b0 a2 80 4c 28 a0 57 0a 29 85 c2 8a 42 b8 51 40 ...L(.W.)...B.Q@
0240 82 8a 04 c2 8a 08 61 45 04 30 a2 98 20 a2 91 68 ......aE.0.. ..h
0250 28 a0 d6 28 28 a0 d5 20 a2 81 85 14 12 d0 51 41 (..((.. ......QA
0260 8b 0a 28 21 85 14 12 14 53 3c 10 a2 81 85 14 0c ..(!....S<......
0270 28 a0 a4 14 50 34 14 50 52 0a 28 2d 05 14 16 98 (...P4.PR.(-....
0280 51 41 68 28 a0 d1 30 a2 83 44 c2 8a 0d 13 0a 28 QAh(..0..D.....(
0290 2d 30 a2 82 ee 14 50 3b 85 14 0d 30 a2 90 ee 14 -0....P;...0....
02a0 50 01 45 03 b8 51 4c 57 0a 29 05 c2 8a 61 70 a2 P.E..QLW.)...ap.
02b0 90 5c 28 a0 57 0a 28 00 a2 81 5c 28 a6 17 0a 28 .\(.W.(...\(...(
02c0 15 c2 8a 42 0a 29 92 d8 51 41 0c 28 a0 10 51 48 ...B.)..QA.(..QH
02d0 d2 21 45 06 f1 41 45 06 a8 28 a0 6c 28 a0 ce 41 .!E..AE..(.l(..A
02e0 45 06 32 0a 28 21 85 14 12 14 53 3c 00 a2 81 85 E.2.(!....S<....
02f0 14 0c 28 a0 a0 a2 81 a0 a2 82 ee 14 50 34 14 50 ..(.........P4.P
0300 5a 61 45 05 a6 14 50 5a 0a 28 34 4c 28 a0 b4 c2 ZaE...PZ.(4L(...
0310 8a 0d 13 0a 28 2e e1 45 03 b8 51 40 5c 28 a0 ab ....(..E..Q@\(..
0320 85 14 82 e1 45 31 dc 28 a0 2e 14 50 2b 85 14 0e ....E1.(...P+...
0330 e1 45 02 b8 51 48 02 8a 60 14 50 01 45 20 b8 51 .E..QH..`.P.E .Q
0340 4c 41 45 02 61 45 04 85 14 10 c2 8a 06 82 8a 46 LAE.aE.........F
0350 d1 0a 28 37 88 51 41 aa 41 45 01 60 a2 83 29 05 ..(7.QA.AE.`..).
0360 14 19 48 28 a0 cd 85 14 12 14 53 3c 00 a2 81 85 ..H(......S<....
0370 14 0c 28 a0 68 28 a0 a4 14 50 50 51 40 d0 51 41 ..(.h(...PPQ at .QA
0380 48 28 a0 b4 14 50 52 61 45 06 89 85 14 16 98 51 H(...PRaE......Q
0390 41 69 85 14 16 98 51 41 41 45 03 b8 51 40 ee 14 Ai....QAAE..Q at ..
03a0 50 30 a2 80 b8 51 40 05 14 05 c2 8a 00 28 a0 2e P0...Q at ......(..
03b0 14 50 01 45 01 70 a2 80 0a 28 10 51 40 05 14 03 .P.E.p...(.Q at ...
03c0 0a 28 24 28 a0 9b 85 14 14 82 8a 46 d1 0a 28 3a .($(.......F..(:
03d0 22 82 8a 0d 6c 14 50 26 14 50 65 20 a2 83 16 14 "...l.P&.Pe ....
03e0 50 64 c2 8a 09 0a 29 9e 08 51 40 c2 8a 00 28 a0 Pd....)..Q at ...(.
03f0 61 45 05 05 14 14 82 8a 0a 41 45 03 41 45 05 20 aE.......AE.AE.
0400 a2 82 90 51 41 69 85 14 16 98 51 41 68 28 a0 bb ...QAi....QAh(..
0410 85 14 14 98 51 41 57 0a 28 1d c2 8a 07 70 a2 80 ....QAW.(....p..
0420 b8 51 40 5c 28 a0 77 0a 28 0b 85 14 05 c2 8a 00 .Q@\(.w.(.......
0430 28 a0 57 0a 28 00 a2 80 0a 28 00 a2 81 30 a2 82 (.W.(....(...0..
0440 58 51 41 21 45 06 88 28 a0 de 21 45 23 a2 28 28 XQA!E..(..!E#.((
0450 a0 d5 05 14 09 85 14 18 c8 28 a0 c1 85 14 19 b0 .........(......
0460 a2 82 02 8a 67 84 14 50 30 a2 80 0a 28 18 51 41 ....g..P0...(.QA
0470 48 28 a0 61 45 05 26 14 50 3b 85 14 14 14 50 34 H(.aE.&.P;....P4
0480 14 50 5a 0a 28 2d 30 a2 82 93 0a 28 28 28 a0 b4 .PZ.(-0....(((..
0490 c2 8a 0a 41 45 05 5c 28 a0 61 45 01 70 a2 81 85 ...AE.\(.aE.p...
04a0 14 00 51 40 05 14 00 51 40 05 14 00 51 40 05 14 ..Q at ...Q@...Q at ..
04b0 00 51 48 02 8a 62 b8 51 41 2f 60 a2 81 05 14 1a .QH..b.QA/`.....
04c0 44 28 a4 74 c5 05 14 1d 11 41 45 06 a9 05 14 12 D(.t.....AE.....
04d0 c2 8a 0c 26 14 50 73 c8 28 a0 cd 85 14 11 70 a2 ...&.Ps.(.....p.
04e0 99 e1 05 14 14 82 8a 00 28 a0 61 45 03 0a 28 28 ........(.aE..((
04f0 28 a0 61 45 05 05 14 0c 28 a0 a4 14 50 50 51 41 (.aE....(...PPQA
0500 48 28 a0 a4 c2 8a 0b 4c 28 a0 a4 c2 8a 0a 4c 28 H(.....L(.....L(
0510 a0 ab 85 14 0c 28 a0 61 45 03 0a 28 00 a2 80 0a .....(.aE..(....
0520 28 00 a2 80 0a 28 00 a2 80 0a 28 00 a2 80 0a 28 (....(....(....(
0530 15 c2 8a 44 85 14 02 0a 29 9a c4 28 a0 e9 80 51 ...D....)..(...Q
0540 48 e9 88 51 41 a2 0a 28 21 85 14 18 49 85 14 1c H..QA..(!...I...
0550 f2 0a 28 32 61 45 04 85 14 cf 08 28 a0 61 45 03 ..(2aE.....(.aE.
0560 0a 28 18 51 40 c2 8a 06 14 50 30 a2 82 90 51 40 .(.Q at ....P0...Q@
0570 c2 8a 0a 0a 28 29 05 14 14 14 50 34 c2 8a 0a 0a ....()....P4....
0580 28 2a e1 45 05 20 a2 82 93 0a 28 1d c2 8a 0a 41 (*.E. ....(....A
0590 45 03 b8 51 40 05 14 0c 28 a0 02 8a 00 28 a0 02 E..Q at ...(....(..
05a0 8a 00 28 a0 02 8a 42 0a 28 00 a2 99 2c 28 a0 a4 ..(...B.(...,(..
05b0 14 52 36 8a 0a 28 3a 20 14 50 74 c4 28 a0 a0 a2 .R6..(: .Pt.(...
05c0 82 24 14 50 61 20 a2 83 09 05 14 19 30 a2 82 42 .$.Pa ......0..B
05d0 8a 67 .g
No. Time Source Destination Protocol
Info
532 40.899246 192.168.10.253 192.168.10.3 JPEG
JPEG message
Frame 532 (89 bytes on wire, 89 bytes captured)
Arrival Time: Jun 22, 2010 13:51:45.105586000
[Time delta from previous captured frame: 0.001585000 seconds]
[Time delta from previous displayed frame: 0.001585000 seconds]
[Time since reference or first frame: 40.899246000 seconds]
Frame Number: 532
Frame Length: 89 bytes
Capture Length: 89 bytes
[Frame is marked: False]
[Protocols in frame: eth:ip:udp:rtp:jpeg]
[Coloring Rule Name: UDP]
[Coloring Rule String: udp]
Ethernet II, Src: 3com_03:04:05 (00:01:02:03:04:05), Dst:
Giga-Byt_ce:b1:28 (00:0f:ea:ce:b1:28)
Destination: Giga-Byt_ce:b1:28 (00:0f:ea:ce:b1:28)
Address: Giga-Byt_ce:b1:28 (00:0f:ea:ce:b1:28)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address
(factory default)
Source: 3com_03:04:05 (00:01:02:03:04:05)
Address: 3com_03:04:05 (00:01:02:03:04:05)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address
(factory default)
Type: IP (0x0800)
Internet Protocol, Src: 192.168.10.253 (192.168.10.253), Dst:
192.168.10.3 (192.168.10.3)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 75
Identification: 0x0000 (0)
Flags: 0x04 (Don't Fragment)
0... = Reserved bit: Not set
.1.. = Don't fragment: Set
..0. = More fragments: Not set
Fragment offset: 0
Time to live: 64
Protocol: UDP (0x11)
Header checksum: 0xa451 [correct]
[Good: True]
[Bad : False]
Source: 192.168.10.253 (192.168.10.253)
Destination: 192.168.10.3 (192.168.10.3)
User Datagram Protocol, Src Port: 6970 (6970), Dst Port: 48218 (48218)
Source port: 6970 (6970)
Destination port: 48218 (48218)
Length: 55
Checksum: 0xfb30 [correct]
[Good Checksum: True]
[Bad Checksum: False]
Real-Time Transport Protocol
[Stream setup by RTSP (frame 385)]
[Setup frame: 385]
[Setup Method: RTSP]
10.. .... = Version: RFC 1889 Version (2)
..0. .... = Padding: False
...0 .... = Extension: False
.... 0000 = Contributing source identifiers count: 0
1... .... = Marker: True
Payload type: JPEG-compressed video (26)
Sequence number: 57297
[Extended sequence number: 57297]
Timestamp: 2176382441
Synchronization Source identifier: 0x4f6b30c3 (1332424899)
RFC 2435 JPEG
Main Header
Type Specific: 0
Fragement Offset: 1428
Type: 1
Q: 75
Width: 640
Height: 480
Payload: 84145030A281A0A281851400514141450341450341450505...
0000 00 0f ea ce b1 28 00 01 02 03 04 05 08 00 45 00 .....(........E.
0010 00 4b 00 00 40 00 40 11 a4 51 c0 a8 0a fd c0 a8 .K.. at .@..Q......
0020 0a 03 1b 3a bc 5a 00 37 fb 30 80 9a df d1 81 b8 ...:.Z.7.0......
0030 f5 e9 4f 6b 30 c3 00 00 05 94 01 4b 50 3c 84 14 ..Ok0......KP<..
0040 50 30 a2 81 a0 a2 81 85 14 00 51 41 41 45 03 41 P0........QAAE.A
0050 45 03 41 45 05 05 14 0d 05 E.AE.....
How can I solve this problem?
Thank you and excuse me for my bad english.
--
С уважением,
Бриллиантов Кирилл Владимирович
…………………………………………………………………
программист, технический отдел
ООО «БайтЭрг»
Видеокамеры МВК – Эффективность разумных решений
…………………………………………………………………
+7(495)221-66-22 доб.122
http://www.byterg.ru http://www.bestdvr.ru
More information about the live-devel
mailing list