Bug 771254 - Review Request: libva-vdpau-driver - HW video decode support for VDPAU platforms
Summary: Review Request: libva-vdpau-driver - HW video decode support for VDPAU platforms
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mamoru TASAKA
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-02 22:58 UTC by Nicolas Chauvet (kwizart)
Modified: 2013-03-28 16:06 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-28 16:06:03 UTC
Type: ---
Embargoed:
mtasaka: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)

Description Nicolas Chauvet (kwizart) 2012-01-02 22:58:08 UTC
Spec URL:
http://kwizart.fedorapeople.org/review/libva-vdpau-driver.spec
SRPM URL:
http://kwizart.fedorapeople.org/review/libva-vdpau-driver-0.7.3-2.fc16.src.rpm
Description: HW video decode support for VDPAU platforms

This package is a bridge between vdpau and vaapi, there is no actual hardware back-end provided here. (instead a given back-end may rely on this package to HW decode a video stream from a VA-API enabled player)

There seem to have proof of concept of a vdpau backend for an open source driver (untested yet) http://cgit.freedesktop.org/~emericg
So that make the package interest to rise up for fedora itself.

Comment 1 Mattia Verga 2012-01-15 16:08:30 UTC
Seems to miss %post and %postun sections required for libraries:
https://fedoraproject.org/wiki/Packaging:Guidelines#Shared_Libraries

Comment 2 Nicolas Chauvet (kwizart) 2012-01-15 22:48:16 UTC
Hello Mattia and thanks for your interest in this review.

This is a good remark, but actually this is a special case here.

This library is not intended to be used 'system wide' but only from a dedicated library (libva), which last is installed with ldconfig.
So libva is expected to 'dlopen' the right backend %name_drv_video.so from the special directory ( %_libdir/dri ) given the current driver used by the Xorg server.
For the same reason, this is usually expected to have the shared object un-versioned in this case.

So to sum-up, you can consider this library as a module or a plugin like the one provided by mesa-dri-drivers from the mesa case.

Comment 3 Nicolas Chauvet (kwizart) 2013-01-02 16:02:25 UTC
Spec URL:
http://kwizart.fedorapeople.org/review/libva-vdpau-driver.spec
SRPM URL:
http://kwizart.fedorapeople.org/review/libva-vdpau-driver-0.7.4-1.fc19.src.rpm
Description: HW video decode support for VDPAU platforms

Changelog:
Update to 0.7.4

Koji scratch build for rawhide:
http://koji.fedoraproject.org/koji/taskinfo?taskID=4833120

rpmlint is clean

Comment 4 Nicolas Chauvet (kwizart) 2013-01-02 16:13:21 UTC
Sounds like the package fails with recent mesa.
I will probably ask upstream about a patch similar to this:
http://gitorious.org/vaapi/gstreamer-vaapi/commit/5db2e93d3c930fd8470cfdcd26f514d1cebc59a0/diffs

Comment 5 Mamoru TASAKA 2013-01-02 16:23:39 UTC
(In reply to comment #4)
> Sounds like the package fails with recent mesa.
> I will probably ask upstream about a patch similar to this:
> http://gitorious.org/vaapi/gstreamer-vaapi/commit/
> 5db2e93d3c930fd8470cfdcd26f514d1cebc59a0/diffs

Gentoo seems to have applied similar patch to their package:
https://bugs.gentoo.org/show_bug.cgi?id=438180

Comment 6 Mamoru TASAKA 2013-01-02 16:26:28 UTC
By the way, at least please make build.log more verbose so that we can check easily if Fedora specific compilation flags are honored correctly (just checked build.log only, not checked spec file or so yet)

Comment 7 Mamoru TASAKA 2013-01-03 07:24:01 UTC
Nicolas, would you try if gentoo patch works? If build gets successful, I may want to review this ticket.

Comment 8 Nicolas Chauvet (kwizart) 2013-01-16 16:06:24 UTC
Spec URL:
http://kwizart.fedorapeople.org/review/libva-vdpau-driver.spec
SRPM URL:
http://kwizart.fedorapeople.org/review/libva-vdpau-driver-0.7.4-2.fc18.src.rpm
Description: HW video decode support for VDPAU platforms

Changelog:
- Fix build with recent mesa

The patch was sent upstream (no answear yet).

koji scratch build for f18
http://koji.fedoraproject.org/koji/taskinfo?taskID=4874068

Comment 9 Mamoru TASAKA 2013-01-20 14:06:00 UTC
Taking. I would appreciate it if you would review my review request bug 902024 .

Comment 10 Mamoru TASAKA 2013-01-21 08:55:19 UTC
For 0.7.4-2:

* Make build.log verbose
  - Currently build.log just shows
---------------------------------------------------------
make[2]: Entering directory `/builddir/build/BUILD/libva-vdpau-driver-0.7.4/src'
  CC     debug.lo
  CC     object_heap.lo
  CC     uasyncqueue.lo
  CC     ulist.lo
  CC     uqueue.lo
  CC     utils.lo
---------------------------------------------------------
    and I cannot test some more detailed issues, for example
    if Fedora specific compilation flags are passed correctly
    or not.
    Please add "--disable-silent-rules" to %configure

! No longer needed items (not blockers)
  - The following items are no longer needed, unless
    you want to import this also on EPEL5.
    * BuildRoot: line
    * "rm -rf %{buildroot}" at the top of %install
    * %clean section
    * %defattr

! Note
  I don't know how to check if this driver works or not,
  so I just check packaging issues on this rpm.

Comment 11 Mamoru TASAKA 2013-01-26 18:44:14 UTC
ping?

Comment 12 Nicolas Chauvet (kwizart) 2013-01-28 08:15:44 UTC
I will probably have more time this week. (I will do your review)

Comment 13 Mamoru TASAKA 2013-01-31 16:40:27 UTC
Okay, thank you for response.

Comment 14 Mamoru TASAKA 2013-02-08 03:45:33 UTC
ping again?

Comment 15 Mamoru TASAKA 2013-02-16 05:18:16 UTC
Again ping?

Comment 16 Nicolas Chauvet (kwizart) 2013-03-01 16:27:42 UTC
Spec URL:
http://kwizart.fedorapeople.org/review/libva-vdpau-driver.spec
SRPM URL:
http://kwizart.fedorapeople.org/review/libva-vdpau-driver-0.7.4-3.fc19.src.rpm
Description: HW video decode support for VDPAU platforms

Changelog:
- Add --disable-silent-rules
- Clean-up spec

Comment 17 Mamoru TASAKA 2013-03-02 17:49:45 UTC
For 0.7.4-3:

* Directory ownership
  - It seems that it is better that this rpm has
    "Requires: mesa-dri-filesystem" for the ownership
    of %_libdir/dri .

Please fix the above issue before importing this
into git.

-----------------------------------------------------
    This package (libva-vdpau-driver) is
    APPROVED by mtasaka
-----------------------------------------------------

Comment 18 Mamoru TASAKA 2013-03-12 05:25:07 UTC
ping?

Comment 19 Nicolas Chauvet (kwizart) 2013-03-12 08:10:32 UTC
Sorry, yes I will add Requires: mesa-dri-filesystem

Comment 20 Nicolas Chauvet (kwizart) 2013-03-12 08:15:49 UTC
New Package SCM Request
=======================
Package Name: libva-vdpau-driver
Short Description: HW video decode support for VDPAU platforms
Owners: kwizart
Branches: el6 f18 f17
InitialCC:

Comment 21 Gwyn Ciesla 2013-03-12 12:39:39 UTC
Git done (by process-git-requests).

Comment 22 Nicolas Chauvet (kwizart) 2013-03-13 17:36:01 UTC
Package Change Request
======================
Package Name: libva-vdpau-driver
New Branches: f19
Owners: kwizart
InitialCC: 

Sorry, I should have requested a f19 branch also

Comment 23 Gwyn Ciesla 2013-03-13 18:07:51 UTC
Git done (by process-git-requests).


Note You need to log in before you can comment on or make changes to this bug.