Hi all,

Has anyone who is using the CA code to capture from an rtsp stream
(e.g. an IP camera) seen problems shutting down the capture? It seems
the rtsp stream doesn't close and the CA stays in shutting_down state:

2012-09-03 10:51:41 DEBUG (CaptureAgentImpl:464) - stopCapture()
called.
2012-09-03 10:51:41 INFO (ProducerBin:121) - Sending EOS to stop
alsasrc0
2012-09-03 10:51:41 INFO (EpiphanVGA2USBV4LSubDeviceBin:259) - Sending
EOS to stop /dev/video0_v4lsrc
2012-09-03 10:51:41 INFO (EpiphanVGA2USBV4LSubTestSrcBin:188) - Sending
EOS to stop videotestsrc0
2012-09-03 10:51:41 INFO (ProducerBin:121) - Sending EOS to stop
rtspsrc0
2012-09-03 10:51:46 DEBUG (AgentStateJob:103) - #50196 - Sending agent
menzies-10's state: shutting_down
2012-09-03 10:51:46 DEBUG (AgentStateJob:193) - #50196 - State push
org.opencastproject.capture.impl.jobs.AgentStateJob@da3199 to
http://media.uct.ac.za/capture-admin/agents/menzies-10 was
successful. 

then much later the camera is rebooted and the stream closes:

2012-09-03 14:06:49 WARN (GStreamerPipeline$2:144) - rtspsrc0: Could
not read from resource.
2012-09-03 14:06:49 WARN (GStreamerPipeline$2:144) - rtspsrc0: Internal
data flow error.
2012-09-03 14:06:50 DEBUG (GStreamerPipeline:181) - The pipeline took
too long to shut down, now sending State.NULL.
2012-09-03 14:06:50 DEBUG (GStreamerPipeline:181) - The pipeline took
too long to shut down, now sending State.NULL.
2012-09-03 14:06:50 WARN (GStreamerPipeline$2:144) - rtspsrc0: Could
not write to resource.
2012-09-03 14:06:50 WARN (GStreamerPipeline$2:144) - rtspsrc0: Could
not write to resource.
2012-09-03 14:06:50 DEBUG (EpiphanVGA2USBV4LProducer$2:366) - Pipeline
state change. PLAYING,PAUSED,VOID_PENDING
2012-09-03 14:06:50 DEBUG (EpiphanVGA2USBV4LProducer$2:366) - Pipeline
state change. PLAYING,PAUSED,VOID_PENDING
2012-09-03 14:06:50 DEBUG (EpiphanVGA2USBV4LProducer$2:366) - Pipeline
state change. PLAYING,PAUSED,VOID_PENDING
2012-09-03 14:06:50 DEBUG (EpiphanVGA2USBV4LProducer$2:366) - Pipeline
state change. PLAYING,PAUSED,VOID_PENDING
2012-09-03 14:06:50 DEBUG (EpiphanVGA2USBV4LProducer$2:366) - Pipeline
state change. PAUSED,READY,VOID_PENDING
2012-09-03 14:06:50 DEBUG (EpiphanVGA2USBV4LProducer$2:366) - Pipeline
state change. PAUSED,READY,VOID_PENDING
2012-09-03 14:06:50 DEBUG (EpiphanVGA2USBV4LProducer$2:366) - Pipeline
state change. PAUSED,READY,VOID_PENDING
2012-09-03 14:06:50 DEBUG (EpiphanVGA2USBV4LProducer$2:366) - Pipeline
state change. PAUSED,READY,VOID_PENDING
2012-09-03 14:06:50 DEBUG (EpiphanVGA2USBV4LProducer$2:366) - Pipeline
state change. READY,NULL,VOID_PENDING
2012-09-03 14:06:50 DEBUG (EpiphanVGA2USBV4LProducer$2:366) - Pipeline
state change. READY,NULL,VOID_PENDING
2012-09-03 14:06:50 DEBUG (EpiphanVGA2USBV4LProducer$2:366) - Pipeline
state change. READY,NULL,VOID_PENDING
2012-09-03 14:06:50 DEBUG (EpiphanVGA2USBV4LProducer$2:366) - Pipeline
state change. READY,NULL,VOID_PENDING
2012-09-03 14:06:50 DEBUG (CaptureAgentImpl:927) - Serializing
recording 1860824 to
/opt/matterhorn-captures/cache/captures/1860824/1860824.recording.
2012-09-03 14:06:50 ERROR (CaptureAgentImpl:340) - Unable to start
pipeline after 5 seconds. Aborting!
2012-09-03 14:06:50 ERROR (StartCaptureJob:108) - Capture agent
returned null when trying to start capture!
2012-09-03 14:06:50 INFO (CaptureAgentImpl:498) - Recording "1860824"
succesfully stopped 

It seems the code should be more robust to force a shutdown even if it
doesn't get a correct response from the remote device?

Regards
Stephen


Stephen Marquard, Learning Technologies Co-ordinator
Centre for Educational Technology, University of Cape Town
http://www.cet.uct.ac.za
Email/IM/XMPP: [email protected] 
Phone: +27-21-650-5037 Cell: +27-83-500-5290 





###

UNIVERSITY OF CAPE TOWN 

This e-mail is subject to the UCT ICT policies and e-mail disclaimer
published on our website at
http://www.uct.ac.za/about/policies/emaildisclaimer/ or obtainable from
+27 21 650 9111. This e-mail is intended only for the person(s) to whom
it is addressed. If the e-mail has reached you in error, please notify
the author. If you are not the intended recipient of the e-mail you may
not use, disclose, copy, redirect or print the content. If this e-mail
is not related to the business of UCT it is sent by the sender in the
sender's individual capacity.

###
 

_______________________________________________
Matterhorn mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn


To unsubscribe please email
[email protected]
_______________________________________________

Reply via email to