ros-drivers / gscam

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

ERROR:/home/dg/simulation_ws/src/gscam/src/gscam.cpp:167:bool gscam::GSCam::init_stream(): assertion failed: (outpad) #88

Open aristow1 opened 1 year ago

aristow1 commented 1 year ago

Hi

Im having issues starting my camera with GStreamer with this package, the camera works fine when i type this in the terminal without using ros : gst-launch-1.0 udpsrc port=5004 ! application/x-rtp, payload=96 ! rtph264depay ! avdec_h264 ! autovideosink

i reconfigured the v4l.launch file and looks like this :

<launch>
  <!-- This launchfile should bring up a node that broadcasts a ros image
       transport on /webcam/image_raw -->

  <arg name="DEVICE" default="arkcam"/>
  <!-- The GStreamer framerate needs to be an integral fraction -->
  <arg name="FPS" default="30/1"/>
  <arg name="PUBLISH_FRAME" default="false"/>
  <arg name="GST10" default="True"/>

  <node ns="v4l" name="gscam_driver_v4l" pkg="gscam" type="gscam" output="screen">
    <param name="camera_name" value="arkcam"/>
    <param name="camera_info_url" value="package://gscam/examples/uncalibrated_parameters.ini"/>
    <param unless="$(arg GST10)" name="gscam_config" value="udpsrc port=5008 ! application/x-rtp, payload=96 ! rtph264depay ! avdec_h264 ! autovideosink"/>
    <param if="$(arg GST10)" name="gscam_config" value="udpsrc port=5008 ! application/x-rtp, payload=96 ! rtph264depay ! avdec_h264 ! autovideosink"/>
    <param name="frame_id" value="/v4l_frame"/>
    <param name="sync_sink" value="true"/>
  </node>

</launch>

however when i launch this file i get the following error :

ERROR:/home/dg/simulation_ws/src/gscam/src/gscam.cpp:167:bool gscam::GSCam::init_stream(): assertion failed: (outpad)

any help would be appreciated. thank you