Go to advanced search

by Lich
Tue Oct 08, 2019 8:02 pm
Forum: General discussion
Topic: When will the Full KMS driver for Raspberry Pi 4 be available?
Replies: 5
Views: 365

Re: When will the Full KMS driver for Raspberry Pi 4 be available?

jamesh, 6by9, Thanks for the quick response! Yes, according to my tests on Raspberry 3, OpenCV's display performance is approximately the same with Full KMS and Fake KMS. Displaying the same HD video using OpenCV imshow on Raspberry 3 loads the CPU by 32-38%, on Raspberry 4 - 35-50% (using the same ...
by Lich
Mon Oct 07, 2019 10:11 pm
Forum: General discussion
Topic: When will the Full KMS driver for Raspberry Pi 4 be available?
Replies: 5
Views: 365

When will the Full KMS driver for Raspberry Pi 4 be available?

As far as I understand, drivers for GPU Videocore VI are not finalized yet. I ran into a problem that video display in OpenCV works worse than on Raspberry 3.

Can we expect the Full KMS driver to be released in the near future?
by Lich
Sun Oct 06, 2019 6:12 pm
Forum: Graphics programming
Topic: OpenGL oputput does not work well in OpenCV on Raspberry 4
Replies: 0
Views: 170

OpenGL oputput does not work well in OpenCV on Raspberry 4

My program processes and displays video using OpenCV. OpenCV 4.1.1 compiled with OpenGL and Qt. OS - Raspbian Buster, all updates are installed. In the test version I start displaying H.264 HD video (1280x720) from the file without processing. vs = cv2.VideoCapture(src1) while True: ret, frame = vs....
by Lich
Mon Sep 16, 2019 6:47 pm
Forum: Graphics programming
Topic: Problem when playing RTSP stream with Gstreamer (RPI 4 Buster)
Replies: 1
Views: 286

Re: Problem when playing RTSP stream with Gstreamer (RPI 4 Buster)

The problem was in my local network. RTSP stream from any device is periodically interrupted for a split second. When using VLC player it is not visible, because it instantly restarts the broadcast. In this case Gstreamer interrupts stream and generates an error message. I've connected my IP camera ...
by Lich
Sun Sep 15, 2019 6:04 pm
Forum: Graphics programming
Topic: Problem when playing RTSP stream with Gstreamer (RPI 4 Buster)
Replies: 1
Views: 286

Problem when playing RTSP stream with Gstreamer (RPI 4 Buster)

Hello! Hardware & Software: Raspberry Pi 4, IP camera, Raspbian Buster, Gstreamer 1.14.1 (from repository). Raspberry and camera are on the local network. I'm trying to run the RTSP video stream with the following pipeline: gst-launch-1.0 rtspsrc location='rtsp://web_camera_ip' ! rtph264depay ! h264...
by Lich
Tue Jul 23, 2019 9:43 pm
Forum: OpenGLES
Topic: Displaying video in Raspbian Buster Gstreamer via GLES (not OpenGL).
Replies: 2
Views: 1723

Displaying video in Raspbian Buster Gstreamer via GLES (not OpenGL).

Hello to all! Raspbian Stretch includes Gstreamer 1.10.4. I have compiled the gstreamer1.0-plugins-bad module with the flags " ...-disable-x11 --disable-glx --disable-opengl --disable-wayland --enable-gles2 --enable-egl --enable-dispmanx... " to display video via GLES (see this thread) . Displaying ...
by Lich
Sun Jul 21, 2019 10:52 pm
Forum: OpenMAX
Topic: Convert color format using GPU in Gstreamer (alternative to videoconvert).
Replies: 8
Views: 2812

Re: Convert color format using GPU in Gstreamer (alternative to videoconvert).

I started testing OpenCV with Gstreamer. I use v4l2 methods to decode video stream and convert color format. Video is displayed using the OpenGL renderer. Test video streaming - H264, 1280x720, 20 fps Transferring a frame from Gstreamer to OpenCV (display disabled): pipline_r = 'rtspsrc location=rts...
by Lich
Thu Jul 18, 2019 10:08 pm
Forum: OpenMAX
Topic: Convert color format using GPU in Gstreamer (alternative to videoconvert).
Replies: 8
Views: 2812

Re: Convert color format using GPU in Gstreamer (alternative to videoconvert).

I enabled v4l2video12convert with "bcm2835-codec.disable_bayer=1", thank you very much! The first experiment: gst-launch-1.0 --gst-debug-level=3 filesrc location=/path/test.mp4 ! qtdemux ! h264parse ! omxh264dec ! videoconvert ! video/x-raw, format=BGR ! fakesink CPU load is 25% gst-launch-1.0 --gst...
by Lich
Wed Jul 17, 2019 10:23 pm
Forum: OpenMAX
Topic: Convert color format using GPU in Gstreamer (alternative to videoconvert).
Replies: 8
Views: 2812

Re: Convert color format using GPU in Gstreamer (alternative to videoconvert).

I installed Debian Buster. Unfortunately, gst-plugins-goo in version 1.14 does not contain v4l2convert. The following v24l components are available (list is obtained by gst-inspect-1.0): video4linux2: v4l2h264enc: V4L2 H.264 Encoder video4linux2: v4l2h264dec: V4L2 H264 Decoder video4linux2: v4l2h263...
by Lich
Tue Jul 16, 2019 9:43 pm
Forum: OpenMAX
Topic: Convert color format using GPU in Gstreamer (alternative to videoconvert).
Replies: 8
Views: 2812

Re: Convert color format using GPU in Gstreamer (alternative to videoconvert).

6by9, thank you for the answer! I plan to switch to Raspbian Buster and Raspberry Pi 4 (at Raspbian Stretch, I updated the kernel to 4.19). I hope that in Raspbian Buster with Gstreamer 1.14 I will be able to configure the gst-plugin-bad to output video through the GLES layer. In Raspbian Stretch I ...
by Lich
Mon Jul 15, 2019 10:19 pm
Forum: OpenMAX
Topic: Convert color format using GPU in Gstreamer (alternative to videoconvert).
Replies: 8
Views: 2812

Convert color format using GPU in Gstreamer (alternative to videoconvert).

Hello! I use OpenCV with Gstreamer. Color format conversion is required to transfer video frames from Gstreamer to OpenCV and back. The Gstreamer " omxh264dec " decoder has the RGBA output color format, " glimagesink " has the RGBA input color format. OpenCV uses the RGB/BGR/GRAY formats (without al...
by Lich
Mon Jul 08, 2019 9:57 pm
Forum: Graphics programming
Topic: How to optimize frame grabbing from video stream in OpenCV?
Replies: 1
Views: 1496

Re: How to optimize frame grabbing from video stream in OpenCV?

I think I know what the problem is, but I don't know how to solve it. 1. Refinement about CPU usage when working with VideoCapture and VideoCapture+Gstreamer. VideoCapture(src)+VideoWriter(gstreamer_piplene_out) - 50-60%, VideoCapture(gstreamer_pipline_in) +VideoWriter(gstreamer_piplene_out) - 40-50...
by Lich
Sun Jul 07, 2019 6:59 pm
Forum: Graphics programming
Topic: How to optimize frame grabbing from video stream in OpenCV?
Replies: 1
Views: 1496

How to optimize frame grabbing from video stream in OpenCV?

Hello everyone, I ran into a problem problem of low frame capture efficiency in OpenCV. 1. Hardware & Software. Raspberry Pi 3 (1,2 GHz quad-core ARM) with HDMI Display IP camera: LAN connected, RTSP, H264 codec, 1280x720 resolution, 20 fps, 1 GOP, 2500 kB/s VBR bitrate (parameters can be changed). ...
by Lich
Sun May 26, 2019 7:55 pm
Forum: Advanced users
Topic: GStreamer and omx encoding from live source.. a naive problem
Replies: 71
Views: 15882

Re: GStreamer and omx encoding from live source.. a naive problem

Hardware acceleration of video is now working on my Raspberry Pi 3 with Raspbian Stretch! gkreidl, thank you very much! I compiled the Gstreamer Bad plugin (gst-plugins-bad1.0-1.10.4 from repository) with the flags you wrote above and installed the Gstreamer OMX plugin that you compiled (gstreamer-1...
by Lich
Wed Apr 17, 2019 9:48 pm
Forum: Advanced users
Topic: GStreamer and omx encoding from live source.. a naive problem
Replies: 71
Views: 15882

Re: GStreamer and omx encoding from live source.. a naive problem

gkreidl, thank you very much! I will try to compile gst-plugins-bad and gst-omx the next few days.I will write about the result. If hardware acceleration works, I will test working with HD video, including streaming video from the IP camera. Previously I have tried to install your package gstreamer-...
by Lich
Tue Apr 16, 2019 9:53 pm
Forum: Advanced users
Topic: GStreamer and omx encoding from live source.. a naive problem
Replies: 71
Views: 15882

Re: GStreamer and omx encoding from live source.. a naive problem

Some updates. The following error occurs when I trying to compile the module according to the instructions from my first post: make [5]: enter the directory "/home/pi/gstreamer/gst-plugins-bad-1.10.4/gst-libs/gst/gl/egl"    CC libgstgl_egl_la-gstglcontext_egl.lo    CC libgstgl_egl_la-gstgldisplay_eg...
by Lich
Sat Apr 13, 2019 6:42 pm
Forum: Advanced users
Topic: GStreamer and omx encoding from live source.. a naive problem
Replies: 71
Views: 15882

Re: GStreamer and omx encoding from live source.. a naive problem

Thank you for reply, gkreidl! At this stage of my project, I only need to display HD video (h264, 1280x720 or 1920x1080) on the screen. Now, when displaying a HD video using a gtreamer, the CPU usage is 80-90%. For example, when playing the same file with the OMX player, CPU usage is 2%. I cannot us...
by Lich
Thu Apr 11, 2019 10:05 pm
Forum: Advanced users
Topic: GStreamer and omx encoding from live source.. a naive problem
Replies: 71
Views: 15882

Re: GStreamer and omx encoding from live source.. a naive problem

Hello to all. As I understand it, the gst-omx module from the Raspbian Stretch repository does not work (accordingly, the hardware acceleration of the video does not work). 1. Does gst-omx work in Raspbian Stretch if I compile the packages manually? Which version of gstreamer should I use for it - 1...
by Lich
Wed Apr 11, 2018 9:09 pm
Forum: Русский
Topic: Расширение количества UART/TTL портов
Replies: 1
Views: 1291

Расширение количества UART/TTL портов

Здравствуйте! Мне необходимо управлять 3-мя или 4-мя устройствами по интерфейсу UART/TTL. К сожалению, в GPIO есть только один интерфейс UART/TTL - GPIO14 (TXD0) + GPIO15 (RXD0) + Ground. Каким образом можно реализовать дополнительные UART порты? Сейчас идеи следующие: 1. Подключать периферийные уст...

Go to advanced search