This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

VAAPI-Encoding (Linux/Arch)
#1
Hi Selur,

Die Linux-User, ich z.B. mit Arch, haben ja immer noch das Nachsehen das kein Intel-Hardware-Encoding gemacht werden kann. Das funktioniert scheinbar mit keinem Videotool unter Linux ... soweit mir bekannt ist.
Gäbe es nicht die Möglichkeit VAAPI-Encoding in Hybrid einzubauen ?

Ich hab mich stundenlang mit VAAPI beschäftigt und mittlerweile sieht das richtig gut aus. Die Resultate sind mindestens so gut, wie mit "qvsenc" unter Windoof.

Man muß lediglich von ffmepg nach ffmpeg pipen.So sieht das z.B. mit ffmpeg aus:

ffmpeg -threads 6 -hide_banner \
-i "input" -s 1920x1080 -r 24000/1001 \
-vf crop=1920:800:0:140,pad=1920:1080:0:140 \
-f yuv4mpegpipe pipe:1 | ffmpeg -threads 1 -hide_banner \
-vaapi_device /dev/dri/renderD128 \
-i pipe:0  \
-vf 'format=nv12,hwupload' \
-c:v h264_vaapi -b:v 8M -g 24 -profile:v high -level 41 -quality 1 -compression_level 1 -bf 3 \
output.m2v

Das ffmpeg-Decoding braucht mehr Power/Threads da es ja nur über die CPU läuft. Für´s Encoding ist nur 1 Thread notwendig, läuft ja über die GPU.
Wie in Hybrid üblich, müssen Video und Audiobearbeitung getrennt ausgeführt werden. Und mit mkvmerge wird gemuxt.
Sogar Transcoding via vaapi müßte funktionieren. Ich mach da auch noch einige Tests.

Gruß ggrub
Reply


Messages In This Thread
VAAPI-Encoding (Linux/Arch) - by ggrub08 - 30.07.2018, 22:23
RE: VAAPI-Encoding (Linux/Arch) - by Selur - 31.07.2018, 05:36
RE: VAAPI-Encoding (Linux/Arch) - by ggrub08 - 31.07.2018, 10:27
RE: VAAPI-Encoding (Linux/Arch) - by Selur - 31.07.2018, 17:33
RE: VAAPI-Encoding (Linux/Arch) - by ggrub08 - 31.07.2018, 21:21
RE: VAAPI-Encoding (Linux/Arch) - by Selur - 01.08.2018, 05:16
RE: VAAPI-Encoding (Linux/Arch) - by ggrub08 - 04.08.2018, 13:51
RE: VAAPI-Encoding (Linux/Arch) - by Selur - 04.08.2018, 15:28
RE: VAAPI-Encoding (Linux/Arch) - by ggrub08 - 04.08.2018, 17:00
RE: VAAPI-Encoding (Linux/Arch) - by Selur - 04.08.2018, 17:36
RE: VAAPI-Encoding (Linux/Arch) - by Selur - 05.08.2018, 09:26
RE: VAAPI-Encoding (Linux/Arch) - by Selur - 05.08.2018, 10:13
RE: VAAPI-Encoding (Linux/Arch) - by ggrub08 - 05.08.2018, 14:59
RE: VAAPI-Encoding (Linux/Arch) - by Selur - 05.08.2018, 15:36
RE: VAAPI-Encoding (Linux/Arch) - by ggrub08 - 07.08.2018, 14:48
RE: VAAPI-Encoding (Linux/Arch) - by Selur - 07.08.2018, 17:13

Forum Jump:


Users browsing this thread: 1 Guest(s)