Jump to content

Dan MacDonald

Members
  • Posts

    26
  • Joined

  • Last visited

Everything posted by Dan MacDonald

  1. I never did get hw accelerated video decoding working under mpv on my T95 max (H6) so I'm wondering if I might have any more luck with this: https://github.com/aodzip/cedar Has anyone tried this driver? Does it work with mpv?
  2. What do your kernel arguments look like in /boot/extlinux/extlinux.conf.? You'll probably find the memory is limited to 2GB. I have got a T95 Max "4GB" RAM but the H6 is limited to 3 GB RAM so you can only use up to 3 GB max.
  3. How disappointing! I have just read on the NVIDIA forums that they don't plan to update the Nano versions of Jetpack beyond their 18.04 base so I was wondering if anyone had got the open source GPU driver working under Armbian. It seems very odd to me that it should support OGL 4.x yet have such poor performance, worse than the Mali GPU's with 1/10th (or less) of the power. I thought it would beat the Mali GPUs even at the lowest clock speed? It sounds like someone wrote this open source NVIDIA driver but then nobody actually used or tested it. NVIDIA weren't using it in Jetpack or their other Jetson image so how/why was it written?
  4. My test file is here: https://drive.google.com/file/d/14z1Gd8zXbJ2XWvULvmWXeqLVRcgUHo2p/view?usp=sharing
  5. First we need to work out the command I should be using to play a video. I've built ffplay but it seems ffplay doesn't natively support hwaccel. I'm not sure if Ubobrov got a video to play with ffmpeg as I don't think this a feature ffmpeg supports without using ffplay, maybe he only got decoding but not playback to work? I have got ffplay to output the first frame of my video to my display on my T95 max but no smooth playback yet. It seems you have to do the decoding in ffmpeg and pipe it to ffplay using a command like: ffmpeg -hwaccel drm -i test.mp4 -vcodec copy -acodec copy -f matroska - | ffplay -i - Ubobrov used -hwaccel drm but is that correct? If I run `ffmpeg -decoders | grep h264` I don't see a v4l2-request or a drm decoder. Should I? If I try using matroska or rawvideo as the file format, I get the error: Error writing trailer of pipe: Broken pipe If I use the same command but I use -f mp4 instead I get the error: mp4 @ 0xblah: muxer does not support non seekable output Here is the mediainfo for my test file: $ mediainfo VID_20210512_180639.mp4 General Complete name : VID_20210512_180639.mp4 Format : MPEG-4 Format profile : Base Media / Version 2 Codec ID : mp42 (isom/mp42) File size : 105 MiB Duration : 20 s 33 ms Overall bit rate : 44.0 Mb/s Encoded date : UTC 2021-05-12 17:07:00 Tagged date : UTC 2021-05-12 17:07:00 com.android.version : 10 Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : High@L4.1 Format settings : CABAC / 1 Ref Frames Format settings, CABAC : Yes Format settings, Reference frames : 1 frame Format settings, GOP : M=1, N=30 Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 20 s 33 ms Bit rate : 43.4 Mb/s Width : 3 840 pixels Height : 2 160 pixels Display aspect ratio : 16:9 Frame rate mode : Variable Frame rate : 30.000 FPS Minimum frame rate : 29.910 FPS Maximum frame rate : 30.090 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.175 Stream size : 104 MiB (99%) Title : VideoHandle Language : English Encoded date : UTC 2021-05-12 17:07:00 Tagged date : UTC 2021-05-12 17:07:00 Color range : Limited Color primaries : BT.601 PAL mdhd_Duration : 20033 Codec configuration box : avcC Audio ID : 2 Format : AAC LC Format/Info : Advanced Audio Codec Low Complexity Codec ID : mp4a-40-2 Duration : 20 s 23 ms Duration_FirstFrame : 12 ms Bit rate mode : Constant Bit rate : 192 kb/s Channel(s) : 2 channels Channel layout : L R Sampling rate : 48.0 kHz Frame rate : 46.875 FPS (1024 SPF) Compression mode : Lossy Stream size : 469 KiB (0%) Title : SoundHandle Language : English Encoded date : UTC 2021-05-12 17:07:00 Tagged date : UTC 2021-05-12 17:07:00
  6. I'm rebuilding ffmpeg from your repo with but with the --enable-ffplay configure option this time. However, after running configure I noticed these lines in the configure output: External libraries providing hardware acceleration: v4l2_m2m v4l2_request xvmc External libraries? Is there another library I need to install before building ffmpeg to get v4l2_request to work?
  7. Yes, I was using the wrong branch but this works to build it: git clone https://github.com/jernejsk/FFmpeg.git cd FFmpeg/ git checkout v4l2-request-hwaccel-4.3.1-new ./configure --enable-v4l2-request --enable-libudev --enable-libdrm The example playback command given doesn't work tho: ffmpeg -re -hwaccel drm -i Big_Buck_Bunny_720_10s_2MB.mp4 out.avi That command gives the errors: h264 @ 0x...: v4l2_request_probe_video_device: set controls failed, Invalid argument (22) h264 @ 0x...: Failed setup for format drm_prime: hwaccel initialization returned error lsmod says sunxi_cedrus is loaded. I get these errors running ffmpeg as root or a normal user. I'd have to build and use ffplay (or mpv) for video playback right? I'm sure ffmpeg used to include ffplay but it doesn't seem to any more. I want to see it working under ffmpeg/ffplay first before I attempt mpv.
  8. Hi jernej mpv is the only fully-featured video player for me. I'm not interested in any other video player but its nice to know gstreamer is progressing. I'm running balbes latest aw sid image with a 5.10.27 kernel which he says includes the libreelec cedrus patches already. I've tried to build your ffmpeg repo but: CC libavcodec/v4l2_request_h264.o In file included from libavcodec/v4l2_request_h264.c:22: libavcodec/h264-ctrls.h:64:8: error: redefinition of ‘struct v4l2_ctrl_h264_sps’ 64 | struct v4l2_ctrl_h264_sps { | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/linux/videodev2.h:65, from libavcodec/v4l2_request.h:22, from libavcodec/v4l2_request_h264.c:21: /usr/include/linux/v4l2-controls.h:1305:8: note: originally defined here 1305 | struct v4l2_ctrl_h264_sps { | ^~~~~~~~~~~~~~~~~~ In file included from libavcodec/v4l2_request_h264.c:22: libavcodec/h264-ctrls.h:94:8: error: redefinition of ‘struct v4l2_ctrl_h264_pps’ 94 | struct v4l2_ctrl_h264_pps { | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/linux/videodev2.h:65, from libavcodec/v4l2_request.h:22, from libavcodec/v4l2_request_h264.c:21: /usr/include/linux/v4l2-controls.h:1361:8: note: originally defined here 1361 | struct v4l2_ctrl_h264_pps { | ^~~~~~~~~~~~~~~~~~ In file included from libavcodec/v4l2_request_h264.c:22: libavcodec/h264-ctrls.h:108:8: error: redefinition of ‘struct v4l2_ctrl_h264_scaling_matrix’ 108 | struct v4l2_ctrl_h264_scaling_matrix { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/linux/videodev2.h:65, from libavcodec/v4l2_request.h:22, from libavcodec/v4l2_request_h264.c:21: /usr/include/linux/v4l2-controls.h:1393:8: note: originally defined here 1393 | struct v4l2_ctrl_h264_scaling_matrix { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from libavcodec/v4l2_request_h264.c:22: libavcodec/h264-ctrls.h:113:8: error: redefinition of ‘struct v4l2_h264_weight_factors’ 113 | struct v4l2_h264_weight_factors { | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/linux/videodev2.h:65, from libavcodec/v4l2_request.h:22, from libavcodec/v4l2_request_h264.c:21: /usr/include/linux/v4l2-controls.h:1398:8: note: originally defined here 1398 | struct v4l2_h264_weight_factors { | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from libavcodec/v4l2_request_h264.c:22: libavcodec/h264-ctrls.h:134: warning: "V4L2_H264_SLICE_FLAG_DIRECT_SPATIAL_MV_PRED" redefined 134 | #define V4L2_H264_SLICE_FLAG_DIRECT_SPATIAL_MV_PRED 0x04 | In file included from /usr/include/linux/videodev2.h:65, from libavcodec/v4l2_request.h:22, from libavcodec/v4l2_request_h264.c:21: /usr/include/linux/v4l2-controls.h:1435: note: this is the location of the previous definition 1435 | #define V4L2_H264_SLICE_FLAG_DIRECT_SPATIAL_MV_PRED 0x01 | In file included from libavcodec/v4l2_request_h264.c:22: libavcodec/h264-ctrls.h:135: warning: "V4L2_H264_SLICE_FLAG_SP_FOR_SWITCH" redefined 135 | #define V4L2_H264_SLICE_FLAG_SP_FOR_SWITCH 0x08 | In file included from /usr/include/linux/videodev2.h:65, from libavcodec/v4l2_request.h:22, from libavcodec/v4l2_request_h264.c:21: /usr/include/linux/v4l2-controls.h:1436: note: this is the location of the previous definition 1436 | #define V4L2_H264_SLICE_FLAG_SP_FOR_SWITCH 0x02 | In file included from libavcodec/v4l2_request_h264.c:22: libavcodec/h264-ctrls.h:137:8: error: redefinition of ‘struct v4l2_ctrl_h264_slice_params’ 137 | struct v4l2_ctrl_h264_slice_params { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/linux/videodev2.h:65, from libavcodec/v4l2_request.h:22, from libavcodec/v4l2_request_h264.c:21: /usr/include/linux/v4l2-controls.h:1496:8: note: originally defined here 1496 | struct v4l2_ctrl_h264_slice_params { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from libavcodec/v4l2_request_h264.c:22: libavcodec/h264-ctrls.h:193:8: error: redefinition of ‘struct v4l2_h264_dpb_entry’ 193 | struct v4l2_h264_dpb_entry { | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/linux/videodev2.h:65, from libavcodec/v4l2_request.h:22, from libavcodec/v4l2_request_h264.c:21: /usr/include/linux/v4l2-controls.h:1541:8: note: originally defined here 1541 | struct v4l2_h264_dpb_entry { | ^~~~~~~~~~~~~~~~~~~ In file included from libavcodec/v4l2_request_h264.c:22: libavcodec/h264-ctrls.h:205:8: error: redefinition of ‘struct v4l2_ctrl_h264_decode_params’ 205 | struct v4l2_ctrl_h264_decode_params { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/linux/videodev2.h:65, from libavcodec/v4l2_request.h:22, from libavcodec/v4l2_request_h264.c:21: /usr/include/linux/v4l2-controls.h:1578:8: note: originally defined here 1578 | struct v4l2_ctrl_h264_decode_params { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [ffbuild/common.mak:60: libavcodec/v4l2_request_h264.o] Error 1
  9. Third time unlucky, I finally tried applying it to the 'correct' version: ~/src/FFmpeg-4.0.4-Leia-18.4$ patch -p 1 < ffmpeg-001-v4l2-request.patch patching file libavutil/buffer.c Hunk #1 succeeded at 272 (offset -1 lines). patching file libavutil/buffer.h Hunk #1 succeeded at 266 (offset -1 lines). patching file configure Hunk #1 succeeded at 264 with fuzz 2 (offset -10 lines). Hunk #2 succeeded at 325 (offset -18 lines). Hunk #3 succeeded at 1734 (offset -75 lines). Hunk #4 FAILED at 1864. Hunk #5 FAILED at 2906. Hunk #6 succeeded at 6066 with fuzz 1 (offset -313 lines). Hunk #7 FAILED at 6479. Hunk #8 FAILED at 6560. 4 out of 8 hunks FAILED -- saving rejects to file configure.rej patching file libavcodec/Makefile Hunk #1 succeeded at 143 (offset -10 lines). can't find file to patch at input line 157 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/libavcodec/hwconfig.h b/libavcodec/hwconfig.h |index f421dc909f44..ee78d8ab8e89 100644 |--- a/libavcodec/hwconfig.h |+++ b/libavcodec/hwconfig.h -------------------------- File to patch:
  10. I can answer a couple of my questions after having had a quick look at this. v4l2-request hasn't been merged into the latest ffmpeg stable release, the Debian sid package or the git repo yet so it is still required to patch and build ffmpeg to get v4l2-request but unfortunately I've not been unable to get the ffmpeg v4l2-request patch to cleanly apply to ffmpeg git or 4.0.6, which is the nearest release I can find online to the 4.0.4 that Ubobrov says he got to work. Does anyone know where I can get a ffmpeg 4.0.4 source tarball? Otherwise, checking out a git commit from December 2018 might get the patch to fully apply? EDIT It's past my bedtime as I can't even do simple searches https://ffmpeg.org/releases/ffmpeg-4.0.4.tar.gz EDIT 2 Nope! The patch doesn't cleanly apply to 4.0.4 either :/
  11. Hi Ubobrov You seem to be the expert on using the Cedrus decoder under Armbian so I've got a few questions that I'm hoping you would be kind enough to answer: Have you tried 4K@30fps h264 playback using cedrus/v4l2-request with mpv? Have you tried the most recent 5.10 Libreelec AW kernel patches? I'm hoping Balbes can include these in the Armbian AW kernel as standard. Have you also got an Allwinner H6 board? Your guide should also work for H6 devices. I've got a T95 Max. I noticed in your guide to building ffmpeg you disable vaapi and vdpau. Why? Was that just to save build time or do you have another reason? It may no longer be required to rebuild ffmpeg, maybe v4l2-request is enabled in the regular deb now? It looks like libvdpau-sunxi isn't required and it hasn't been updated in years so I presume its dead.
  12. Hi Balbes150 I would like to use the cedrus hw video decoder to play 4K h264 videos with mpv on my T95 Max. Before I head down that road, does your H6 kernel already include these patches for Linux 5.10: https://github.com/LibreELEC/LibreELEC.tv/tree/master/projects/Allwinner/patches/linux jernej and ubobrov say they are required to get cedrus video decoding working. All the patches with 'media' in the name and patch 31 for 10bit HEVC. Maybe we could package a video decoding kernel if you don't want to include these in the main kernel? Thanks
  13. This is when trying to play a Sony demo video that plays OK under Kodi on my Rock 64. Without sudo gives me a green screen, no video whilst using sudo gives me a few green lines then a black screen with no video. dan@rock64:~$ mpv --gpu-context=drm Sony\ Aquarium\ 4K\ Demo.mp4 LIBGL: Initialising gl4es LIBGL: v1.1.5 built on Dec 22 2020 23:27:36 LIBGL: Using GLES 2.0 backend LIBGL: loaded: libGLESv2.so LIBGL: loaded: libEGL.so LIBGL: loaded: libgbm.so LIBGL: loaded: libdrm.so.2 LIBGL: Using GLES 2.0 backend LIBGL: Error while gathering supported extension (eglInitialize: EGL_BAD_ALLOC), default to none LIBGL: Targeting OpenGL 2.1 LIBGL: WARNING, No Limited or Full NPOT support in hardware, Forcing NPOT have no effect! LIBGL: Not trying to batch small subsequent glDrawXXXX LIBGL: try to use VBO LIBGL: Force texture for Attachment color0 on FBO LIBGL: Hack to trigger a SwapBuffers when a Full Framebuffer Blit on default FBO is done LIBGL: glX Will try to recycle EGL Surface LIBGL: Current folder is:/home/dan (+) Video --vid=1 (*) (hevc 3840x2160 59.940fps) (+) Audio --aid=1 --alang=eng (*) (aac 2ch 48000Hz) [vo/gpu] VT_GETMODE failed: Inappropriate ioctl for device [vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will be unavailable. [vo/gpu/opengl] Failed to initialize EGL. [vo/gpu] Failed to setup EGL. Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory [vo/vdpau] Error when calling vdp_device_create_x11: 1 [vo/xv] No Xvideo support found. [vaapi] Failed to initialize VAAPI: unknown libva error [vo/x11] Warning: this legacy VO has bad performance. Consider fixing your graphics drivers, or not forcing the x11 VO. mpi: mpp version: 11d98147 author: JMCC Import changes from fork Kwiboo/mpp, branch libreelec-hdr, and version bump mpp_device: mpp_device_init failed to open device /dev/rkvdec, errno 13, error msg: Permission denied mpp_rt: NOT found ion allocator mpp_rt: found drm allocator mpp: deprecated block control, use timeout control instead mpp: deprecated block control, use timeout control instead H265D_PARSER: No start code is found. H265D_PARSER: mpp_hevc_decode_nal_sei error ret = -1006 mpp_device: mpp_device_send_reg ioctl VPU_IOC_SET_REG failed ret -1 errno 9 Bad file descriptor H265HAL: RK_HEVC_DEC: ERROR: mpp_device_send_reg Failed!!! mpp_device: mpp_device_wait_reg ioctl VPU_IOC_GET_REG failed ret -1 errno 9 Bad file descriptor Using hardware decoding (rkmpp). [autoconvert] HW-downloading from drm_prime mpp_device: mpp_device_send_reg ioctl VPU_IOC_SET_REG failed ret -1 errno 9 Bad file descriptor H265HAL: RK_HEVC_DEC: ERROR: mpp_device_send_reg Failed!!! mpp_device: mpp_device_wait_reg ioctl VPU_IOC_GET_REG failed ret -1 errno 9 Bad file descriptor mpp_device: mpp_device_send_reg ioctl VPU_IOC_SET_REG failed ret -1 errno 9 Bad file descriptor H265HAL: RK_HEVC_DEC: ERROR: mpp_device_send_reg Failed!!! mpp_device: mpp_device_wait_reg ioctl VPU_IOC_GET_REG failed ret -1 errno 9 Bad file descriptor mpp_device: mpp_device_send_reg ioctl VPU_IOC_SET_REG failed ret -1 errno 9 Bad file descriptor H265HAL: RK_HEVC_DEC: ERROR: mpp_device_send_reg Failed!!! mpp_device: mpp_device_wait_reg ioctl VPU_IOC_GET_REG failed ret -1 errno 9 Bad file descriptor mpp_device: mpp_device_send_reg ioctl VPU_IOC_SET_REG failed ret -1 errno 9 Bad file descriptor H265HAL: RK_HEVC_DEC: ERROR: mpp_device_send_reg Failed!!! mpp_device: mpp_device_wait_reg ioctl VPU_IOC_GET_REG failed ret -1 errno 9 Bad file descriptor AO: [pulse] 48000Hz stereo 2ch float mpp_device: mpp_device_send_reg ioctl VPU_IOC_SET_REG failed ret -1 errno 9 Bad file descriptor H265HAL: RK_HEVC_DEC: ERROR: mpp_device_send_reg Failed!!! mpp_device: mpp_device_wait_reg ioctl VPU_IOC_GET_REG failed ret -1 errno 9 Bad file descriptor mpp_device: mpp_device_send_reg ioctl VPU_IOC_SET_REG failed ret -1 errno 9 Bad file descriptor H265HAL: RK_HEVC_DEC: ERROR: mpp_device_send_reg Failed!!! mpp_device: mpp_device_wait_reg ioctl VPU_IOC_GET_REG failed ret -1 errno 9 Bad file descriptor mpp_device: mpp_device_send_reg ioctl VPU_IOC_SET_REG failed ret -1 errno 9 Bad file descriptor H265HAL: RK_HEVC_DEC: ERROR: mpp_device_send_reg Failed!!! mpp_device: mpp_device_wait_reg ioctl VPU_IOC_GET_REG failed ret -1 errno 9 Bad file descriptor [ao/pulse] pa_stream_cork() failed: Connection terminated [ao/pulse] pa_stream_flush() failed: Connection terminated VO: [x11] 3840x2160 nv12 mpp_device: mpp_device_deinit invalid negtive file handle, Exiting... (Quit) LIBGL: Shuting down dan@rock64:~$ sudo mpv --gpu-context=drm Sony\ Aquarium\ 4K\ Demo.mp4 [sudo] password for dan: LIBGL: Initialising gl4es LIBGL: v1.1.5 built on Dec 22 2020 23:27:36 LIBGL: Using GLES 2.0 backend LIBGL: loaded: libGLESv2.so LIBGL: loaded: libEGL.so LIBGL: loaded: libgbm.so LIBGL: loaded: libdrm.so.2 LIBGL: Using GLES 2.0 backend LIBGL: GBM Surfaces supported LIBGL: Hardware Full NPOT detected and used LIBGL: Extension GL_EXT_blend_minmax detected and used LIBGL: FBO are in core, and so used LIBGL: PointSprite are in core, and so used LIBGL: CubeMap are in core, and so used LIBGL: BlendColor is in core, and so used LIBGL: Blend Substract is in core, and so used LIBGL: Blend Function and Equation Separation is in core, and so used LIBGL: Texture Mirrored Repeat is in core, and so used LIBGL: Extension GL_OES_mapbuffer detected LIBGL: Extension GL_OES_packed_depth_stencil detected and used LIBGL: Extension GL_OES_depth24 detected and used LIBGL: Extension GL_OES_rgb8_rgba8 detected and used LIBGL: Extension GL_EXT_texture_format_BGRA8888 detected and used LIBGL: Extension GL_OES_depth_texture detected and used LIBGL: Extension GL_EXT_shader_texture_lod detected and used LIBGL: Max vertex attrib: 16 LIBGL: Extension GL_OES_standard_derivatives detected and used LIBGL: Max texture size: 4096 LIBGL: Max Varying Vector: 12 LIBGL: Texture Units: 8/8 (hardware: 8), Max lights: 8, Max planes: 6 LIBGL: Max Color Attachments: 1 / Draw buffers: 1 LIBGL: Hardware vendor is ARM LIBGL: EGLImage from Pixmap supported LIBGL: EGLImage to Texture2D supported LIBGL: EGLImage to RenderBuffer supported LIBGL: Targeting OpenGL 2.1 LIBGL: NPOT texture handled in hardware LIBGL: Not trying to batch small subsequent glDrawXXXX LIBGL: try to use VBO LIBGL: glXMakeCurrent FBO workaround enabled LIBGL: FBO workaround for using binded texture enabled LIBGL: Force texture for Attachment color0 on FBO LIBGL: Hack to trigger a SwapBuffers when a Full Framebuffer Blit on default FBO is done LIBGL: glX Will try to recycle EGL Surface LIBGL: Current folder is:/home/dan (+) Video --vid=1 (*) (hevc 3840x2160 59.940fps) (+) Audio --aid=1 --alang=eng (*) (aac 2ch 48000Hz) [vo/gpu] VT_GETMODE failed: Inappropriate ioctl for device [vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will be unavailable. [vo/gpu/opengl] Could not choose EGLConfig for GLES 3.x! mpi: mpp version: 11d98147 author: JMCC Import changes from fork Kwiboo/mpp, branch libreelec-hdr, and version bump mpp_rt: NOT found ion allocator mpp_rt: found drm allocator mpp: deprecated block control, use timeout control instead mpp: deprecated block control, use timeout control instead H265D_PARSER: No start code is found. H265D_PARSER: mpp_hevc_decode_nal_sei error ret = -1006 Using hardware decoding (rkmpp). AO: [pulse] 48000Hz stereo 2ch float VO: [gpu] 3840x2160 drm_prime[nv12] [vo/gpu] Using HW-overlay mode. No GL filtering is performed on the video! [ao/pulse] pa_stream_cork() failed: Connection terminated [ao/pulse] pa_stream_flush() failed: Connection terminated Exiting... (Quit) LIBGL: Shuting down
  14. I have been successful in playing a couple of 4K videos using kodi but I have not been able to get gstreamer (gst-play-1.0) nor mpv to work with rkmpp.
  15. Have you managed to play a UHD or 4K video with mpv on a Rockchip board? If so, what mpv options did you use? It wouldn't matter if Kodi or gstreamer worked as they are independent from mpv, unlike say ffmpeg or celluloid.
  16. I am only interested in mpv. mpv offers several options not present in other players. I am an mpv supremacist of sorts.
  17. Has anyone successfully played a 4K video on a RK3328 (eg a Rock64) using mpv and rkmpp? I've been trying this build of mpv on my 4 GB Rock64 running buster legacy try to get it to play a 4K h264 but I've not had one play properly yet. What is the full mpv command to get fullscreen, 4K h264 playback to work with rkmpp, if possible? I've seen commands such as this suggested but it doesn't work for me: mpv --vo=gpu --gpu-api=opengl --gpu-context=drm --gpu-hwdec-interop=drmprime-drm --hwdec=rkmpp video.mkv I've tried various combos of those options. With all the videos I've tried, I either see the first frame of the video then nothing else (I just have to quit mpv), I just get a black screen or it crashes.
  18. I’ve added a second script, CH340-interactive.py, to enable you to manually control your fan.
  19. I own a few Android TV boxes that have poor thermal designs that are prone to overheating when under sustained load. This can either cause your device to significantly slow down or shut down entirely. This can be fixed by cutting a hole in the bottom on your TV box above the SoC and sticking a small USB fan on it. In my case I am using a AC Infinity 40mm x 20mm USB Fan that cost me £10. CH340-fan-control is a python script to only activate my TV boxes USB fan when required by using a USB relay module. I'd expect somebody (or several somebodies) have already wrote a similar script for the same device but I failed to find it so here is my effort at fixing this common TV box issue. Hopefully someone else will find it useful. https://github.com/danboid/CH340-fan-control
  20. Hi lgranie! I'm trying to get mpv to work w/ meson vpu acceleration under Wayland on my X96 Air Q1000 (S905X3) running Manjaro ARM unstable. Have you had any success in getting 4K h264 videos to play smoothly on a 4K display under KDE or GNOME wayland? Have you only got meson decoding to work with mpv under Weston? Have you tried recent versions of KDE or GNOME with this? I'm using your mpv settings but I've not been able to get any videos to play smoothly yet. I should try some 1080p videos too to see if its just 4K vids that are the problem.
  21. Are the build scripts for building H6 Armbian images available anywhere or is there any documentation for this? I've just had a quick look at building Armbian and looked through the list of boards but I don't see anything that approximates an AW H6 TV box. There seems to be a general target for AW A20 boards and I can see a few OrangePi H6 boards but no tanex-tx6 / general purpose AW H6 TV box or whatever.
  22. Hi SteeMan I had already read that FAQ before my first post but I hadn't seen the second topic for the H6 specific builds so thanks for pointing that out!
  23. Do your latest images use this patch to enable the emmc for the tanix-tx6 dtb? It's not been mainlined yet: https://github.com/LibreELEC/LibreELEC.tv/blob/master/projects/Allwinner/devices/H6/patches/linux/0008-arm64-dts-allwinner-h6-tanix-tx6-enable-emmc.patch EDIT As someone who prefers to use the MATE desktop (mainly because of its more mature HiDPI support compared to XFCE) the Armbian_20.10_Arm-64_bullseye_current_5.9.0_desktop.img image currently works best for me as I can easily get MATE installed with the panfrost driver. Last night I got the IR receiver working under Armbian but not with the remote included with the T95 Max, using another remote control. I have not been able to get the included remote to work under neither Android nor Armbian.
  24. Hi balbes150 First, apologies for bombarding you with questions in this post but as you know this forum limits new posters to one post per day and I've amassed a lot of questions of the last few days. Thanks v.much for working on this very cool distro! I have tried various versions of your latest H6 images (such as Armbian_21.02.0-trunk_Aw-h6-tv_hirsute_current_5.10.9_xfce_desktop.img and Armbian_21.02.0-trunk_Aw-h6-tv_focal_current_5.10.9.img) but they all fail to boot on my T95 Max with a kernel panic / null pointer deref when it comes to running /init: https://photos.app.goo.gl/TUxc1VUtjpG2EKzw7 Note that I can successfully boot the older generic arm64 image ( Armbian_20.10_Arm-64_focal_current_5.9.0_desktop.img ) and I can also boot the previous H6 images such as Armbian_20.07_Aw-h6-tv_focal_current_5.7.7.img on this T95 Max. The main feature that I'm saying I'm having probs with under the images that I can get to boot is with HDMI hot plug detection. I get an image via HDMI when I boot up but if I disconnect and reconnect HDMI I don't get a picture until I power cycle. The newest kernel I've been able to boot is 5.9 so hopefully HDMI is fixed in newer kernels. Is anyone else experiencing this issue? I am unable to install the mate desktop (sudo apt install mate-desktop-environment) under any of the ubuntu images due to a package conflict. Under the focal images, the error reports ubuntu-mate-default-settings_20.04.3_arm64.deb attempts to overwrite the file /usr/lib/chromium-browser/master_preferences which is contained within linux-focal-root-current-arm-64. To me this seems like a packaging error as chromium prefs shouldn't be included in the non-desktop images, chromium being an X app. I have successfully installed MATE under the Debian buster image but I'd prefer to use Ubuntu. I am hoping to get mpv working with hardware video acceleration but this requires a few out of tree patches to the kernel, which I doubt you will have applied to your kernel, but maybe I'm wrong? I'm told these patches only work with Linux 5.10.x: https://github.com/LibreELEC/LibreELEC.tv/tree/master/projects/Allwinner/patches/linux I'm told we need all the patches that have media in their name plus patch 31. ffmpeg 4.3.2 requires this patch: https://github.com/LibreELEC/LibreELEC.tv/blob/master/packages/multimedia/ffmpeg/patches/v4l2-request/ffmpeg-001-v4l2-request.patch and then mpv needs this patch: https://github.com/Kwiboo/mpv/commit/91f2b090eef12f48cf1d9e9157e5eefe6a60be6a I'll be able to package ffmpeg and mpv, if I can get them to build. I've not tried applying any of these patches yet nor rebuilding a H6 kernel. Note that mpv will only work with GPU accelerated decoding with these patches when run from the framebuffer console, not from within X unfortnately but I can work with that. I'm going to create a simple dialog-based TUI for using mpv if we get it working to make browsing for videos easier. I opened my T95 Max and took this pic. Is it using NAND or eMMC? https://photos.app.goo.gl/TDasK9Li84uScLtUA In another thread I was asking about fan recommendations as I thought it was overheating. It wasn't but it would've been thermal throttling. I have ordered an adjustable USB fan for about £10 that should help with that. I think that's about it for tonight! Thanks!
  25. I recently got a 2 GB RAM / 16 GB T95 Max TV box. I have been playing with the Armbian images from: https://forum.armbian.com/topic/12162-single-armbian-image-for-rk-aml-aw-aarch64-armv8 Are these the best / most up-to-date pre-built Armbian images for my box? I noticed that thread has been closed. I am aware this box is not officially supported by the project. The first issue I have encountered, and I presume this could also well be a general bug in Armbian although I have not confirmed by trying it on my supported BananaPi M1 yet, is that I am unable to install the mate desktop under either of the focal images due to a package conflict. ubuntu-mate-default-settings_20.04.3_arm64.deb attempts to overwrite the file /usr/lib/chromium-browser/master_preferences which is contained within linux-focal-root-current-arm-64. To me this seems like a packaging error as chromium prefs shouldn't be included in the non-desktop images, chromium being an X app. I have successfully installed MATE under the Debian buster image but I get the impression that the panfrost X driver isn't included in the buster mesa packages, right? Hence, I really want to be running focal to get panfrost without rebuilding mesa etc. With both the buster and focal images, if I disconnect then reconnect the HDMI the picture does not return on my display without power cycling the box. Is this a known issue with running Armbian on H6 boards? I've have tried to rebuild ffmpeg on my T95 but it only gets so far before it overheats. Can anyone recommend a good USB powered fan or cooler? If I run 'lsblk' it only shows my sd card, not the eMMC. Is it not possible to install Linux onto or to use the eMMC under Armbian on the T95 Max? Finally, I have had to use the Allwinner Phoenix USB tool under Windows to update my boxs Android. Is there not a Linux tool to reflash Allwinner H6 boxes? The (very poor) manual that came with my box claims you should be able to reflash by sticking the image on an sd card and holding the AV button down but I had no luck with that. Its OT for this forum but I failed to get the included remote to work under Android, even after updating to the latest official firmware that I could find online although I didn't find the official page for the T95 Max, if there is one? Thanks for your help!
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines