rtspsrc connect live555 ,then I put livestream to save avi vidoe file,but returning error.
zhang007z
zhang007z at gmail.com
Thu Dec 18 01:21:11 PST 2014
according to my previous post (title: rtspsrc connect live555 ,but returning
error.)
to use author Deepak Agasibagil reply as follow:
//---------------------------broadcast rtsp livestream
command----------------------//
gst-launch-0.10 -e rtspsrc location=rtsp://127.0.01:8554/test ! \
rtph264depay ! h264parse ! capsfilter
caps="video/x-h264,width=1280,height=800,framerate=(fraction)25/1" !
ffdec_h264 ! ffmpegcolorspace ! glimagesink
//-----------------------------------------------------------------------------------//
above this command work goodly. it could view rtsp livestream.
//*****************put rtsp livestream to save avi video
file*******************//
I taken this command as follow:
GST_DEBUG="*:2" gst-launch-0.10 -e rtspsrc debug=1
location=rtsp://192.168.1.4:554/vs1 ! rtph264depay ! h264parse ! avimux !
filesink location=foo.avi
//------------------------------------error log
start--------------------------------------//
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
RTSP request message 0x7f19bf2d5c90
request line:
method: 'OPTIONS'
uri: 'rtsp://192.168.1.4:554/vs1'
version: '1.0'
headers:
key: 'User-Agent', value: 'RealMedia Player Version 6.0.9.1235
(linux-2.0-libc6-i386-gcc2.95)'
key: 'ClientChallenge', value: '9e26d33f2984236010ef6253fb1887f7'
key: 'CompanyID', value: 'KnKV4M4I/B2FjJ1TToLycw=='
key: 'GUID', value: '00000000-0000-0000-0000-000000000000'
key: 'RegionData', value: '0'
key: 'PlayerStarttime', value: '[28/03/2003:22:50:23 00:00]'
key: 'ClientID', value: 'Linux_2.4_6.0.9.1235_play32_RN01_EN_586'
body:
RTSP response message 0x7f19bf2d5cd0
status line:
code: '200'
reason: 'OK'
version: '1.0'
headers:
key: 'CSeq', value: '1'
key: 'Date', value: 'Thu, Dec 18 2014 09:26:50 GMT'
key: 'Public', value: 'OPTIONS'
key: 'Public', value: 'DESCRIBE'
key: 'Public', value: 'SETUP'
key: 'Public', value: 'TEARDOWN'
key: 'Public', value: 'PLAY'
key: 'Public', value: 'PAUSE'
key: 'Public', value: 'GET_PARAMETER'
key: 'Public', value: 'SET_PARAMETER'
body: length 0
RTSP request message 0x7f19bf2d5c90
request line:
method: 'DESCRIBE'
uri: 'rtsp://192.168.1.4:554/vs1'
version: '1.0'
headers:
key: 'Accept', value: 'application/sdp'
body:
RTSP response message 0x7f19bf2d5cd0
status line:
code: '200'
reason: 'OK'
version: '1.0'
headers:
key: 'CSeq', value: '2'
key: 'Date', value: 'Thu, Dec 18 2014 09:26:50 GMT'
key: 'Content-Base', value: 'rtsp://192.168.1.4/vs1/'
key: 'Content-Type', value: 'application/sdp'
key: 'Content-Length', value: '773'
body: length 774
00000000 (0x7f19b80041d0): 76 3d 30 0d 0a 6f 3d 2d 20 31 34 31 38 38 36 35
v=0..o=- 1418865
00000010 (0x7f19b80041e0): 35 35 39 39 38 37 34 30 39 20 31 20 49 4e 20 49
559987409 1 IN I
00000020 (0x7f19b80041f0): 50 34 20 31 39 32 2e 31 36 38 2e 31 2e 34 0d 0a
P4 192.168.1.4..
00000030 (0x7f19b8004200): 73 3d 53 65 73 73 69 6f 6e 20 73 74 72 65 61 6d
s=Session stream
00000040 (0x7f19b8004210): 65 64 20 62 79 20 22 74 65 73 74 4f 6e 44 65 6d
ed by "testOnDem
00000050 (0x7f19b8004220): 61 6e 64 52 54 53 50 53 65 72 76 65 72 22 0d 0a
andRTSPServer"..
00000060 (0x7f19b8004230): 69 3d 4c 49 56 45 35 35 35 20 53 74 72 65 61 6d
i=LIVE555 Stream
00000070 (0x7f19b8004240): 69 6e 67 20 4d 65 64 69 61 20 76 32 30 31 33 2e
ing Media v2013.
00000080 (0x7f19b8004250): 30 34 2e 30 36 0d 0a 74 3d 30 20 30 0d 0a 61 3d
04.06..t=0 0..a=
00000090 (0x7f19b8004260): 74 6f 6f 6c 3a 4c 49 56 45 35 35 35 20 53 74 72
tool:LIVE555 Str
000000a0 (0x7f19b8004270): 65 61 6d 69 6e 67 20 4d 65 64 69 61 20 76 32 30
eaming Media v20
000000b0 (0x7f19b8004280): 31 33 2e 30 34 2e 30 36 0d 0a 61 3d 74 79 70 65
13.04.06..a=type
000000c0 (0x7f19b8004290): 3a 62 72 6f 61 64 63 61 73 74 0d 0a 61 3d 63 6f
:broadcast..a=co
000000d0 (0x7f19b80042a0): 6e 74 72 6f 6c 3a 2a 0d 0a 61 3d 72 61 6e 67 65
ntrol:*..a=range
000000e0 (0x7f19b80042b0): 3a 6e 70 74 3d 30 2d 0d 0a 61 3d 78 2d 71 74 2d
:npt=0-..a=x-qt-
000000f0 (0x7f19b80042c0): 74 65 78 74 2d 6e 61 6d 3a 53 65 73 73 69 6f 6e
text-nam:Session
00000100 (0x7f19b80042d0): 20 73 74 72 65 61 6d 65 64 20 62 79 20 22 74 65
streamed by "te
00000110 (0x7f19b80042e0): 73 74 4f 6e 44 65 6d 61 6e 64 52 54 53 50 53 65
stOnDemandRTSPSe
00000120 (0x7f19b80042f0): 72 76 65 72 22 0d 0a 61 3d 78 2d 71 74 2d 74 65
rver"..a=x-qt-te
00000130 (0x7f19b8004300): 78 74 2d 69 6e 66 3a 4c 49 56 45 35 35 35 20 53
xt-inf:LIVE555 S
00000140 (0x7f19b8004310): 74 72 65 61 6d 69 6e 67 20 4d 65 64 69 61 20 76
treaming Media v
00000150 (0x7f19b8004320): 32 30 31 33 2e 30 34 2e 30 36 0d 0a 6d 3d 76 69
2013.04.06..m=vi
00000160 (0x7f19b8004330): 64 65 6f 20 30 20 52 54 50 2f 41 56 50 20 39 36
deo 0 RTP/AVP 96
00000170 (0x7f19b8004340): 0d 0a 63 3d 49 4e 20 49 50 34 20 30 2e 30 2e 30
..c=IN IP4 0.0.0
00000180 (0x7f19b8004350): 2e 30 0d 0a 62 3d 41 53 3a 35 30 30 0d 0a 61 3d
.0..b=AS:500..a=
00000190 (0x7f19b8004360): 72 74 70 6d 61 70 3a 39 36 20 48 32 36 34 2f 39
rtpmap:96 H264/9
000001a0 (0x7f19b8004370): 30 30 30 30 0d 0a 61 3d 66 6d 74 70 3a 39 36 20
0000..a=fmtp:96
000001b0 (0x7f19b8004380): 70 61 63 6b 65 74 69 7a 61 74 69 6f 6e 2d 6d 6f
packetization-mo
000001c0 (0x7f19b8004390): 64 65 3d 31 3b 70 72 6f 66 69 6c 65 2d 6c 65 76
de=1;profile-lev
000001d0 (0x7f19b80043a0): 65 6c 2d 69 64 3d 34 44 45 30 32 41 3b 73 70 72
el-id=4DE02A;spr
000001e0 (0x7f19b80043b0): 6f 70 2d 70 61 72 61 6d 65 74 65 72 2d 73 65 74
op-parameter-set
000001f0 (0x7f19b80043c0): 73 3d 4a 30 33 67 4b 6f 31 6f 42 51 42 62 6f 51
s=J03gKo1oBQBboQ
00000200 (0x7f19b80043d0): 41 41 41 77 41 42 41 41 41 44 41 42 6b 50 46 43
AAAwABAAADABkPFC
00000210 (0x7f19b80043e0): 4b 67 2c 4b 4f 34 43 55 6b 67 3d 0d 0a 61 3d 63
Kg,KO4CUkg=..a=c
00000220 (0x7f19b80043f0): 6f 6e 74 72 6f 6c 3a 74 72 61 63 6b 31 0d 0a 6d
ontrol:track1..m
00000230 (0x7f19b8004400): 3d 61 75 64 69 6f 20 30 20 52 54 50 2f 41 56 50
=audio 0 RTP/AVP
00000240 (0x7f19b8004410): 20 39 37 0d 0a 63 3d 49 4e 20 49 50 34 20 30 2e
97..c=IN IP4 0.
00000250 (0x7f19b8004420): 30 2e 30 2e 30 0d 0a 62 3d 41 53 3a 39 36 0d 0a
0.0.0..b=AS:96..
00000260 (0x7f19b8004430): 61 3d 72 74 70 6d 61 70 3a 39 37 20 4d 50 45 47
a=rtpmap:97 MPEG
00000270 (0x7f19b8004440): 34 2d 47 45 4e 45 52 49 43 2f 38 30 30 30 0d 0a
4-GENERIC/8000..
00000280 (0x7f19b8004450): 61 3d 66 6d 74 70 3a 39 37 20 73 74 72 65 61 6d
a=fmtp:97 stream
00000290 (0x7f19b8004460): 74 79 70 65 3d 35 3b 70 72 6f 66 69 6c 65 2d 6c
type=5;profile-l
000002a0 (0x7f19b8004470): 65 76 65 6c 2d 69 64 3d 31 3b 6d 6f 64 65 3d 41
evel-id=1;mode=A
000002b0 (0x7f19b8004480): 41 43 2d 68 62 72 3b 73 69 7a 65 6c 65 6e 67 74
AC-hbr;sizelengt
000002c0 (0x7f19b8004490): 68 3d 31 33 3b 69 6e 64 65 78 6c 65 6e 67 74 68
h=13;indexlength
000002d0 (0x7f19b80044a0): 3d 33 3b 69 6e 64 65 78 64 65 6c 74 61 6c 65 6e
=3;indexdeltalen
000002e0 (0x7f19b80044b0): 67 74 68 3d 33 3b 63 6f 6e 66 69 67 3d 31 35 38
gth=3;config=158
000002f0 (0x7f19b80044c0): 38 0d 0a 61 3d 63 6f 6e 74 72 6f 6c 3a 74 72 61
8..a=control:tra
00000300 (0x7f19b80044d0): 63 6b 32 0d 0a 00
ck2...
sdp packet 0x7f19b8003940:
version: '0'
origin:
username: '-'
sess_id: '1418865559987409'
sess_version: '1'
nettype: 'IN'
addrtype: 'IP4'
addr: '192.168.1.4'
session_name: 'Session streamed by "testOnDemandRTSPServer"'
information: 'LIVE555 Streaming Media v2013.04.06'
uri: '(NULL)'
connection:
nettype: '(NULL)'
addrtype: '(NULL)'
address: '(NULL)'
ttl: '0'
addr_number: '0'
key:
type: '(NULL)'
data: '(NULL)'
attributes:
attribute 'tool' : 'LIVE555 Streaming Media v2013.04.06'
attribute 'type' : 'broadcast'
attribute 'control' : '*'
attribute 'range' : 'npt=0-'
attribute 'x-qt-text-nam' : 'Session streamed by "testOnDemandRTSPServer"'
attribute 'x-qt-text-inf' : 'LIVE555 Streaming Media v2013.04.06'
medias:
media 0:
media: 'video'
port: '0'
num_ports: '4294967295'
proto: 'RTP/AVP'
formats:
format '96'
information: '(NULL)'
connections:
nettype: 'IN'
addrtype: 'IP4'
address: '0.0.0.0'
ttl: '0'
addr_number: '0'
bandwidths:
type: 'AS'
bandwidth: '500'
key:
type: '(NULL)'
data: '(NULL)'
attributes:
attribute 'rtpmap' : '96 H264/90000'
attribute 'fmtp' : '96
packetization-mode=1;profile-level-id=4DE02A;sprop-parameter-sets=J03gKo1oBQBboQAAAwABAAADABkPFCKg,KO4CUkg='
attribute 'control' : 'track1'
media 1:
media: 'audio'
port: '0'
num_ports: '4294967295'
proto: 'RTP/AVP'
formats:
format '97'
information: '(NULL)'
connections:
nettype: 'IN'
addrtype: 'IP4'
address: '0.0.0.0'
ttl: '0'
addr_number: '0'
bandwidths:
type: 'AS'
bandwidth: '96'
key:
type: '(NULL)'
data: '(NULL)'
attributes:
attribute 'rtpmap' : '97 MPEG4-GENERIC/8000'
attribute 'fmtp' : '97
streamtype=5;profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1588'
attribute 'control' : 'track2'
RTSP request message 0x7f19bf2d5af0
request line:
method: 'SETUP'
uri: 'rtsp://192.168.1.4/vs1/track1'
version: '1.0'
headers:
key: 'Transport', value: 'RTP/AVP;unicast;client_port=46558-46559'
body:
RTSP response message 0x7f19bf2d5b30
status line:
code: '200'
reason: 'OK'
version: '1.0'
headers:
key: 'CSeq', value: '3'
key: 'Date', value: 'Thu, Dec 18 2014 09:26:50 GMT'
key: 'Transport', value:
'RTP/AVP;unicast;destination=192.168.1.15;source=192.168.1.4;client_port=46558-46559;server_port=6970-6971'
key: 'Session', value: '85CF10D3'
body: length 0
RTSP request message 0x7f19bf2d5af0
request line:
method: 'SETUP'
uri: 'rtsp://192.168.1.4/vs1/track2'
version: '1.0'
headers:
key: 'Transport', value: 'RTP/AVP;unicast;client_port=47356-47357'
body:
RTSP response message 0x7f19bf2d5b30
status line:
code: '200'
reason: 'OK'
version: '1.0'
headers:
key: 'CSeq', value: '4'
key: 'Date', value: 'Thu, Dec 18 2014 09:26:50 GMT'
key: 'Transport', value:
'RTP/AVP;unicast;destination=192.168.1.15;source=192.168.1.4;client_port=47356-47357;server_port=6972-6973'
key: 'Session', value: '85CF10D3'
body: length 0
RTSP request message 0x7f19bf2d5c60
request line:
method: 'PLAY'
uri: 'rtsp://192.168.1.4:554/vs1'
version: '1.0'
headers:
key: 'Range', value: 'npt=0-'
body:
RTSP response message 0x7f19bf2d5ca0
status line:
code: '200'
reason: 'OK'
version: '1.0'
headers:
key: 'CSeq', value: '5'
key: 'Date', value: 'Thu, Dec 18 2014 09:26:50 GMT'
key: 'Range', value: 'npt=0.000-'
key: 'Session', value: '85CF10D3'
key: 'RTP-Info', value:
'url=rtsp://192.168.1.4/vs1/track1;seq=34330;rtptime=3294740312'
key: 'RTP-Info', value:
'url=rtsp://192.168.1.4/vs1/track2;seq=44578;rtptime=3958571969'
body: length 0
0:00:00.354451617 4848 0x7f19b8001990 WARN avimux
gstavimux.c:653:gst_avi_mux_vidsink_set_caps:<avimux0> refused caps
video/x-h264, stream-format=(string)byte-stream, alignment=(string)au,
width=(int)1280, height=(int)720, parsed=(boolean)true
0:00:00.433520763 4848 0x7f19b80018f0 WARN basesrc
gstbasesrc.c:2625:gst_base_src_loop:<udpsrc1> error: Internal data flow
error.
0:00:00.433614470 4848 0x7f19b80018f0 WARN basesrc
gstbasesrc.c:2625:gst_base_src_loop:<udpsrc1> error: streaming task paused,
reason not-negotiated (-4)
0:00:00.537923211 4848 0x7f19b80019e0 WARN basesrc
gstbasesrc.c:2625:gst_base_src_loop:<udpsrc3> error: Internal data flow
error.
0:00:00.537989532 4848 0x7f19b80019e0 WARN basesrc
gstbasesrc.c:2625:gst_base_src_loop:<udpsrc3> error: streaming task paused,
reason not-linked (-1)
ERROR: from element
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc3: Internal data
flow error.
Additional debug info:
gstbasesrc.c(2625): gst_base_src_loop ():
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc3:
streaming task paused, reason not-linked (-1)
Execution ended after 502219643 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
RTSP request message 0x7f19bf2d5c90
request line:
method: 'PAUSE'
uri: 'rtsp://192.168.1.4:554/vs1'
version: '1.0'
headers:
body:
0:00:00.541430261 4848 0x8fdc00 WARN rtspsrc
gstrtspsrc.c:4591:gst_rtspsrc_try_send:<rtspsrc0> receive interrupted
Setting pipeline to NULL ...
0:00:00.541468819 4848 0x8fdc00 WARN rtspsrc
gstrtspsrc.c:6406:gst_rtspsrc_pause:<rtspsrc0> PAUSE interrupted
RTSP request message 0x7f19bf2d5c90
request line:
method: 'TEARDOWN'
uri: 'rtsp://192.168.1.4:554/vs1'
version: '1.0'
headers:
body:
0:00:00.542205056 4848 0x8fdc00 WARN rtspsrc
gstrtspsrc.c:4591:gst_rtspsrc_try_send:<rtspsrc0> receive interrupted
0:00:00.542229842 4848 0x8fdc00 WARN rtspsrc
gstrtspsrc.c:5887:gst_rtspsrc_close:<rtspsrc0> TEARDOWN interrupted
Freeing pipeline ...
//---------------------------------------error log
end-----------------------------------------//
above it is return error log.please any ideas for me,thank you for helping
me.
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/rtspsrc-connect-live555-then-I-put-livestream-to-save-avi-vidoe-file-but-returning-error-tp4669953.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list