PINE64
Hardware video codec - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: General Discussion on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=112)
+--- Thread: Hardware video codec (/showthread.php?tid=9045)

Pages: 1 2 3


RE: Hardware video codec - maxjrh - 02-10-2020

I am running Manjaro now, so I can't reproduce this right now.

The upstream ffmpeg and mpv don't support rkmpp. When you run `ffmpeg` it shows you the compile flags. If you don't see "--enable-rkmpp" then you have the upstream version.

The Netflix problem is unrelated, no browser can do hardware video decoding on the PBP (except ChromeOS)

I have a question for people running the mainline kernel: Have you had any success utilizing the hantro-vpu driver? v4l2-ctl shows that there is support for a JPEG encoder and a mpeg2 and vp8 decoder. I could use the JPEG encoder with gstreamer, but the decoder doesn't seem to work on either ffmpeg or gstreamer.


RE: Hardware video codec - vfr400racer - 02-10-2020

I downloaded the standard Debian image and put it onto a sd card and booted from there. The ffmpeg from the sd card behaves just the way you are describing.  I assume, the standard image contains a specifically built ffmpeg for the pbp.I'll ask on the 'standard os' thread, how to keep the standard os installation up to date without losing mrfixit2001's modifications.


RE: Hardware video codec - wrzomar - 02-12-2020

1. Does anyone have a full list of packages to be kept from updating?
2. Does anyone have mentioned packages from original default OS image (or files)?


RE: Hardware video codec - vfr400racer - 02-12-2020

(02-12-2020, 12:12 PM)wrzomar Wrote: 1. Does anyone have a full list of packages to be kept from updating?
2. Does anyone have mentioned packages from original default OS image (or files)?

On a fresh install of default debian:

Code:
rock@Debian-Desktop:~$ dpkg  --get-selections|grep -v install
ffmpeg                      hold
ffmpegthumbnailer               hold
rock@Debian-Desktop:~$

And have a look at /etc/apt/apt.d.conf. Kernel and firmware is kept from upgrading.

On my already upgraded system on emmc: when i call ffmpeg from the sd card, on which the fresh install is located,
ffmpeg complais about a missing library:


Code:
u1@pbp:/media/u1/e9e67d6e-9693-4f25-bbd6-ae24f7c9e5bb/usr/bin$ ./ffmpeg
./ffmpeg: error while loading shared libraries: libavdevice.so.58: cannot open shared object file: No such file or directory


I copied the library from the sd to the emmc. After that, ffmpeg complained about another lib. After copying a few, I gave up.


RE: Hardware video codec - wrzomar - 02-13-2020

I've followed instructions from:
https://forum.pine64.org/archive/index.php?thread-7112.html

but freshly built mpv has segfault every time. I'm thinking about reflashing emmc and starting fresh.


RE: Hardware video codec - xmixahlx - 02-13-2020

1. don't use aptitude
2. do use apt pinning


RE: Hardware video codec - wrzomar - 02-14-2020

I wasn't using aptitude. Does apt pinning protect from apt autoremove?


RE: Hardware video codec - regivanx - 03-15-2020

Hello! Any news to fix this problem?

If Manjaro has solved the problem, how do I transfer the fix to Debian?


RE: Hardware video codec - xmixahlx - 03-15-2020

manjaro solved this problem by using mainline linux and not relying on an easily breakable apt configuration.

mrfixit's approach is vulnerable to many issues and this is one of them. you probably need to copy all of the ffmpeg files from an updated default os.

one of the issues is that hwaccel in 4.4 is vastly different that mainline. honestly, mainline is still catching up, but will soon exceed.


RE: Hardware video codec - jiyong - 03-16-2020

Looks like there is not much point in sticking with the default Debian install.
Manjaro wil be the default, starting with the next batch (see March update).
https://www.pine64.org/2020/03/15/march-update-manjaro-on-pinebook-pro-pinephone-software/

Meanwhile I found some info on the ODroid forum.
Just in case Manjaro doesn't activate the hardware encoder.
https://forum.odroid.com/viewtopic.php?t=30470
https://github.com/rockchip-linux/gstreamer-rockchip