{"id":27650795,"url":"https://github.com/grgomariani/raymarching--opencv--ffmpeg","last_synced_at":"2026-05-08T01:41:50.616Z","repository":{"id":287229624,"uuid":"136184645","full_name":"GrgoMariani/RayMarching--OpenCV--ffmpeg","owner":"GrgoMariani","description":"Use raymarching with opencv and stream the result to ffmpeg","archived":false,"fork":false,"pushed_at":"2018-06-13T11:49:52.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-24T03:47:45.133Z","etag":null,"topics":["computer-vision","ffmpeg","opencv","raymarching","shaders","stream"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GrgoMariani.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,"zenodo":null}},"created_at":"2018-06-05T13:51:15.000Z","updated_at":"2019-04-24T18:30:03.000Z","dependencies_parsed_at":"2025-04-10T17:19:45.865Z","dependency_job_id":null,"html_url":"https://github.com/GrgoMariani/RayMarching--OpenCV--ffmpeg","commit_stats":null,"previous_names":["grgomariani/raymarching--opencv--ffmpeg"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrgoMariani%2FRayMarching--OpenCV--ffmpeg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrgoMariani%2FRayMarching--OpenCV--ffmpeg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrgoMariani%2FRayMarching--OpenCV--ffmpeg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrgoMariani%2FRayMarching--OpenCV--ffmpeg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GrgoMariani","download_url":"https://codeload.github.com/GrgoMariani/RayMarching--OpenCV--ffmpeg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250560007,"owners_count":21450168,"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":["computer-vision","ffmpeg","opencv","raymarching","shaders","stream"],"created_at":"2025-04-24T03:47:49.738Z","updated_at":"2026-05-08T01:41:45.597Z","avatar_url":"https://github.com/GrgoMariani.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RayMarching-\u003eOpenCV-\u003effmpeg\n\n#### Description\n\nI guess there could have been a lot of better time uses than emulating GLSL shaders in OpenCV and then pipe-ing it to ffmpeg.\n\nThreading is done via openmp, to disable it remove _DEFINES_ from _CXXFLAGS_ in __Makefile__\n- - - -\n- - - -\n## HOW TO\n\n* ##### Step0: Prerequisites\n\u003e Make sure to install ___OpenCV___ (preferably the latest one) and install ___ffmpeg___.\n\n* ##### Step1: Compile\n\n\u003e```\n\u003eg++ main.cpp -std=c++11 -o raymarching `pkg-config opencv --cflags --libs`\n\u003e```\n\u003eor use\n\u003e\n\u003e``` make ```\n* ##### Step2: Use\n\u003e```\n\u003e./raymarching | ffmpeg -f rawvideo -pixel_format bgr24 -video_size 320x240 -i - -f mpegts -preset veryslow -vcodec libx264 udp://localhost:5000\n\u003e```\n\u003e Pipe the output directly to ffmpeg with this command\n\n* ##### Step3: Watch\n\u003eOpen VLC player (or SMPlayer) and use CTRL+N (CTRL+U - SMPlayer) to open the stream from URL\n\u003e```\n\u003eudp://@0.0.0.0:5000\n\u003e```\n\n\n- - - -\n- - - -\n\n## Code Explanation\n##### Follow xdPixel's Tutorial\n\nCheck [xdPixel's tutorial]( http://xdpixel.com/ray-marching-101-part-2/ ) for code. It's his RayMarching code after all.\n\n## Why use this code ???\nWhy not ???\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrgomariani%2Fraymarching--opencv--ffmpeg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrgomariani%2Fraymarching--opencv--ffmpeg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrgomariani%2Fraymarching--opencv--ffmpeg/lists"}