Re: [pandaboard] Video hardware acceleration does not work on Pandaboard ES Rev B1 + Ubuntu 12.04

797 views
Skip to first unread message

Nicolas Dechesne

unread,
Nov 13, 2012, 2:53:54 PM11/13/12
to panda...@googlegroups.com
On Tue, Nov 13, 2012 at 6:22 PM, wubin <vvu...@gmail.com> wrote:
> Hi all,
>
> I am trying to play 1080p h264 fully accelerated by the hardware decoder. I
> checked that it is using gstreamer framework, so I used totem player to test
> it. CPU usage is crazy high, and the video playback looks like a
> slideshow... it just does not work. Again, Ubuntu LEB, TI OMAP PPA, none of
> them could make it work. Besides, I would like to know if there is anyway to
> make the hardware decoder working on Youtube for html5 videos. Right now
> everything for me is just a slideshow.
>
> Omappedia says The storage is a class10-133x 16G SD card. I did read that
> omappedia says "Try moving the videos onto a USB flash drive and play
> them.", but this one should still be fast enough to read 1080p h264 videos.
> Any help would be appreciated.

we tend to maintain the TI PPA so that h/w accelerated video playback
works, at least most of the time... it would be easier if you could
provide details on how you install 12.04 + PPA on your panda, as well
as some logs. the interesting log files for us to help are:

# dmesg
# cat /var/log/Xorg.0.log
# lsmod
# dpkg -l
# cat /sys/debug/kernel/remoteproc/*/traces

if you can get something like this too:

GST_DEBUG=*:5 gst-launch playbin2 uri=file://<path to file>

then we should be able to quickly identify the problem..

also, if you want to check if h/w video is being used, you can monitor
/proc/interupts and check if MAILBOX interrupts count increase
(alternatively you can use 'itop' for monitoring). there is 1
interrupt per frame decoded if everything works well.


>
> -w

Rob Clark

unread,
Nov 19, 2012, 1:50:08 PM11/19/12
to panda...@googlegroups.com
On Wed, Nov 14, 2012 at 9:49 PM, wubin <vvu...@gmail.com> wrote:
> I appreciate your time to check my logs. The only files I couldn't find is
> "/sys/debug/kernel/remoteproc/*/traces". I also found that someone has the
> similar issue (ducati is not loaded), but there is not further news for it.
>
> # dmesg (http://pastebin.com/Q7UK1WQP)
> # cat /var/log/Xorg.0.log (http://pastebin.com/8rPxsC2Z)
> # lsmod (http://pastebin.com/Vf34z5FZ)
> # dpkg -l (http://pastebin.com/npeKxHrj)
> # cat /sys/debug/kernel/remoteproc/*/traces (Not available)
> # gst-launch (http://pastebin.com/DCPqeW98)
>
> Besides, after installing the newest TI release PPA on new Ubuntu system,
> the kernel becomes very fragile. It either crashes during booting, or
> freezes anytime, especially when the CPU load is high. I need to reboot many
> times in other to start the system. Someone said that there is something
> wrong with CPU frequency, but his trick did not work on me. I will
> appreciate if you can also check the "kernel.oops.log" from the kernel
> error.
>
> # kernel.oops.log (http://pastebin.com/A38JNdvQ)
> # boot.script (http://pastebin.com/U7w1hT4u)

remove the vram= and two mem= in the bootargs, and then regenerate
boot.src (mkimage or flash-kernel)

BR,
-R

>
> Thanks.
> -w

Jayneil

unread,
Nov 19, 2012, 4:01:48 PM11/19/12
to panda...@googlegroups.com
Dear Wubin,

Since you have installed the TI ppa update, please change the bootargs in boot.script as shown below:

fatload mmc 0:1 0x80000000 uImage
fatload mmc 0:1 0x81600000 uInitrd
setenv bootargs ro elevator=noop console=ttyO2,115200n8 mem=1G@0x80000000 root=/dev/mmcblk0p2 fixrtc splash
bootm 0x80000000 0x81600000

Then re-generate the boot.scr file as pointed out by Rob.

Cheers,
Jayneil.

On Wednesday, November 14, 2012 9:49:44 PM UTC-6, wubin wrote:
I appreciate your time to check my logs. The only files I couldn't find is "/sys/debug/kernel/remoteproc/*/traces". I also found that someone has the similar issue (ducati is not loaded), but there is not further news for it.

# cat /var/log/Xorg.0.log (http://pastebin.com/8rPxsC2Z)
# cat /sys/debug/kernel/remoteproc/*/traces (Not available)

Besides, after installing the newest TI release PPA on new Ubuntu system, the kernel becomes very fragile. It either crashes during booting, or freezes anytime, especially when the CPU load is high. I need to reboot many times in other to start the system. Someone said that there is something wrong with CPU frequency, but his trick did not work on me. I will appreciate if you can also check the "kernel.oops.log" from the kernel error.

# kernel.oops.log (http://pastebin.com/A38JNdvQ)

Thanks.
-w


On Tuesday, November 13, 2012 2:54:20 PM UTC-5, ndec wrote:
On Tue, Nov 13, 2012 at 6:22 PM, wubin <vvu...@gmail.com> wrote:
> Hi all,
>
> I am trying to play 1080p h264 fully accelerated by the hardware decoder. I
> checked that it is using gstreamer framework, so I used totem player to test
> it. CPU usage is crazy high, and the video playback looks like a
> slideshow... it just does not work. Again, Ubuntu LEB, TI OMAP PPA, none of
> them could make it work. Besides, I would like to know if there is anyway to
> make the hardware decoder working on Youtube for html5 videos. Right now
> everything for me is just a slideshow.
>
> Omappedia says The storage is a class10-133x 16G SD card. I did read that
> omappedia says "Try moving the videos onto a USB flash drive and play
> them.", but this one should still be fast enough to read 1080p h264 videos.
> Any help would be appreciated.

we tend to maintain the TI PPA so that h/w accelerated video play
fatload mmc 0:1 0x80000000 uImage
fatload mmc 0:1 0x81600000 uInitrd
setenv bootargs ro elevator=noop console=ttyO2,115200n8 mem=1G@0x80000000 root=/dev/mmcblk0p2 fixrtc splash
bootm 0x80000000 0x81600000

wubin

unread,
Nov 20, 2012, 1:54:08 PM11/20/12
to panda...@googlegroups.com
Thanks rob and Jayneil,

Finally I am able to see the h264 video clips working with totem by hardware acceleration. I would suggest to add this part to the PPA installation manual as well.
Here I have several questions, I will appreciate if you would give some advise for them.

(1) I see some minor tearing from the video, especially when the motion in the video is moving fast. Is it fixable?
(2) I see some "leftover" image from the video if I try to resize the video playing window or switch among several windows. Is it fixable?
(3) Is there a way to make the chromium browser work with the ducati decoder? I understand chromium/chrome browser uses ffmpeg framework instead of gstreamer, but it would be great if there is any trick to make the hardware decoder work with ffmpeg.

Thanks.
-w
Reply all
Reply to author
Forward
0 new messages