Project

General

Profile

Actions

Feature #3831

closed

Feature #4443: support vaapi for transcoding

VAAPI Encoding via FFmpeg.

Added by danny skjodt almost 9 years ago. Updated over 7 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-05-28
Due date:
% Done:

0%

Estimated time:

Description

Is there any plans to add the new h264_vaapi encoder via ffmpeg ?
Its much easier to setup compared to the quick sync intel media sdk stuff.

It works out of the box on a default ubuntu 15.10 install.
And the performance/quality is quite good if you have hasswell or better.
It also works without a X system.

test@box:~$ /home/test/FFmpeg/ffmpeg -y -vaapi_device /dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -y -i testfile.ts -vf 'format=nv12|vaapi,hwupload' -an -c:v h264_vaapi -b:v 2M -f mpegts out.ts
ffmpeg version N-80101-gd970f7b Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.2.1 (Ubuntu 5.2.1-22ubuntu2) 20151010
configuration: --enable-vaapi
libavutil 55. 24.100 / 55. 24.100
libavcodec 57. 43.100 / 57. 43.100
libavformat 57. 37.100 / 57. 37.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 46.100 / 6. 46.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 0.101 / 2. 0.101
libva info: VA-API version 0.38.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_38
libva info: va_openDriver() returns 0
Input #0, mpegts, from 'testfile.ts':
Duration: 00:01:19.75, start: 47250.486389, bitrate: 3407 kb/s
Program 1
Stream #0:0[0x20]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 720x576 [SAR 16:11 DAR 20:11], 25 fps, 50 tbr, 90k tbn
Stream #0:1[0x279](swe): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 192 kb/s
Output #0, mpegts, to 'out.ts':
Metadata:
encoder : Lavf57.37.100
Stream #0:0: Video: h264 (High), vaapi_vld, 720x576 [SAR 16:11 DAR 20:11], q=2-31, 2000 kb/s, 25 fps, 90k tbn
Metadata:
encoder : Lavc57.43.100 h264_vaapi
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_vaapi))
Press [q] to stop, [?] for help
frame= 1957 fps=859 q=-0.0 Lsize= 20781kB time=00:01:19.00 bitrate=2154.9kbits/s speed=34.7x
video:19052kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 9.076974%


Files

bla2.png (184 KB) bla2.png Jan g, 2016-06-12 16:22
bla.png (804 KB) bla.png Jan g, 2016-06-12 16:22
bla2.png (212 KB) bla2.png Jan g, 2016-06-12 16:26
bla.ts (10.1 MB) bla.ts Jan g, 2016-06-15 22:22
codec_h264_vaapi.PNG (27 KB) codec_h264_vaapi.PNG Frank Schimmack, 2016-10-08 21:46
codec_h264_vaapi_not_accessable.PNG (31 KB) codec_h264_vaapi_not_accessable.PNG Frank Schimmack, 2016-10-08 21:46
codec_h264_vaapi_not_active.PNG (27.4 KB) codec_h264_vaapi_not_active.PNG Frank Schimmack, 2016-10-08 21:46
Actions

Also available in: Atom PDF