How to get accelerated xv output ?

Asked by Vlad Gheorghe on 2013-05-19

Hello,

I would like to get only 2d acceleration on AC100. That would allow at least video scaling.

I have followed the instructions at:
https://wiki.ubuntu.com/ARM/TEGRA/AC100#Graphics

I have tried 12.10 + nvidia proprietary drivers.

It seems that any application that uses xvideo is freezing the complete X window system.
(reported at https://bugs.launchpad.net/ac100/+bug/1178199 )

Is there any way to get xv output working ?
Is it confirmed to work in certain configurations ?

I have noticed in nvidia's L4T driver packages that the latest that supports T20 harmony is R15.

https://developer.nvidia.com/sites/default/files/akamai/tools/files/l4t/r15/Tegra_Linux_Driver_Package_Release_Notes_R15_armhf.pdf
"The NVIDIA binaries provided for Ventana devices may be able to support
Tegra 2 devices code-named “Harmony”. Please note however that Harmony
support has been deprecated."

Is there a chance that a downgrade might solve this problem ?

Best
Vlad

Question information

Language:
English Edit question
Status:
Answered
For:
AC100_enablement Edit question
Assignee:
No assignee Edit question
Last query:
2013-05-19
Last reply:
2013-05-20
Marc Dietrich (marvin24) said : #1

Ventana uses the same cpu as Harmony or AC100, so this shouldn't matter. And even if you have harmony support, doesn't mean you have support for the AC100.

Regarding your problem, have you tied nvgstplayer?

Vlad Gheorghe (vlad-gheorghe) said : #2

Thanks for the response !

Some clarifications upfront..

* A similar note regarding Harmony deprecation is found in the release notes for R16.3
https://developer.nvidia.com/sites/default/files/akamai/mobile/docs/Tegra_Linux_Driver_Package_Release_Notes_R16.3.pdf

* I have also tried to use the instructions at ac100. grandou.net/hw_accelerated_video_playback
- for 12.10
- The link to the codecs package is broken. Instead, I have tried to unzip the codecs provided on the nvidia site in the root of the AC100.
http://developer.nvidia.com/sites/default/files/akamai/mobile/files/L4T/ventana_Tegra-Linux-codecs-R16.3.0_armhf.tbz2
- Instead of downloading, I've got the nvidia-tegra package installed using apt-get from the multiverse.
 ( I hope it's the same file)

* I have installed gnome-media as instructed, to get gstreamer-properties

* In gstreamer-properties
- audio configured, tested and works
- video set to nvxvimagesink, but test gives an error dialog 'Custom: could not link ffmpeccsp0 to nvximagesink0'

With this setup
- nvgstplayer does play h264, output window can be resized arbitrarily
- gst-launch playbin2 also works ( I guess they have much the same setup of gst)
- totem doesn't work - opens and stops at position 0 ( will add output in a later comment)
- any application using XV output seems to freeze the system (as reported in LP:1178199 )
    - mplayer -vo xv
    - ekiga

Is it possible to get libxv supprot on tegra ? Or video acceleration can only be done via gstreamer ?

Cheers
Vlad

Vlad Gheorghe (vlad-gheorghe) said : #3

$ totem test.mp4
NvRmPrivGetChipIdStub: Could not read Tegra chip id/rev
Expected on kernels without Tegra3 support, using Tegra2
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started

** (totem:1938): WARNING **: Problem inhibiting the screensaver: Cannot invoke method; proxy is for a well-known name without an owner and proxy was constructed with the G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START flag

omx_setup error while setting FilterTimestamp
Allocating new output: 1280x720 (x 10)

(totem:1938): Clutter-Gst-WARNING **: Failed to convert non-scaled coordinates for video-sink

(totem:1938): Clutter-Gst-WARNING **: Failed to convert non-scaled coordinates for video-sink

(totem:1938): Clutter-Gst-WARNING **: Failed to convert non-scaled coordinates for video-sink

(totem:1938): Clutter-Gst-WARNING **: Failed to convert non-scaled coordinates for video-sink

(totem:1938): Clutter-Gst-WARNING **: Failed to convert non-scaled coordinates for video-sink

(totem:1938): Clutter-Gst-WARNING **: Failed to convert non-scaled coordinates for video-sink

Marc Dietrich (marvin24) said : #4

I think there isn't much we can do. Why do you need xv output anyway. The tegra drivers support openmax only AFAIK. A better place to ask for help may be the forums in nvidia.com (https://devtalk.nvidia.com/default/board/104/) or directly send a mail to nvidia <email address hidden>.

Vlad Gheorghe (vlad-gheorghe) said : #5

* One of my interests is to get a sip with video working on the AC100.
Up to now ekiga worked best, but compeltely non-accelerated.

I think that using xv would result in some performance gain.

However, it looks that the real gain would be to get full encoding/decoding acceleration - so gstreamer seems the way to go.

ekiga does not seem to use gstreamer. It only uses standard XV, which apparently does not work on AC100 with the installed drivers.

I will investigate empathy/telepathy as an alternative, which seems to use gstreamer.

* Still, on the ac100.grandou.com wiki it is indicated that totem should work.
The issue that prevents it from running in my installation might affect other gst-based players (empathy included).

How can I get some help in debugging this issue ? (is it ac100, lubuntu, gstreamer, totem? )

* I have asked about the xv issue on the nvidia forum.

Thanks !
Vlad

Can you help with this problem?

Provide an answer of your own, or ask Vlad Gheorghe for more information if necessary.

To post a message you must log in.