<div dir="ltr">I can encode the video stream from a foscam ip camera using this script on a Raspberry Pi:<div><br></div><div><div>/usr/bin/gst-launch-1.0 souphttpsrc location="http://x.x.x.x:y/videostream.asf\?user=xxxxx\&pwd=xxxxx" ! decodebin ! videoconvert ! omxh264enc ! "video/x-h264,profile=high" ! h264parse ! matroskamux ! filesink location=/home/pi/camera/video.mkv 2> /dev/null 1> /dev/null</div>
</div><div><br></div><div>I would like to limit the recording time to 10 seconds, but adding timeout=10 has no effect.</div><div><br></div><div>Am I missing anything? Is there any other way of stopping encoding after a defined interval?</div>
</div>