View: 7356|Reply: 4

libv4l2 error setting pixformat - gc2035 OPI+

[Copy link]

1

threads

4

posts

29

credits

Novice

Rank: 1

credits
29
Published in 2016-8-30 03:24:54 | Show all floors |Read mode


Hi everybody,

I have an OPI+ and gc2035 camera module, i try camera with "motion" according to this tutorial and getting one picture on localhost:8081, after this page display "problem loading page".
however, This is not the main issue.  i try to get picture with gstreamer and i see following error:

libv4l2: error setting pixformat: operation not permitted
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src: Device '/dev/video0' cannot capture at 1600x1200
Call to S_FMT failed for YU12 @ 1600x1200: Operation not permitted.

My gstreamer pipeline is:

gst-launch v4l2src always-copy=false ! 'video/x-raw-yuv, format=(fourcc)I420, width=1600, height=1200' ! ffmpegcolorspace ! ximagesink

I try other resolution but get the same error.

vlc player display correct stream with following command:

cvlc v4l2:///dev/video0

if problem is v4l2 so why vlc display camera stream?

finally sorry for english.

thanks in advance

best regards

1

threads

4

posts

29

credits

Novice

Rank: 1

credits
29
 Author| Published in 2016-9-2 00:14:24 | Show all floors
Hi

Does anyone have this problem?

I will get gc2035 data in opencv or gstreamer but there are following error :

libv4l2: error setting pixformat: operation not permitted

1

threads

4

posts

29

credits

Novice

Rank: 1

credits
29
 Author| Published in 2016-9-8 00:04:43 | Show all floors
Hi,

fix this problem with vidcopy

for more information vidcopy

62

threads

653

posts

5498

credits

Administrator

Rank: 9Rank: 9Rank: 9

credits
5498
Published in 2016-9-9 17:04:55 | Show all floors
mdgr replied at 2016-9-8 00:04
Hi,

fix this problem with vidcopy

Hi, I am so sorry cannot help you.
Since you have solved the problem, right?

1

threads

4

posts

29

credits

Novice

Rank: 1

credits
29
 Author| Published in 2016-9-12 14:09:59 from mobile | Show all floors
Hi, I have solved this problem, thanks for reply.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list