M
M
Michael Galyuk2013-06-19 18:44:25
linux
Michael Galyuk, 2013-06-19 18:44:25

How to capture video stream from camera from multiple programs?

How to allow multiple programs to use the camera at the same time in Linux? Or is it basically impossible?
I'm using Gstreamer, a V4L component. The first program starts, and the second one fails with the error " system error: Device or resource busy ": Looked at the parameters of the v4l2src

$ gst-launch v4l2src ! xvimagesink Установка конвейера в состояние PAUSED... ОШИБКА: Конвейер не хочет становиться на паузу. ПРЕДУПРЕЖДЕНИЕ: от элемента /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Устройство видео-захвата не приняло новый параметр кадровой частоты. Дополнительная отладочная информация: v4l2src_calls.c(262): gst_v4l2src_set_capture (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: system error: Устройство или ресурс занято ОШИБКА: из элемента /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not get buffers from device '/dev/video0'. Дополнительная отладочная информация: gstv4l2bufferpool.c(406): gst_v4l2_buffer_pool_new (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: error requesting 2 buffers: Устройство или ресурс занято Установка конвейера в состояние NULL... Освобождение конвейера...

component , but did not understand how to overcome the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
stavinsky, 2013-07-02
@stavinsky

Why not convert this video to some network streaming format like RTMP and shoot for as long as you want and with what you want?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question