Bug 625212

Summary: XVideo on nouveau does not support UYVY decoding
Product: [Fedora] Fedora Reporter: CrystalCowboy <fake>
Component: xorg-x11-drv-nouveauAssignee: Ben Skeggs <bskeggs>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: airlied, ajax, bskeggs
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-02 20:34:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Code for XVideo testing with various encodings none

Description CrystalCowboy 2010-08-18 21:21:57 UTC
Created attachment 439515 [details]
Code for XVideo testing with various encodings

Description of problem: I have a video stream from an industrial firewire camera which is encoded in UYVY. With radeon driver, Intel driver, nVidia proprietary driver or nv driver, I could feed this directly into XVideo. However, someone at Fedora chose to make the fledgling xorg-x11-drv-nouveau the default driver on nVidia cards, and while it has XVideo, it does not support UYVY.


Version-Release number of selected component (if applicable):
0.0.16-7.20100423git13c1043.fc13.x86_64

How reproducible: 100%


Steps to Reproduce:
1. compile testxv_yuv program with -lX11 -lXext -lXv 
2. run test program: testxv UYVY
3. it opens window, then immediately crashes and closes window.
  
Actual results: Nothing


Expected results: Window showing test pattern


Additional info: The driver does support YUY2 encoding. Someone should tell the nouveau developers that all you have to do to convert UYVY stream to YUY2 is swap byte pairs. Really, it's that simple.

Comment 1 Ben Skeggs 2010-08-20 00:14:30 UTC
What card are you using?  I've just added support to the NV50 textured video adapter upstream, but since you say nv works, I'm guessing you're using an older card than GeForce 8 (nv has *no* Xv support for it on that arch).

Comment 2 CrystalCowboy 2010-08-20 13:18:54 UTC
(In reply to comment #1)


[  1065.025] (--) PCI:*(0:1:0:0) 10de:0402:1458:3452 nVidia Corporation G84 [GeF
orce 8600 GT] rev 161, Mem @ 0xfa000000/16777216, 0xd0000000/268435456, 0xf80000
00/33554432, I/O @ 0x0000df00/128, BIOS @ 0x????????/131072

The report of XVideo working with the nv driver is a recollection from previous versions of Fedora on other hardware; I have not tried it on the current card under Fedora 13. I didn't want to deal with the pain of turning off the nouveau driver. I don't know how this goes for nv, but I have dealt with it WRT the proprietary nVidia driver.

Comment 3 Fedora Update System 2010-08-22 23:04:51 UTC
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.fc13

Comment 4 CrystalCowboy 2010-08-23 13:39:36 UTC
That update fixes my issue. Thank you.

Comment 5 Fedora Update System 2010-08-23 22:03:27 UTC
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update xorg-x11-drv-nouveau'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.fc13

Comment 6 Fedora Update System 2010-09-02 20:34:48 UTC
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.