Replies: 4 comments 6 replies
-
Basically what makes me paranoid is the line: I have set up my VAAPI following the https://wiki.archlinux.org/title/Hardware_video_acceleration#Intel But in the end why would it work on command line and not work on the library with a simple parseLaunch as this. |
Beta Was this translation helpful? Give feedback.
-
I have updated to |
Beta Was this translation helpful? Give feedback.
-
Moving over to discussions - please use the mailing list ideally, or discussions, if you have usage questions. The Try setting GStreamer debug levels using |
Beta Was this translation helpful? Give feedback.
-
I think I have confirmed this is a problem being caused by having two GPUs, one integrated and a dedicated one. |
Beta Was this translation helpful? Give feedback.
-
Hey, I am trying to get gstreamer to stream an mpegts stream over udp with hardware accelerated encoding on video using VAAPI. With intel integrated GPU.
Basically I can run this command in command line to do this and it works without any problems.
gst-launch-1.0 ximagesrc ! video/x-raw,framerate=30/1 ! timeoverlay ! videoconvert ! vaapih264enc ! queue ! mpegtsmux name=m ! rtpmp2tpay ! udpsink host=127.0.0.1 port=1234 sync=false alsasrc device=hw:0 ! audioconvert ! fdkaacenc ! m.
But when I am using gstreamer-java with a simple parselaunch test:
As you can see both pipelines are identical.
However I am getting an error from gstreamer:
Now my idea is that, somehow VAAPI is using the wrong driver while working in JVM but the correct one in command line.
There is this Environment variable that needs to be set for the VAAPI to tell which driver to use:
LIBVA_DRIVER_NAME, which I have set to correct value for my GPU, as, LIBVA_DRIVER_NAME=iHD.
Is there a possibility that when gstreamer is ran through this library, this environment variable is not passed to the gstreamer process?
I can see the environment variable using
System.getenv("LIBVA_DRIVER_NAME")
OR Is this absolutely unrelated to this?
Beta Was this translation helpful? Give feedback.
All reactions