Everything posted by robertoj
-
Orange Pi Zero 3 ili9486 TFT LCD
How is it going with the ili9486 LCD? the armbianEnv.txt only needs the user-overlay line with the dts you are using (without the dts extension)โฆ but seeing your progress, I am sure the armbianEnv.txt is perfect as it is now your problem might be the gpio numbers (1st and 2nd parameter in <&pio xxx xxx xxx>) and the polarity setting (3rd parameter) DO NOT ADD ANYTHING ELSE SPI RELATED
-
How to install armbian in h618?
๐๐ฝ do you use โmpv filename.mp4โ? And does it work all the time? Which window manager do you use? Do you use x11 or Wayland? updated: do you get scrambled video when you resize the mpv window? Try youtube-dl, to bypass the problems in the web browser
- OrangePi Zero LTS ili9341 TFT LCD (and later OrangePi Zero 3)
-
How to install armbian in h618?
I had success with NickA Armbian patches, and jockโs ffmpeg-v4l2request https://forum.armbian.com/topic/32449-repository-for-v4l2request-hardware-video-decoding-rockchip-allwinner/?do=findComment&comment=205855
-
Repository for v4l2request hardware video decoding (rockchip, allwinner)
The kernel fix in NickAโs Armbian, allows ffmpeg-v4l2 play 1080p with hardware acceleration, under X11 (openbox wm), with โmpv filename.mp4โ I git-cloned his repo, selected orangepizero3, changed nothing, kept all his repoโs patches, chose bookworm minimal, Linux edge 6.7.12 i installed lightdm and xorg, then jockโs package repo for ffmpeg-v4l2requedt, then installed mpv (official bookworm package). the 720p and 1080p videos played fine, with 5% cpu It is weird for me update: to play in a screen not being used by x11, like a LCD TFT, use ctrl-alt-f2 to switch the keyboard into the tty in the LCD Play any low res video with vlc, then quit it (I see that mpv can't play without this previous step, for me) Play with mpv --vo=drm --video-connector=2.SPI-1 yourvideo.mp4 many thanks to both!!
-
OrangePi Zero 2W TV-OUT
Maybe you can use devmem2 so you can manipulate registers from a userspace application, like some legendary developers did in the past I also worked updating the patches needed to bring TV out to the orange pi zero with newer kernels. Maybe it can be a reference. https://github.com/robertojguerra/orangepi-zero-full-setup/blob/main/README2.md https://forum.armbian.com/topic/6582-orange-pi-zero-h2h3-tv-out-on-mainline-working/ https://linux-sunxi.org/images/2/24/H616_User_Manual_V1.0_cleaned.pdf
- OrangePi Zero 2W TV-OUT
-
Orange Pi Zero 3
Excuse me if this has been answered already, but I can't turn on HDMI in my Orange Pi zero 3, when using a self-built armbian I get HDMI with a community image (from one of the armbian mirrors), and I have the 3 linux modules related to HDMI in the /lib/modules, in my new armbian Maybe I am missing a dts or dtbo?
- Repository for v4l2request hardware video decoding (rockchip, allwinner)
-
How to install armbian in h618?
Thank you Nick, If I git-clone your Armbian 24.11.0, and select orangepizero3, will your new patches be included also?
-
Repository for v4l2request hardware video decoding (rockchip, allwinner)
You are right jock I tried my bananapi m2 zero, playing a 240p H264 mp4 with the HDMI output. With mpv, the rendering is scaled full screen, at 3 fps and the cpu is 100% With mplayer, the 240p shows as 240p, 24fps (1/4 the height of my LCD) and the cpu is 25% with mplayer, a 360p video plays also, with 35% cpu 720p and 1080p videos are played very choppy with mpv and mplayer It turns out i was never using hardware acceleration in my H3 boards Next I will try with the orange pi zero 3... with kernel 6.6.31, where I could play in my 240p LCD, but in my HDMI LCD this time ...I can play 1080p video smoothly in the tty, but the cpu is at 100% in 1 core I finished compiling ffmpeg-v4l2request from https://github.com/Kwiboo/FFmpeg in my orangepi zero 3, under 6.10.9, but still could not play to my 240p LCD [can someone tell me how to activate HDMI in the orange pi zero 3, in an arbian OS which I built myself?]
-
How to install armbian in h618?
Hmm... maybe I was wrong in the suggestion of "sudo apt show ..."... At this moment, I don't really know how to check whether a package is installed or not. Please check that. Can you also edit your post, using the "Spoiler" (eye) button, to hide the long dmesg text. That's all I know... maybe try compiling ffmpeg within your running ARM set top box... see my starting ideas here: https://forum.armbian.com/topic/32449-repository-for-v4l2request-hardware-video-decoding-rockchip-allwinner/?do=findComment&comment=205614
- Repository for v4l2request hardware video decoding (rockchip, allwinner)
-
Orange Pi Zero 3 ili9486 TFT LCD
Regarding these lines: cs-gpios = <&pio 2 5 0>,<&pio 7 9 0>; /*PH5=CS0 for lcd, PH9=CS1 for touch*/ reset-gpios = <&pio 0 8 1>; /* PC15 */ dc-gpios = <&pio 0 5 0>; /* PC5*/ interrupts = <2 7 2>; /* high-to-low edge triggered */ pendown-gpio = <&pio 2 7 0>; Make sure that you make the comments match with the actual DTS code, for example PH5=<&pio 7 5 0>, because H=7 Also according to the gpio formula, C=2. Also insert some initial comment lines at the top, summarizing the pinout you discovered for the orange pi zero 3, to show your intermediate work You are very close. All those spi1.0, spi1.1 dmesg messages indicate that there's no conflict internally in the CPU, but probably the one or a few IOs are connected to the incorrect pin(s). Another thing to try is change "reset-gpios = <&pio 0 8 1>" to "reset-gpios = <&pio 0 8 0>" because sometimes different kernel modules handle the polarity in the opposite way than it is expected. Also try changing "compatible = "ilitek,ili9486";" to "compatible = "waveshare,rpi-lcd-35";" and look at the example in https://mjmwired.net/kernel/Documentation/devicetree/bindings/display/ilitek,ili9486.yaml to find the little differences in parameters. Keep googling this forum for ili9486, maybe someone did it already
- Repository for v4l2request hardware video decoding (rockchip, allwinner)
-
How to install armbian in h618?
Vitya... you should only have ffmpeg-v4l2request (ffmpeg with the v4l2-request patches), and NOT the Debian official ffmpeg (without the patches). And your "apt show ffmpeg" shows that you may have BOTH.
- OrangePi Zero 2W TV-OUT
-
Repository for v4l2request hardware video decoding (rockchip, allwinner)
If you start with the old image with linux 6.6.31 and: It will update everything except the kernel (remains in 6.6.31) And mpv, mplayer continue working with h264 hardware acceleration When trying the newest kernel version 6.10.9, it didn't work for me: mplayer didn't work either I will try compiling and installing ffmpeg from source...
-
How to install armbian in h618?
Hello People who are enjoying h264 acceleration, can you share the result of: $ uname -r $ mpv -V $ ffmpeg -V $ apt show mpv $ apt show ffmpeg (or ffmpeg-v4l2request) command line needed to start playing with mpv
-
Repository for v4l2request hardware video decoding (rockchip, allwinner)
Fortunately, I was able to upload this file: Armbian_community_24.8.0-trunk.6_Orangepizero3_bookworm_current_6.6.31_minimal.img.xz https://drive.google.com/file/d/1nlvUPLOdIz706EWWv4c2BzPQxkzilZHG/view?usp=drive_link If anyone has a similar file for the orange pi zero 2w, please share it too I found that mpv.deb remains the same version from armbian 24.8 to 24.11 (from may to october 2024)... and the only thing that got upgraded is linux 6.6.31 to 6.6.54 Freezing the kernel in 6.6.31 could be a good move too I also just finished compiling armbian with the latest kernel... I will try this next time I can.
-
OrangePi Zero LTS ili9341 TFT LCD (and later OrangePi Zero 3)
If anyone needs h264 acceleration in opiz3, it is possible quickly with a version of Armbian from mid 2024, as shown in this thread: https://forum.armbian.com/topic/32449-repository-for-v4l2request-hardware-video-decoding-rockchip-allwinner/?do=findComment&comment=205516 (in opi zero, h264 is already possible with official debian debs) There are a few suggestions to make it work in the latest Armbian... I am bumping this thread because I have limited time with my opiz3, but you may be able to do it (and share). More references of success: https://forum.armbian.com/topic/31848-cant-use-ffmpeg-hardware-accelration-v4l2-orange-pi-4-lts/?do=findComment&comment=175688 ^ Actually, if you see that link, you will see a way to compile your own Armbian image, with some linux patches that allow ffmpeg-v4l2request do its work.
-
Repository for v4l2request hardware video decoding (rockchip, allwinner)
I confirm that ffmpeg-v4l2request works for opiz3, with OS image Armbian_community_24.8.0-trunk.6_Orangepizero3_bookworm_current_6.6.31_minimal.img.xz I started with the freshly booted OS image, added my DTS for ili9341 SPI LCD (see other thread in community-allwinner), rebooted, and followed all the steps in the original post. The final steps to play an mp4 in tty: Also works with mplayer (more efficient) Next up, I try again with the latest armbian OS image Please ask what information I can get from my working setup, and see what's the roadblock in the latest armbian Update: I confirm that the ffmpeg-v4l2request package is not working for the latest armbian Armbian_community_24.11.0-trunk.351_Orangepizero3_bookworm_current_6.6.54_minimal mplayer does not work either I can only think of using apt to install an older mpv.deb (+dependencies), if starting from the newest Armbian OS... Or forcing apt to never upgrade the mpv.deb and related deb dependencies, if I start with the older Armbian OS As a temporary measure, only needed while ffpmeg gets the patches officially, and the Debian servers include that new version too, right? Reference: https://unix.stackexchange.com/questions/242014/how-to-install-the-previous-version-of-a-deb-package-and-pin-it Another thing to try is to compile an Armbian image (latest), with bleeding edge linux kernel, as I see success for other people in Linux 6.7 https://forum.armbian.com/topic/29794-how-to-install-armbian-in-h618/?do=findComment&comment=204697 Jock, if I want to build my own ffmpeg with v4l2-request, is this a good recommendation? "You also need to build with --enable-v4l2-request --enable-libudev" https://artemis.sh/2023/03/06/ffmpeg-v4l2-requests-4.4.3.html
- Orange Pi Zero 3 ili9486 TFT LCD
- Repository for v4l2request hardware video decoding (rockchip, allwinner)
-
Orange Pi Zero 3 ili9486 TFT LCD
I see that you didnt change any gpios. You must change them... what are the pins in the orange pi zero 3 that will control the lcd? (you must have the LCD schematic) If you try my original DTS, without having a screen like mine, do you get these 2 files? /dev/fb0 /dev/input/event0 According to this https://mjmwired.net/kernel/Documentation/devicetree/bindings/display/ilitek,ili9486.yaml You must use the line: compatible = "waveshare,rpi-lcd-35", "ilitek,ili9486";