Skip to content

Instantly share code, notes, and snippets.

@Mezzano
Created March 7, 2018 18:08
Show Gist options
  • Save Mezzano/12d550685d27d3c65647c12fd1cae549 to your computer and use it in GitHub Desktop.
Save Mezzano/12d550685d27d3c65647c12fd1cae549 to your computer and use it in GitHub Desktop.
server side
sudo GST_DEBUG=rtsp*:4 ./macq-gst-rtsp-server -f /tmp/gst-rtsp-server.ini
0:00:36.096189185 31877 0x699018c0 INFO rtspstream rtsp-stream.c:1892:dump_structure: structure: application/x-rtp-source-stats, ssrc=(uint)3456116650, internal=(boolean)true, validated=(boolean)true, received-bye=(boolean)false, is-csrc=(boolean)false, is-sender=(boolean)true, seqnum-base=(int)6261, clock-rate=(int)90000, octets-sent=(guint64)5709250, packets-sent=(guint64)4512, octets-received=(guint64)5709250, packets-received=(guint64)516, bitrate=(guint64)1515629, packets-lost=(int)-516, jitter=(uint)0, sent-pli-count=(uint)0, recv-pli-count=(uint)0, sent-fir-count=(uint)0, recv-fir-count=(uint)0, sent-nack-count=(uint)0, recv-nack-count=(uint)0, have-sr=(boolean)true, sr-ntptime=(guint64)16017800436480020255, sr-rtptime=(uint)4052565920, sr-octet-count=(uint)5709250, sr-packet-count=(uint)4512;
[mv4l2src] 1 frames lost starting at index 298. Real fps=8.00
0:00:38.410491837 31877 0x6a301800 INFO rtspstream rtsp-stream.c:2008:on_ssrc_active: 0x6a3191c8: source 0x68d629c0 in transport 0x6a304648 is active
0:00:38.410693835 31877 0x6a301800 INFO rtspclient rtsp-client.c:1763:do_keepalive: keep session 0x6a303698 alive
0:00:40.037622792 31877 0x699018c0 INFO rtspstream rtsp-stream.c:1892:dump_structure: structure: application/x-rtp-source-stats, ssrc=(uint)3456116650, internal=(boolean)true, validated=(boolean)true, received-bye=(boolean)false, is-csrc=(boolean)false, is-sender=(boolean)true, seqnum-base=(int)6261, clock-rate=(int)90000, octets-sent=(guint64)6432569, packets-sent=(guint64)5084, octets-received=(guint64)6432569, packets-received=(guint64)583, bitrate=(guint64)1524735, packets-lost=(int)-583, jitter=(uint)0, sent-pli-count=(uint)0, recv-pli-count=(uint)0, sent-fir-count=(uint)0, recv-fir-count=(uint)0, sent-nack-count=(uint)0, recv-nack-count=(uint)0, have-sr=(boolean)true, sr-ntptime=(guint64)16017800453409071939, sr-rtptime=(uint)4052920665, sr-octet-count=(uint)6432569, sr-packet-count=(uint)5084;
0:00:41.309264848 31877 0x747029b0 INFO rtspclient rtsp-client.c:3456:handle_request: client 0x940090: received a request PAUSE rtsp://10.1.63.236:8554/colour/ 1.0
0:00:41.309605511 31877 0x747029b0 INFO rtspmedia rtsp-media.c:4068:gst_rtsp_media_set_state: going to state PAUSED media 0x933c70, target state PLAYING
0:00:41.309745843 31877 0x747029b0 INFO rtspstream rtsp-stream.c:3752:update_transport: removing 10.1.41.93:58758-58759
0:00:41.310017174 31877 0x747029b0 INFO rtspmedia rtsp-media.c:4119:gst_rtsp_media_set_state: state 3 active 0 media 0x933c70 do_state 1
0:00:41.311133830 31877 0x747029b0 INFO rtspmedia rtsp-media.c:3989:media_set_pipeline_state_locked: state PAUSED media 0x933c70
0:00:41.311256162 31877 0x747029b0 INFO rtspmedia rtsp-media.c:2627:set_target_state: set target state to PAUSED for media 0x933c70
0:00:41.311371161 31877 0x747029b0 INFO rtspmedia rtsp-media.c:2614:set_state: set state to PAUSED for media 0x933c70
0:00:41.315602120 31877 0x747029b0 FIXME rtspmedia rtsp-media.c:3833:gst_rtsp_media_suspend: suspend for dynamic pipelines needs fixing
0:00:41.318628424 31877 0x747029b0 INFO rtspclient rtsp-client.c:3456:handle_request: client 0x940090: received a request TEARDOWN rtsp://10.1.63.236:8554/colour/ 1.0
0:00:41.319000087 31877 0x747029b0 INFO rtspmedia rtsp-media.c:4068:gst_rtsp_media_set_state: going to state NULL media 0x933c70, target state PAUSED
0:00:41.319192752 31877 0x747029b0 INFO rtspmedia rtsp-media.c:4119:gst_rtsp_media_set_state: state 1 active 0 media 0x933c70 do_state 1
0:00:41.319370750 31877 0x747029b0 INFO rtspmedia rtsp-media.c:3423:gst_rtsp_media_unprepare: unprepare media 0x933c70
0:00:41.319523082 31877 0x747029b0 INFO rtspmedia rtsp-media.c:2627:set_target_state: set target state to NULL for media 0x933c70
0:00:41.319728747 31877 0x747029b0 INFO rtspmedia rtsp-media.c:2614:set_state: set state to NULL for media 0x933c70
0:00:41.322697052 31877 0x747029b0 INFO rtspstream rtsp-stream.c:1875:caps_notify: stream 0x6a3191c8 received caps (nil), (NULL)
0:00:41.337682907 31877 0x747029b0 INFO rtspmedia rtsp-media.c:3323:finish_unprepare: Removing elements of stream 0 from pipeline
0:00:41.337804239 31877 0x747029b0 INFO rtspstream rtsp-stream.c:3264:gst_rtsp_stream_leave_bin: stream 0x6a3191c8 leaving bin
DEBUG: Caught Unprepared signal!
** (macq-gst-rtsp-server:31877): CRITICAL **: gst_rtsp_media_prepare: assertion 'GST_IS_RTSP_MEDIA (media)' failed
0:00:41.342050865 31877 0x747029b0 INFO rtspsessionmedia rtsp-session-media.c:105:gst_rtsp_session_media_finalize: free session media 0x6a305dc0
0:00:41.342233863 31877 0x6a301750 INFO rtspthreadpool rtsp-thread-pool.c:332:do_loop: exit mainloop of thread 0x6a303c38
0:00:41.342403195 31877 0x747029b0 WARN rtspmedia rtsp-media.c:4141:gst_rtsp_media_set_state: media 0x933c70 was not prepared
0:00:41.342459527 31877 0x747029b0 INFO rtspmedia rtsp-media.c:3444:gst_rtsp_media_unprepare: media 0x933c70 was already unprepared
0:00:41.343283853 31877 0x747029b0 INFO rtspclient rtsp-client.c:3342:client_session_removed: client 0x940090: session 0x6a303698 removed
0:00:41.343601850 31877 0x747029b0 INFO rtspclient rtsp-client.c:665:client_unwatch_session: client 0x940090: unwatch session 0x6a303698
0:00:41.343876847 31877 0x747029b0 INFO rtspsession rtsp-session.c:152:gst_rtsp_session_finalize: finalize session 0x6a303698
0:00:41.344273843 31877 0x747029b0 INFO rtspclient rtsp-client.c:4309:closed: client 0x940090: connection closed
0:00:41.344640840 31877 0x747029b0 INFO rtspclient rtsp-client.c:4541:client_watch_notify: client 0x940090: watch destroyed
0:00:41.344957837 31877 0x747029b0 INFO rtspclient rtsp-client.c:735:gst_rtsp_client_finalize: finalize client 0x940090
0:00:41.345397832 31877 0x747029b0 INFO rtspthreadpool rtsp-thread-pool.c:332:do_loop: exit mainloop of thread 0x881560
[mv4l2src] 1 frames lost starting at index 410. Real fps=8.00
0:01:05.708478709 31877 0x9322c0 INFO rtspclient rtsp-client.c:4089:gst_rtsp_client_set_connection: client 0x9401c0 connected to server ip 10.1.63.236, ipv6 = 0
0:01:05.708802372 31877 0x9322c0 INFO rtspclient rtsp-client.c:4092:gst_rtsp_client_set_connection: added new client 0x9401c0 ip 10.1.41.93:47976
DEBUG: Caught Client connected!
0:01:05.709486699 31877 0x922d50 INFO rtspthreadpool rtsp-thread-pool.c:330:do_loop: enter mainloop of thread 0x8eec58
0:01:05.709552032 31877 0x9322c0 INFO rtspclient rtsp-client.c:4588:gst_rtsp_client_attach: client 0x9401c0: attaching to context 0x93f580
0:01:05.713034331 31877 0x922d50 INFO rtspclient rtsp-client.c:3456:handle_request: client 0x9401c0: received a request OPTIONS rtsp://10.1.63.236:8554/colour 1.0
0:01:05.715281976 31877 0x922d50 INFO rtspclient rtsp-client.c:3456:handle_request: client 0x9401c0: received a request DESCRIBE rtsp://10.1.63.236:8554/colour 1.0
0:01:05.715603307 31877 0x922d50 INFO rtspmountpoints rtsp-mount-points.c:300:gst_rtsp_mount_points_match: found media factory 0x8b1978 for path /colour
0:01:05.715841304 31877 0x922d50 INFO rtspmediafactory rtsp-media-factory.c:1239:gst_rtsp_media_factory_construct: constructed media 0x933c70 for url /colour
0:01:05.716297967 31877 0x922d50 INFO rtspmedia rtsp-media.c:3212:gst_rtsp_media_prepare: preparing media 0x933c70
0:01:05.716383633 31877 0x68d024f0 INFO rtspthreadpool rtsp-thread-pool.c:330:do_loop: enter mainloop of thread 0x68d04c40
0:01:05.717311957 31877 0x68d024f0 INFO rtspstream rtsp-stream.c:3106:gst_rtsp_stream_join_bin: stream 0x6a3191c8 joining bin as session 0
0:01:05.725852541 31877 0x68d024f0 INFO rtspmedia rtsp-media.c:2935:start_preroll: setting pipeline to PAUSED for media 0x933c70
0:01:05.726130872 31877 0x68d024f0 INFO rtspmedia rtsp-media.c:2627:set_target_state: set target state to PAUSED for media 0x933c70
0:01:05.726410869 31877 0x68d024f0 INFO rtspmedia rtsp-media.c:2614:set_state: set state to PAUSED for media 0x933c70
0:01:05.764724500 31877 0x68d024f0 INFO rtspmedia rtsp-media.c:2950:start_preroll: NO_PREROLL state change: live media 0x933c70
0:01:05.764967164 31877 0x68d024f0 INFO rtspmedia rtsp-media.c:2614:set_state: set state to PLAYING for media 0x933c70
[INFO] ringBufferEnable 0, chromaInterleave 0, mapType 0, linear2TiledEnable 1
0:01:05.848628690 31877 0x68d02400 INFO rtspstream rtsp-stream.c:2058:on_new_sender_ssrc: 0x6a3191c8: new sender source 0x69934090
0:01:05.849262017 31877 0x68d02400 INFO rtspstream rtsp-stream.c:1892:dump_structure: structure: application/x-rtp-source-stats, ssrc=(uint)3307645423, internal=(boolean)true, validated=(boolean)true, received-bye=(boolean)false, is-csrc=(boolean)false, is-sender=(boolean)false, seqnum-base=(int)29399, clock-rate=(int)90000, octets-sent=(guint64)0, packets-sent=(guint64)0, octets-received=(guint64)0, packets-received=(guint64)0, bitrate=(guint64)0, packets-lost=(int)0, jitter=(uint)0, sent-pli-count=(uint)0, recv-pli-count=(uint)0, sent-fir-count=(uint)0, recv-fir-count=(uint)0, sent-nack-count=(uint)0, recv-nack-count=(uint)0, have-sr=(boolean)false, sr-ntptime=(guint64)0, sr-rtptime=(uint)0, sr-octet-count=(uint)0, sr-packet-count=(uint)0;
0:01:05.849630014 31877 0x68d02400 INFO rtspstream rtsp-stream.c:1875:caps_notify: stream 0x6a3191c8 received caps 0x68d03118, application/x-rtp, media=(string)video, payload=(int)96, clock-rate=(int)90000, encoding-name=(string)H264, ssrc=(uint)3307645423, timestamp-offset=(uint)513862824, seqnum-offset=(uint)29399, a-framerate=(string)8
0:01:05.851324664 31877 0x68d02400 INFO rtspstream rtsp-stream.c:1875:caps_notify: stream 0x6a3191c8 received caps 0x68d032a0, application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)1, sprop-parameter-sets=(string)"Z0JAIKaAUAIGQA\=\=\,aM48gA\=\=", payload=(int)96, seqnum-offset=(uint)29399, timestamp-offset=(uint)513862824, ssrc=(uint)3307645423, a-framerate=(string)8
0:01:05.852047324 31877 0x68d024f0 INFO rtspmedia rtsp-media.c:775:collect_media_stats: collect media stats
DEBUG: Caught Prepared signal!
0:01:05.852319321 31877 0x922d50 INFO rtspmedia rtsp-media.c:3239:gst_rtsp_media_prepare: object 0x933c70 is prerolled
0:01:05.860488909 31877 0x922d50 INFO rtspmedia rtsp-media.c:775:collect_media_stats: collect media stats
0:01:05.860730240 31877 0x922d50 FIXME rtspmedia rtsp-media.c:3833:gst_rtsp_media_suspend: suspend for dynamic pipelines needs fixing
0:01:05.860816239 31877 0x922d50 INFO rtspclient rtsp-client.c:2855:handle_describe_request: adding content-base: rtsp://10.1.63.236:8554/colour/
0:01:05.864262539 31877 0x922d50 INFO rtspclient rtsp-client.c:3456:handle_request: client 0x9401c0: received a request SETUP rtsp://10.1.63.236:8554/colour/stream=0 1.0
0:01:05.864374872 31877 0x922d50 INFO rtspmountpoints rtsp-mount-points.c:300:gst_rtsp_mount_points_match: found media factory 0x8b1978 for path /colour/stream=0
0:01:05.864425538 31877 0x922d50 INFO rtspclient rtsp-client.c:989:find_media: reusing cached media 0x933c70 for path /colour
0:01:05.864469204 31877 0x922d50 FIXME rtspmedia rtsp-media.c:3833:gst_rtsp_media_suspend: suspend for dynamic pipelines needs fixing
0:01:05.864504204 31877 0x922d50 WARN rtspmedia rtsp-media.c:3859:gst_rtsp_media_suspend: media 0x933c70 was not prepared
0:01:05.864603536 31877 0x922d50 INFO rtspsession rtsp-session.c:134:gst_rtsp_session_init: init session 0x69917a38
0:01:05.864676202 31877 0x922d50 INFO rtspclient rtsp-client.c:641:client_watch_session: watching session 0x69917a38
0:01:05.864762868 31877 0x922d50 INFO rtspclient rtsp-client.c:1801:parse_transport: found valid transport RTP/AVP;unicast;client_port=43528-43529
0:01:05.864826201 31877 0x922d50 INFO rtspsession rtsp-session.c:249:gst_rtsp_session_manage_media: manage new media 0x933c70 in session 0x69903de0
0:01:05.873223453 31877 0x922d50 INFO rtspclient rtsp-client.c:3456:handle_request: client 0x9401c0: received a request PLAY rtsp://10.1.63.236:8554/colour/ 1.0
0:01:05.874012445 31877 0x922d50 WARN rtspstream rtsp-stream.c:2793:create_sender_part:<GstRTSPStream@0x6a3191c8> no sockets assigned for UDP
0:01:05.874216443 31877 0x922d50 ERROR rtspclient rtsp-client.c:1735:handle_play_request: client 0x9401c0: failed to configure the pipeline
0:01:05.906937128 31877 0x922d50 INFO rtspclient rtsp-client.c:4309:closed: client 0x9401c0: connection closed
0:01:05.907203792 31877 0x922d50 INFO rtspclient rtsp-client.c:4541:client_watch_notify: client 0x9401c0: watch destroyed
0:01:05.907409123 31877 0x922d50 INFO rtspmedia rtsp-media.c:4068:gst_rtsp_media_set_state: going to state NULL media 0x933c70, target state PAUSED
0:01:05.907583121 31877 0x922d50 INFO rtspmedia rtsp-media.c:4119:gst_rtsp_media_set_state: state 1 active 0 media 0x933c70 do_state 1
0:01:05.907756120 31877 0x922d50 INFO rtspmedia rtsp-media.c:3423:gst_rtsp_media_unprepare: unprepare media 0x933c70
0:01:05.907918118 31877 0x922d50 INFO rtspmedia rtsp-media.c:2627:set_target_state: set target state to NULL for media 0x933c70
0:01:05.908107450 31877 0x922d50 INFO rtspmedia rtsp-media.c:2614:set_state: set state to NULL for media 0x933c70
0:01:05.909387771 31877 0x922d50 INFO rtspstream rtsp-stream.c:1875:caps_notify: stream 0x6a3191c8 received caps (nil), (NULL)
0:01:05.916554035 31877 0x922d50 INFO rtspmedia rtsp-media.c:3323:finish_unprepare: Removing elements of stream 0 from pipeline
0:01:05.916838032 31877 0x922d50 INFO rtspstream rtsp-stream.c:3264:gst_rtsp_stream_leave_bin: stream 0x6a3191c8 leaving bin
DEBUG: Caught Unprepared signal!
** (macq-gst-rtsp-server:31877): CRITICAL **: gst_rtsp_media_prepare: assertion 'GST_IS_RTSP_MEDIA (media)' failed
0:01:05.918638348 31877 0x922d50 INFO rtspsessionmedia rtsp-session-media.c:105:gst_rtsp_session_media_finalize: free session media 0x69903de0
0:01:05.918759014 31877 0x68d024f0 INFO rtspthreadpool rtsp-thread-pool.c:332:do_loop: exit mainloop of thread 0x68d04c40
0:01:05.918834680 31877 0x922d50 WARN rtspmedia rtsp-media.c:4141:gst_rtsp_media_set_state: media 0x933c70 was not prepared
0:01:05.919112677 31877 0x922d50 INFO rtspmedia rtsp-media.c:3444:gst_rtsp_media_unprepare: media 0x933c70 was already unprepared
0:01:05.919296342 31877 0x922d50 INFO rtspclient rtsp-client.c:665:client_unwatch_session: client 0x9401c0: unwatch session 0x69917a38
0:01:05.919509673 31877 0x922d50 INFO rtspclient rtsp-client.c:735:gst_rtsp_client_finalize: finalize client 0x9401c0
0:01:05.919839003 31877 0x922d50 INFO rtspthreadpool rtsp-thread-pool.c:332:do_loop: exit mainloop of thread 0x8eec58
[mv4l2src] 1 frames lost starting at index 525. Real fps=8.00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment