ros-drivers / gscam

ROS Camera driver for GStreamer-based video streams.
136 stars 172 forks source link

Problem in ffmpegcsp0 #53

Open Crisliu7 opened 5 years ago

Crisliu7 commented 5 years ago

I worked with DMM 42BUC03-ML and tried to launch the camera in ROS. Every time when I launch it, it's fine, when I put some image or objects in front of the camera, the exception will be thrown. It gives me:

(gscam:11048): WARNING : ffmpegcsp0: size 1212416 is not a multiple of unit size 1228800.

Here is my launch file:


<launch>

  <arg name="cam_name" value="creative_cam" />

  <env name="GSCAM_CONFIG" value="v4l2src device=/dev/video3 ! video/x-raw-gray,framerate=30/1,width=1280,height=960 ! ffmpegcolorspace " />
  <node pkg="gscam" type="gscam" name="$(arg cam_name)">
    <param name="camera_name" value="$(arg cam_name)" />
    <!-- <param name="camera_info_url" value="package://localcam/calibrations/${NAME}.yaml" /> -->
    <remap from="camera/image_raw" to="/sensors/scanner/camera/image_raw" />
  </node> 

</launch>```