Cingg can't find Va...
 
Notifications
Retirer tout

Cingg can't find Vaapi - Intel

13 Posts
3 Utilisateurs
0 Likes
3,516 Vu
0
Début du sujet

Hello,

1 - How does Cingg find vaapi AppImage?

h264_vaapi doesn't work on cinelerra for me.

CIN_HW_DEV=vaapi

I need it to encode. ffmpeg uses 100%  CPU.

2 - Are these options possible in Cinelerra?

In OBS FFmpeg vaapi:

/dev/dri/by-path/pci-0000:00:02.0-render

With FFmpeg vaapi I use:

ffmpeg -vaapi_device /dev/dri/renderD128 -i input.mp4 -vf 'format=nv12,hwupload' -c:v h264_vaapi -qp 18 output.mp4

https://trac.ffmpeg.org/wiki/Hardware/VAAPI

---------------------------------------------------------------

Cinelerra stops working when trying to render.

[AVHWDeviceContext @ 0x7f3a9002c200] Failed to initialise VAAPI connection: -1 (unknown libva error).
Failed to create a HW device.
  err: Error de entrada/salida
[h264_vaapi @ 0x7f3a9003c000] A hardware frames reference is required to associate the encoding device.
Étiquettes du sujet
13 Réponses
0

@sparkill

First, in case the following works for you, a lot of work can be avoided:

https://cinelerra-gg.org/download/images/CinGG-20220630-x86_64-older_distros-multibit.AppImage

This AppImage was created on an Intel computer that has vaapi installed, BUT still it is highly dependent on which graphics boards/software is installed.  All of the other AppImages are built on AMD computers and so will either have AMD vdpau/vaapi graphic drivers or no vdpau/vaapi drivers at all.

The manual has a short paragraph (the 4th paragraph in this url):

https://cinelerra-gg.org/download/CinelerraGG_Manual/Hardware_video_acceleration.html

There is another forum (I think that is where I saw it) description of how to overcome the fact that the hardware is varied as is the vaapi software.  A contributing user has described the procedure to use and if the above does not work for you, I can see if I can find his solution.

0
Début du sujet

@phylsmith2004 

I have Nvidia and Intel GPU.

Nvidia is the main. /dev/dri/renderD129
Intel only for ffmpeg vaapi. /dev/dri/renderD128

same multibit result does not work.

vaapi is the same result.

CinGG-20220630-x86_64-older_distros-multibit.AppImage

[AVHWDeviceContext @ 0x7fac0c032940] Failed to initialise VAAPI connection: -1 (unknown libva error).
Failed to create a HW device.
  err: Error de entrada/salida
[h264_vaapi @ 0x7fac0c0377c0] A hardware frames reference is required to associate the encoding device.

try vdpau and i get this error.

CinGG-20220630-x86_64.AppImage

Failed to open VDPAU backend libvdpau_nvidia.so

reading the documentation would it be better to build the "AppImage"?

https://cinelerra-gg.org/download/CinelerraGG_Manual/GPU_hardware_decoding.html#SECTION0021114000000000000000

 

 

0

@sparkill

reading the documentation would it be better to build the "AppImage"?

ABSOLUTELY this is the best option, it is not very difficult, and you seem to know your way around Linux.  You would just be doing a "build" as there is no reason to make an AppImage unless you want to take it to other Operating Systems.  Follow the steps as described in or for the shortened version, see steps below this url:

https://cinelerra-gg.org/download/CinelerraGG_Manual/single_user_build.html

For below steps that work on Arch as non-root user:

1) do the git  clone listed below as normal user

2) the first time, you have to make sure all of the needed packages are installed so you will have to run as root, the following line after moving to the /home/USER/cinelerra5/cinelerra-5.1 directory (substituting for <os>, ubuntu or debian or fedora or your os.

3) then execute the other 4 steps in the list below

./blds/bld_prepare.sh <os>

 

$ git clone --depth 1 "git://git.cinelerra-gg.org/goodguy/cinelerra.git" cinelerra5
$ cd /home/USER/cinelerra5/cinelerra-5.1
$ ./autogen.sh
$ ./configure --prefix=/usr --with-single-user --with-booby
$ make 2>&1 | tee /tmp/cin5.log &&  make install
0

@sparkill

Oh, and then just start the application by keying in: ./cin in the bin subdirectory of /home/USER/cinelerra5/cinelerra-5.1

 

0
Début du sujet

@phylsmith2004

Vaapi and vdpau work!!!
first time I see nvidia works XD!

Nvidia - Video Engine Utilization 50%+
Intel - intel_gpu_top works and doesn't crash.

I saw many warnings in the build.
but it worked first time. 🙂

0

@sparkill

Congratulations! on a successful build -- warnings are OK and known/expected.   Because you compiled on your particular computer setup, there may even be some very minor speed improvements (probably not noticeable). 

0
Début du sujet

thanks @phylsmith2004 🙂

uff the recorder works too!
vaapi encodes fine. I have to do more tests.

Does anyone know what library is used to record cinelerra?

0

@sparkill

Does anyone know what library is used to record cinelerra?

Not sure if this is a complicated question OR just obvious to others to look here:

1) in the main window, use the "Settings" pulldown to select "Preferences"

2) then select the "Recording" tab

3) next, if you use the down arrow in the "Audio in" and "Video in" sections under "driver" you will see choices which reflect various driver/library software

 

Ce message a été modifié Il y a 2 ans parphylsmith2004
0

@IgorBeg

@andreapaz

Not sure if you are seeing this and have better additional information of what library is used for the "Record" option of CinGG.

Ce message a été modifié Il y a 2 ans parphylsmith2004
0
Début du sujet

@phylsmith2004

Yes, the libraries to make it work.
I was surprised!

I would think it uses x11grab from FFmpeg, but it has more features!
Almost the same as simplescreenrecorder. is more complex than OBS! who could have developed it?

it is too good! 🙂

 

0

@sparkill

who could have developed it?

Adam William developed Cinelerra (originally Broadcast 2000) and so I am pretty sure he did.  Many, many others have added to it and fixed problems over the last 22 years.  As well as all of the people who have updated and maintained the libraries to current.

0

Sorry for the late, @phylsmith2004.

philsmith2004 wrote:

...and have better additional information of what library is used for the "Record" option of CinGG.

No, I am sorry. I don't use Record tool. I can try, if you want.

0
Début du sujet

Thanks @phylsmith2004

I already looked for information about the developer. 

Share: