Comments (8)
Yes. I run with a kube deployment. You will need to run X on the host, and then use xserver-xorg-video-dummy in your container (pod). For example if you were using docker on a GCP machine you would run these.
On the host
sudo Xorg -noreset +extension GLX +extension RANDR +extension RENDER -logfile ./xserver.log vt1 :1 &
docker run --gpus all -v /usr/local/cuda:/usr/local/cuda --device=/dev/dri/card0 --rm -e DISPLAY=$DISPLAY -v /tmp/X11-unix:/tmp/.X11 -it <image> /bin/bash
In the container
Xorg -noreset +extension GLX +extension RANDR +extension RENDER -logfile ./xserver.log vt1 :1 &
Test GPU is enabled
GST_PLUGIN_PATH=Release:$GST_PLUGIN_PATH gst-launch-1.0 -e cefsrc url="chrome://gpu" gpu=true chrome-extra-flags="use-gl=egl, enable-gpu-rasterization,ignore-gpu-blocklist" ! video/x-raw, width=1920, height=8080, framerate=1/1 ! cefdemux name=demux ! queue ! videoconvert ! pngenc ! multifilesink location="frame%d.png"
from gstcefsrc.
Thank you, this is excellent.
from gstcefsrc.
@aiden-jeffrey Your welcome. If you have anymore questions ask them on this thread. I'll try to respond when I can.
from gstcefsrc.
Hey @SteveMcFarlin , can you turn this comment into a README update ? I'm sure that'll be helpful to others :)
from gstcefsrc.
@MathieuDuponchelle Sure. Given GPU usage is a machine and X/wayland specific topic I am not sure it should be included in the README. Would a separate GPU.md guidance doc work for you?
from gstcefsrc.
@SteveMcFarlin sure, if you think that makes more sense, please just include a link to that separate file in the main README then.
To be honest for small projects like this one I'll just happily shove everything into a single README :)
from gstcefsrc.
Just wanted to follow up on this. I will add a note to the docs, but over the past month or so I have found is not as simple as copy pasta and is very runtime/machine/configuration specific. I guess a few notes to guide someone to a solution is better than nothing though.
from gstcefsrc.
Just wanted to follow up on this. I will add a note to the docs, but over the past month or so I have found is not as simple as copy pasta and is very runtime/machine/configuration specific. I guess a few notes to guide someone to a solution is better than nothing though.
Yes, that would seem useful :)
from gstcefsrc.
Related Issues (20)
- Pipeline hangs (Windows) HOT 11
- Wayland Support HOT 1
- License HOT 3
- Sandbox HOT 6
- registering JS Callbacks using RenderProcessHandler::OnContextCreated() HOT 1
- Leaves 5 processes running after `stop` HOT 7
- Mixing audio and video with `matroskamux` causing deadlocks HOT 40
- Rare negotiation errors are happening between cefsrc and cefdemux HOT 3
- Not compiling on macOS Ventura on MacBook M1
- Broken Linux x64 build HOT 2
- Deadlock when mixing Audio and Video HOT 6
- trying to build for jetson nano HOT 21
- Cef Segmentation fault HOT 4
- Bad audio meta HOT 10
- [Q] what is the purpose of the audiotestsrc ? HOT 4
- No video output with `gtk4paintablesink` and `clappersink` HOT 4
- Plugin files blacklisted but plugin still works HOT 2
- Inconsistant caps
- Ideas on making src element only generate frames when a fresh buffer is created HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gstcefsrc.