Skip to content

Video Streaming Issue #21

@frankSDeviation

Description

@frankSDeviation

Hello, I have stumbled upon your code and I would like to say that it is awesome! I wish I had found this a year ago! I have been trying to get it up and running and have been able to get it to at least display a black image. My goal is to be able to stream two Basler USB cameras (mono) on a multicast network with the lowest latency possible. I have downloaded zingmars pylon src program as well and I have been able to stream one camera locally. using this gstreamer pipeline:

gst-launch-1.0 pylonsrc imageformat=mono8 width=1600 height=1200 ! videoconvert ! xvimagesink

His program works great but is limited to what can be done with it and I love how yours is written in C++ and can be modified to build a very good application.

I have been having problems trying to get your code to just show a live image. I have tried using the "-window" option but all I get is a black screen. This happens with any other option as well. I then noticed that Harendracmaps had a similar issue and they were able to get theirs to work by commenting "camera.ResetCamera()" out of the code. I have tried this as well but I was not able to get mine to work. I then ran a debug command and got this message:

lter_transform: warning: invalid video buffer received
0:00:05.607316439 23261 0x55ba0caa3000 ERROR default video-frame.c:175:gst_video_frame_map_id: invalid buffer size 1920000 < 5760000
0:00:05.607345874 23261 0x55ba0caa3000 WARN videofilter gstvideofilter.c:293:gst_video_filter_transform: warning: invalid video buffer received
0:00:05.623998313 23261 0x55ba0caa3000 ERROR default video-frame.c:175:gst_video_frame_map_id: invalid buffer size 1920000 < 5760000
0:00:05.624026576 23261 0x55ba0caa3000 WARN videofilter gstvideofilter.c:293:gst_video_filter_transform: warning: invalid video buffer received
0:00:05.640742131 23261 0x55ba0caa3000 ERROR default video-frame.c:175:gst_video_frame_map_id: invalid buffer size 1920000 < 5760000
0:00:05.640772160 23261 0x55ba0caa3000 WARN videofilter gstvideofilter.c:293:gst_video_filter_transform: warning: invalid video buffer received
0:00:05.657838839 23261 0x55ba0caa3000 ERROR default video-frame.c:175:gst_video_frame_map_id: invalid buffer size 1920000 < 5760000
0:00:05.657894996 23261 0x55ba0caa3000 WARN videofilter gstvideofilter.c:293:gst_video_filter_transform: warning: invalid video buffer received
0:00:05.674299667 23261 0x55ba0caa3000 ERROR default video-frame.c:175:gst_video_frame_map_id: invalid buffer size 1920000 < 5760000
0:00:05.674357139 23261 0x55ba0caa3000 WARN videofilter gstvideofilter.c:293:gst_video_filter_transform: warning: invalid video buffer received
0:00:05.691215050 23261 0x55ba0caa3000 ERROR default video-frame.c:175:gst_video_frame_map_id: invalid buffer size 1920000 < 5760000
0:00:05.691271613 23261 0x55ba0caa3000 WARN videofilter gstvideofilter.c:293:gst_video_filter_transform: warning: invalid video buffer received
0:00:05.707745445 23261 0x55ba0caa3000 ERROR default video-frame.c:175:gst_video_frame_map_id: invalid buffer size 1920000 < 5760000
0:00:05.707800085 23261 0x55ba0caa3000 WARN videofilter gstvideofilter.c:293:gst_video_filter_transform: warning: invalid video buffer received
^C
Sending EOS event to pipeline...
End of stream
Stopping pipeline...
Sending EOS event...
Stopping Camera image acquistion and Pylon image grabbing...

Press Enter to exit.

This continues for what appears to be every frame of the video. All I get is a black image. I also tried using the "xvimagesink" in my parse. I am not sure what I am doing wrong and any help is greatly appreciated.

Cheers,
frank

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions