gscam icon indicating copy to clipboard operation
gscam copied to clipboard

Use gstreamer1.0 instead of 0.10

Open devbharat opened this issue 9 years ago • 6 comments

devbharat avatar Dec 14 '15 11:12 devbharat

It hasn't been released yet, but check out the gstreamer-1.0-support branch.

jbohren avatar Dec 14 '15 13:12 jbohren

Sorry, I should have seen that before. Can you tell me if it is mature or if I should expect issues since it is not released yet ?

devbharat avatar Dec 14 '15 16:12 devbharat

@devbharat I would call it "experimental" but it works.

jbohren avatar Dec 14 '15 18:12 jbohren

Could you tell me why the package.xml still shows dependencies only on

<build_depend>libgstreamer0.10-dev</build_depend>
<build_depend>libgstreamer-plugins-base0.10-dev</build_depend>

devbharat avatar Dec 15 '15 06:12 devbharat

I am exiting with an error "Could not get gstreamer sample"

This is the plain gstreamer script that does work on my system:

gst-launch-1.0 \
        v4l2src device=/dev/video2 ! \
        i2c file=$REG_SET_FILE show=0 dev=/dev/v4l-subdev5 ! \
        video/x-raw,format=GRAY8,depth=8,width=640,height=480 ! \
        videoconvert ! \
        fbdevsink sync=false

even changing fbdevsink to appsink seems to work (although I do not know how to view the stream, but it does not return with an error). I think the gscam_config is not properly set.

I set it to:

<param if="$(arg GST10)" name="gscam_config" value="v4l2src device=/dev/video2 ! i2c file=/home/root/gstreamer_examples/register-settings-mt9v02x.txt show=0 dev=/dev/v4l-subdev5 ! video/x-raw,format=GRAY8,depth=8,width=640,height=480 ! ffmpegcolorspace"/>

Nevermind, I figured it out, the correct gscam_config i needed to use was

<param if="$(arg GST10)" name="gscam_config" value="v4l2src device=/dev/video2 ! i2c file=/home/root/gstreamer_examples/register-settings-mt9v02x.txt show=0 dev=/dev/v4l-subdev5 ! video/x-raw,format=GRAY8,depth=8,width=640,height=480 ! videoconvert"/>

devbharat avatar Dec 15 '15 08:12 devbharat

Could version 1.0.1 be released for kinetic too?

(Maybe it is not possible cause of some API breakage that I'm unaware).

awesomebytes avatar Jan 15 '19 15:01 awesomebytes