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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.