[Libva] using libva video compression on system with no monitor

Ratin ratin3 at gmail.com
Tue Aug 14 13:32:15 PDT 2012


On Tue, Aug 14, 2012 at 1:00 PM, Ratin <ratin3 at gmail.com> wrote:
> On Tue, Aug 14, 2012 at 7:20 AM,  <rlandle at gdrs.com> wrote:
>> I have tried compiling both intel-driver-1.0.17 and intel-driver-1.0.18 against the staging version of libva and I get the following errors:
>>
>> gen6_mfc.c: In function 'gen6_mfc_avc_pipeline_programing':
>> gen6_mfc.c:763:5: error: unknown type name 'VAEncSequenceParameterBufferH264'
>> gen6_mfc.c:763:61: error: 'VAEncSequenceParameterBufferH264' undeclared (first use in this function)
>> gen6_mfc.c:763:61: note: each undeclared identifier is reported only once for each function it appears in
>> gen6_mfc.c:763:95: error: expected expression before ')' token
>> gen6_mfc.c:782:40: error: request for member 'initial_qp' in something not a structure or union
>> gen6_mfc.c: In function 'gen6_mfc_avc_prepare':
>> gen6_mfc.c:848:5: error: unknown type name 'VAEncPictureParameterBufferH264'
>> gen6_mfc.c:848:55: error: 'VAEncPictureParameterBufferH264' undeclared (first use in this function)
>> gen6_mfc.c:848:88: error: expected expression before ')' token
>> gen6_mfc.c:852:98: error: request for member 'reconstructed_picture' in something not a structure or union
>> gen6_mfc.c:863:98: error: request for member 'reference_picture' in something not a structure or union
>> gen6_mfc.c:875:95: error: request for member 'coded_buf' in something not a structure or union
>>
>> I will try the staging version of intel-driver next.
>>
>> Thanks,
>> Bob L.
>
> These structures are defined in va/va_enc_h264.h so I guess somehow
> they are not being included in gen6_mfc.c etc.
>
> I am experiencing a different issue while compiling libva_staging
> (gunzipped from tar.gz)
>
> make  all-recursive
> make[1]: Entering directory `/workspace/ratin/libva-staging'
> Making all in va
> make[2]: Entering directory `/workspace/ratin/libva-staging/va'
> Making all in x11
> make[3]: Entering directory `/workspace/ratin/libva-staging/va/x11'
>   CC     dri1_util.lo
> mv: cannot stat `.deps/dri1_util.Tpo': No such file or directory
> make[3]: *** [dri1_util.lo] Error 1
> make[3]: Leaving directory `/workspace/ratin/libva-staging/va/x11'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/workspace/ratin/libva-staging/va'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/workspace/ratin/libva-staging'
> make: *** [all] Error 2

Never mind with that, moving the project from nfs mount  to home
solved the problem. I am able to compile both the staging versions
compile successfully:

libva info: VA-API version 0.34.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_34
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.34 (libva 1.2.0.pre1)
vainfo: Driver version: Intel i965 driver - 1.0.16.pre1
vainfo: Supported profile and entrypoints
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileH264Baseline           :	VAEntrypointVLD
      VAProfileH264Baseline           :	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD


>>
>>
>> -----Original Message-----
>> From: libva-bounces+rlandle=gdrs.com at lists.freedesktop.org [mailto:libva-bounces+rlandle=gdrs.com at lists.freedesktop.org] On Behalf Of rlandle at gdrs.com
>> Sent: Tuesday, August 14, 2012 9:48 AM
>> To: libva at lists.freedesktop.org
>> Subject: Re: [Libva] using libva video compression on system with no monitor
>>
>> I see in the avcenc example there is a call to the va_init_display_args() function to force the name of the display to be drm
>>
>> This function call does not appear to be in the avinfo test.
>>
>> If I copy this function call into vainfo.c, recompile, and run
>>>> vainfo --display drm
>>
>> I see va_open_display_drm gets called.
>>
>> I still cannot compile the intel-driver-1.0.15 with this version of libva.
>>
>> Thanks,
>> Bob
>>
>>
>>
>> -----Original Message-----
>> From: libva-bounces+rlandle=gdrs.com at lists.freedesktop.org [mailto:libva-bounces+rlandle=gdrs.com at lists.freedesktop.org] On Behalf Of rlandle at gdrs.com
>> Sent: Tuesday, August 14, 2012 9:14 AM
>> To: libva at lists.freedesktop.org
>> Subject: Re: [Libva] using libva video compression on system with no monitor
>>
>> Haihao,
>> I git-cloned the staging branch and can see the addition of the ./test/common/va_display_drm.c
>>
>> It is clear to me that va_open_display_drm() will get called when DRM is an available display.
>> But am I supposed to configure libva with --enable-x11 off, so that this function is the only option?
>>
>> The va_open_display_x11 function still gets called when I configure with the defaults (x11 on).  This gives me an error and va_open_display_drm() never gets called.
>>
>> Also if I configure libva with --enable-x11 off I have problems building the intel-driver-1.0.15.
>>
>> Do I need a newer intel driver library to support the raw-DRM capabilities of the libva?
>>
>> Thanks,
>> Bob
>>
>> -----Original Message-----
>> From: Xiang, Haihao [mailto:haihao.xiang at intel.com]
>> Sent: Monday, August 13, 2012 11:11 PM
>> To: Robert J. Landle
>> Cc: libva at lists.freedesktop.org
>> Subject: Re: [Libva] using libva video compression on system with no monitor
>>
>>
>> The staging branch supports raw-DRM. With it, an user can use libva
>> without an X server.
>>
>> Thanks
>> Haihao
>>
>>
>>
>>> I was wondering if it was possible to use libva for gpu video
>>> compression/acceleration on intel HD3000 on a system with no monitor?
>>>
>>> I have an fc-16 (linux 3.1) sytem in which I built the intel 2001Q4
>>> graphic package.
>>>
>>> I can run vainfo successfully while I am plugged into the system with
>>> keyboard/mouse/monitor.
>>>
>>>
>>>
>>> However when I ssh into the system an attempt to run vainfo I get the
>>> following error:
>>>
>>>
>>>
>>> libva: VA-API version 0.32.0
>>>
>>> Xlib:  extension "XFree86-DRI" missing on display "localhost:10.0".
>>>
>>> libva: va_getDriverName() returns -1
>>>
>>> vaInitialize failed with error code -1 (unknown libva error),exit
>>>
>>>
>>>
>>> It must be possible to take advantage of the intel gpu video
>>> compression acceleration hardware on systems without a
>>> monitor/keyboard/mouse. No?
>>>
>>>
>>>
>>>
>>>
>>> Thanks,
>>>
>>> Bob
>>>
>>>
>>> ------------------------------------------------------
>>>
>>> This is an e-mail from General Dynamics Robotic Systems. It is for the
>>> intended recipient only and may contain confidential and privileged
>>> information. No one else may read, print, store, copy, forward or act
>>> in reliance on it or its attachments. If you are not the intended
>>> recipient, please return this message to the sender and delete the
>>> message and any attachments from your computer. Your cooperation is
>>> appreciated.
>>>
>>>
>>> _______________________________________________
>>> Libva mailing list
>>> Libva at lists.freedesktop.org
>>> http://lists.freedesktop.org/mailman/listinfo/libva
>>
>>
>>
>> -------------------------------------------------------
>> This is an e-mail from General Dynamics Robotic Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated.
>>
>> _______________________________________________
>> Libva mailing list
>> Libva at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/libva
>>
>> -------------------------------------------------------
>> This is an e-mail from General Dynamics Robotic Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated.
>>
>> _______________________________________________
>> Libva mailing list
>> Libva at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/libva
>>
>> -------------------------------------------------------
>> This is an e-mail from General Dynamics Robotic Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated.
>>
>>
>> _______________________________________________
>> Libva mailing list
>> Libva at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/libva
>>


More information about the Libva mailing list