{"id":14977887,"url":"https://github.com/qengineering/gstreamer-1.18.4-rpi_32-bits","last_synced_at":"2025-10-28T07:30:30.688Z","repository":{"id":112946274,"uuid":"373142142","full_name":"Qengineering/GStreamer-1.18.4-RPi_32-bits","owner":"Qengineering","description":"GStreamer 1.18.4 with OpenCV example on a Raspberry Pi 32-bits","archived":false,"fork":false,"pushed_at":"2021-12-07T11:45:08.000Z","size":20,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-01T12:44:04.332Z","etag":null,"topics":["cpp","gstreamer","gstreamer-pipeline","opencv","raspberry-pi","raspberry-pi-camera","raspicam","rpicamsrc"],"latest_commit_sha":null,"homepage":"https://qengineering.eu/install-gstreamer-1.18-on-raspberry-pi-4.html","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Qengineering.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-02T11:24:44.000Z","updated_at":"2024-10-14T11:16:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"7de07a16-5613-4a86-953c-569807498b4e","html_url":"https://github.com/Qengineering/GStreamer-1.18.4-RPi_32-bits","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"e4916f76081993b67341cf728233c21b5cc5f981"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qengineering%2FGStreamer-1.18.4-RPi_32-bits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qengineering%2FGStreamer-1.18.4-RPi_32-bits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qengineering%2FGStreamer-1.18.4-RPi_32-bits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qengineering%2FGStreamer-1.18.4-RPi_32-bits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Qengineering","download_url":"https://codeload.github.com/Qengineering/GStreamer-1.18.4-RPi_32-bits/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238608267,"owners_count":19500349,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","gstreamer","gstreamer-pipeline","opencv","raspberry-pi","raspberry-pi-camera","raspicam","rpicamsrc"],"created_at":"2024-09-24T13:56:29.668Z","updated_at":"2025-10-28T07:30:25.405Z","avatar_url":"https://github.com/Qengineering.png","language":"C++","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=CPZTM5BB3FCYL"],"categories":[],"sub_categories":[],"readme":"# GStreamer-1.18.4-RPi_32-bits\n![output image]( https://qengineering.eu/images/GStreamer_32_30FPS.webp )\u003cbr/\u003e\n## GStreamer + OpenCV on a Raspberry Pi 4 32-bits\n[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)\u003cbr/\u003e\u003cbr/\u003e\nAn working example of the GStreame 1.18.4 with the new rpicamsrc source.\u003cbr/\u003e\nPlease note, it only works on a Raspberry Pi with an 32-bits OS.\u003cbr/\u003e\nIf you have an 64-bits OS see https://github.com/Qengineering/GStreamer-1.18.4-RPi_64-bits \u003cbr/\u003e\n\n------------\n\n## Dependencies.\u003cbr/\u003e\nTo run the application, you have to:\n- A Raspberry Pi 4 with a **32-bits** operating system. \n- GStreamer 1.18.4 installed. [Install GStreamer](https://qengineering.eu/install-gstreamer-1.18-on-raspberry-pi-4.html) \u003cbr/\u003e\n- OpenCV bit installed. [Install OpenCV 4.5](https://qengineering.eu/install-opencv-4.5-on-raspberry-pi-4.html) \u003cbr/\u003e\n- Code::Blocks installed. (```$ sudo apt-get install codeblocks```)\n- A working Raspicam\n\n------------\n\n## Installing the app.\nTo extract and run the app in Code::Blocks \u003cbr/\u003e\n$ mkdir *MyDir* \u003cbr/\u003e\n$ cd *MyDir* \u003cbr/\u003e\n$ wget https://github.com/Qengineering/GStreamer-1.18.4-RPi_32-bits/archive/refs/heads/main.zip \u003cbr/\u003e\n$ unzip -j master.zip \u003cbr/\u003e\nRemove master.zip, LICENSE and README.md as they are no longer needed. \u003cbr/\u003e \n$ rm master.zip \u003cbr/\u003e\n$ rm LICENSE \u003cbr/\u003e\n$ rm README.md \u003cbr/\u003e \u003cbr/\u003e\nYour *MyDir* folder must now look like this: \u003cbr/\u003e \nGStreamerTest32.cpb \u003cbr/\u003e\nmain.cpp \u003cbr/\u003e\n\n------------\n\n## Running the app.\nTo run the application load the project file GStreamerTest32.cbp in Code::Blocks.\u003cbr/\u003e \nNext, follow the instructions at [Hands-On](https://qengineering.eu/deep-learning-examples-on-raspberry-32-64-os.html#HandsOn).\u003cbr/\u003e\n\n------------\n\n## Frame rate.\nThe Raspicam supports many sizes and frame rates, as you can see [here](https://www.raspberrypi.org/documentation/raspbian/applications/camera.md).\u003cbr/\u003e\nYou can switch between the different options by altering the parameters in the pipeline.\u003cbr/\u003e\nAs long it's a valid combination, it will work. For instance:\u003cbr/\u003e\n```\n    //pipeline parameters\n    int capture_width = 640 ;\n    int capture_height = 480 ;\n    int display_width = 640 ;\n    int display_height = 480 ;\n    int framerate = 90 ;\n```\n\n\n![output image]( https://qengineering.eu/images/GStreamer_32_90FPS.webp )\u003cbr/\u003e\n\nSince the developer of the rpicamsrc, Jan Schmidt aka [thaytan](https://github.com/thaytan/gst-rpicamsrc), took the raspivid parameters as best they could, many can now be used in the pipeline. An example;\u003cbr/\u003e\n```\n            \"rpicamsrc exposure-mode=off shutter-speed=50 preview=false ! \"\n            \"video/x-raw, width=(int)\" + std::to_string(capture_width) + \", height=(int)\" + std::to_string(capture_height) + \", framerate=(fraction)\" + std::to_string(framerate) +\"/1 !\"\n            \" videoscale ! video/x-raw,\"\n            \" width=(int)\" + std::to_string(display_width) + \",\"\n            \" height=(int)\" + std::to_string(display_height) + \" ! \"\n            \" videoconvert ! video/x-raw, format=(string)BGR ! appsink\";\n```\nFor more info see [rpicamsrc](https://gstreamer.freedesktop.org/documentation/rpicamsrc/index.html?gi-language=c)\n\n------------\n\n[![paypal](https://qengineering.eu/images/TipJarSmall4.png)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=CPZTM5BB3FCYL) \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqengineering%2Fgstreamer-1.18.4-rpi_32-bits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqengineering%2Fgstreamer-1.18.4-rpi_32-bits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqengineering%2Fgstreamer-1.18.4-rpi_32-bits/lists"}