Jump to content

Repository for v4l2request hardware video decoding (rockchip, allwinner)


Recommended Posts

On 7/23/2024 at 6:35 PM, alejor said:

Hi, I tried this with armbian bookworm and orange pi zero 3 worked flawlessly with h264 hwdec. Now... Armbian image are Ubuntu Noble 24.04, can you please create or recompile packages for that 24.04 distro? or give some instructions to create those packages? thank you!

That will take some time to set the whole setup; unfortunately it is not easy task to bring up a system which could be used easily to rebuild the packages, but will do in the future. Can't say when though.

Link to comment
Share on other sites

Hello all,

 

I tried the apt repo install instructions in the first post... but it seems that my armbian bookworm is still installing its own .deb package and not the one from the apt.undo.it repo

 

Is there an obvious step that I am missing?

 

What version of mpv should I have if I installed successfully?

 

Thank you in advance!!

 

(my target is orange pi zero 3)

 

P.S. I see that the debian repo (through my web browser) does not provide mpv.deb, but Ubuntu Jammy does... does this mean that the armbian-bookworm mpv.deb does not need the patches?

I also see that the available debs are 11 months old... perhaps if you could point to some instructions that work, we could do it ourselves and share the outcome.

Link to comment
Share on other sites

17 hours ago, robertoj said:

P.S. I see that the debian repo (through my web browser) does not provide mpv.deb, but Ubuntu Jammy does... does this mean that the armbian-bookworm mpv.deb does not need the patches?

Exacty, mpv in debian bookworm already has full support for drm-prime, so there is no need for a patched version of that

 

17 hours ago, robertoj said:

I also see that the available debs are 11 months old... perhaps if you could point to some instructions that work, we could do it ourselves and share the outcome.

the instructions that work are there, in the meantime it can be that mpv changed some default, actually I didn't check recently

Link to comment
Share on other sites

Quote

Hi, I tried this with armbian bookworm and orange pi zero 3 worked flawlessly with h264 hwdec.

I haven't been able to get it working, I also have the Orange Pi Zero 3 using the Debian 12 (Bookworm) [Build Date: Oct 14, 2024] image with the Minimal/IOT option.

I tried using mpv with the instructions at the beginning of the post on the Gnome and XFCE desktops, but both have the same negative result (sometimes the screen is black or shows a frame of the video, it can never be put into play and I can move through the time scroll to see other frames, but it is unusable).
 

The worst of all is that I do get the message "Using hardware decoding (drm)".
 

The only configurations I do after installing the image are:

sudo apt update && sudo apt upgrade -y

sudo apt-get install armbian-config mesa-utils chromium

# Install a Desktop
sudo armbian-config

# After rebooting and entering the desktop
sudo wget http://apt.undo.it:7241/apt.undo.it.asc -O /etc/apt/trusted.gpg.d/apt.undo.it.asc
echo "deb http://apt.undo.it:7241/debian bookworm main" | sudo tee /etc/apt/sources.list.d/apt.undo.it.list
sudo apt update
sudo apt install ffmpeg-v4l2request mpv
sudo mkdir -p /etc/mpv
echo -e "hwdec=drm\ndrm-drmprime-video-plane=primary\ndrm-draw-plane=overlay" | sudo tee /etc/mpv/mpv.conf

mpv video.mp4

 

This is the output on the XFCE desktop (but with the same negative result):

hiperdoo@orangepizero3:~/Downloads$ mpv --ao=pulse video.mp4
 (+) Video --vid=1 (*) (h264 1920x1080 60.000fps)
 (+) Audio --aid=1 (*) (aac 2ch 44100Hz)
File tags:
 Artist: LG Global
 Title: 2021 LG OLED l  Ink Art 4K HDR 60fps
Using hardware decoding (drm).
AO: [pulse] 44100Hz stereo 2ch float
VO: [gpu] 1920x1080 drm_prime[nv12]
AV: 00:00:00 / 00:00:45 (1%) A-V:  0.006 Dropped: 7


I would be very grateful if someone could enlighten me on what other steps are required.

Link to comment
Share on other sites

On 10/29/2024 at 3:42 PM, HiperDoo said:

I haven't been able to get it working, I also have the Orange Pi Zero 3 using the Debian 12 (Bookworm) [Build Date: Oct 14, 2024] image with the Minimal/IOT option.

I tried using mpv with the instructions at the beginning of the post on the Gnome and XFCE desktops, but both have the same negative result (sometimes the screen is black or shows a frame of the video, it can never be put into play and I can move through the time scroll to see other frames, but it is unusable).

The last reported success was with Debian Bookworm, in a comment from July 23... can you repeat the experiment with an OS image from before that date?

(I don't have access to my orange pi zero 3 for a few days)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines