Jump to content
Калькуляторы

gstreamer+vaapi у кого получилось???

Добрый день коллеги.

Прошу помочь гуру по gstreamer. Имею ubuntu 14.04.3 + i7-3770K + gstreamer1.0 Задача - сделать хардварное кодирование h264 с помощью vaapi encoder.

Вроде все поставилось нормально, но gst-inspect-1.0 показывает следующее:

 

gst-inspect-1.0 version 1.2.4

GStreamer 1.2.4

 

vaapi: vaapisink: VA-API sink

vaapi: vaapipostproc: VA-API video postprocessing

vaapi: vaapidecode: VA-API decoder

 

Encoder отсутствует в этом списке, соответственно не могу его использовать. Куда рыть?

Edited by winger

Share this post


Link to post
Share on other sites

теперь такое вижу

 

 

root@ubuntu:~/gstreamer# gst-inspect-1.0 vaapi

Plugin Details:

Name vaapi

Description VA-API based elements

Filename /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvaapi.so

Version 0.6.1

License LGPL

Source module gstreamer-vaapi

Binary package gstreamer-vaapi

Origin URL gwenole.beauchesne@intel.com, sreerenj.balachandran@intel.com

 

vaapidecode: VA-API decoder

vaapipostproc: VA-API video postprocessing

vaapisink: VA-API sink

vaapiencode_h264: VA-API H.264 encoder

vaapiencode_mpeg2: VA-API MPEG-2 encoder

vaapiencode_vp8: VA-API VP8 encoder

 

6 features:

+-- 6 elements

 

root@ubuntu:~/gstreamer# gst-launch-1.0 -vvv udpsrc uri=udp://233.99.61.1:5000 ! decodebin ! vaapiencode_h264 ! mpegtsmux ! rndbuffersize max=1316 min=1316 ! udpsink host=224.1.1.1 port=1234

Setting pipeline to PAUSED ...

ERROR: Pipeline doesn't want to pause.

ERROR: from element /GstPipeline:pipeline0/GstVaapiEncodeH264:vaapiencodeh264-0: Could not initialize supporting library.

Additional debug info:

gstvideoencoder.c(1428): gst_video_encoder_change_state (): /GstPipeline:pipeline0/GstVaapiEncodeH264:vaapiencodeh264-0:

Failed to open encoder

Setting pipeline to NULL ...

Freeing pipeline ...

root@ubuntu:~/gstreamer#

Share this post


Link to post
Share on other sites

У меня получилось. в принципе, 4 канала в full hd кодирует.

покажите выхлоп vainfo и vdpauinfo

Share this post


Link to post
Share on other sites

root@ubuntu:~# vainfo

error: XDG_RUNTIME_DIR not set in the environment.

error: can't connect to X server!

libva info: VA-API version 0.36.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_36

libva info: va_openDriver() returns 0

vainfo: VA-API version: 0.36 (libva 1.4.0)

vainfo: Driver version: Intel i965 driver for Intel® Ivybridge Desktop - 1.4.0

vainfo: Supported profile and entrypoints

VAProfileMPEG2Simple : VAEntrypointVLD

VAProfileMPEG2Simple : VAEntrypointEncSlice

VAProfileMPEG2Main : VAEntrypointVLD

VAProfileMPEG2Main : VAEntrypointEncSlice

VAProfileH264ConstrainedBaseline: VAEntrypointVLD

VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice

VAProfileH264Main : VAEntrypointVLD

VAProfileH264Main : VAEntrypointEncSlice

VAProfileH264High : VAEntrypointVLD

VAProfileH264High : VAEntrypointEncSlice

VAProfileH264StereoHigh : VAEntrypointVLD

VAProfileVC1Simple : VAEntrypointVLD

VAProfileVC1Main : VAEntrypointVLD

VAProfileVC1Advanced : VAEntrypointVLD

VAProfileNone : VAEntrypointVideoProc

VAProfileJPEGBaseline : VAEntrypointVLD

root@ubuntu:~#

 

vdpauinfo - это же вроде для radeon, нет?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now