GithubHelp home page GithubHelp logo

Comments (8)

SteveMcFarlin avatar SteveMcFarlin commented on June 8, 2024

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.

aiden-jeffrey avatar aiden-jeffrey commented on June 8, 2024

Thank you, this is excellent.

from gstcefsrc.

SteveMcFarlin avatar SteveMcFarlin commented on June 8, 2024

@aiden-jeffrey Your welcome. If you have anymore questions ask them on this thread. I'll try to respond when I can.

from gstcefsrc.

MathieuDuponchelle avatar MathieuDuponchelle commented on June 8, 2024

Hey @SteveMcFarlin , can you turn this comment into a README update ? I'm sure that'll be helpful to others :)

from gstcefsrc.

SteveMcFarlin avatar SteveMcFarlin commented on June 8, 2024

@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.

MathieuDuponchelle avatar MathieuDuponchelle commented on June 8, 2024

@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.

SteveMcFarlin avatar SteveMcFarlin commented on June 8, 2024

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.

MathieuDuponchelle avatar MathieuDuponchelle commented on June 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.