【芒果派MangoPi MQ Quad】+芒果派初次折腾

电子说

1.2w人已加入

描述

收到芒果派之后我看了一下这块板子的基本情况

芯片芯片芯片

拿到手以后尝试着使用HDMI连接到自己的便携显示器上面,发现这块板子是MINI HDMI,我的便携显示器也是MINI HDMI,然后就买了一条双mini hdmi口的线,现在是能连接上了。

芯片

其实我是想装一个FFmpeg到这块板子上的,但是官方提供的镜像似乎默认并不能直接用OpenMax跑,可是看datasheet上面介绍的还是挺全的。

 

2.4.1. Video Decoding
• Supports video decoding up to 4K@60fps
• Supports multi-formats:
- H.265 Main10@L5.1 up to 4K@60fps, or 6K@30fps
- VP9 Profile 2 up to 4K@60fps
- AVS2 JiZhun 10bit Profile up to 4K@60fps
- H.264 BP/MP/HP@L4.2 up to 4K@30fps
- H.263 BP up to 1080p@60fps
- MPEG-4 SP/ASP@L5 up to 1080p@60fps
- MPEG-2 MP/HL up to 1080p@60fps
- MPEG-1 MP/HL up to 1080p@60fps
- Xvid up to 1080p@60fps
- Sorenson Spark up to 1080p@60fps
- VP8 up to 1080p@60fps
- AVS/AVS+ JiZhun Profile up to 1080p@60fps
- WMV9/VC1 SP/MP/AP up to 1080p@60
- JPEG HFIF file format up to 45MPPS

2.4.2. Video Encoding
• H.264 BP/MP/HP
• H.264 supports I/P frame, and only supports single reference frame
• MJPEG/JPEG baseline
• Maximum 16-megapixel(4096 x 4096) resolution for H.264 encoding
• H.264 encoding capability: 4K@25fps
• JPEG snapshot performance of 1080p@60fps independently
• Supports the constant bit rate(CBR)/variable bit rate(VBR) bit rate control mode, ranging from 256kbit/s to
100Mbit/s
• Encoding of eight regions of interest(ROIs)

 

看芯片是H616,是Allwinner的,那么他的Codec如果想要支持的,应该是可以考虑用 https://linux-sunxi.org/Sunxi-Cedrus 来支持。

但是配置sunxi-cedrus还是比较费劲的,所以可以先试试编译一个ffmpeg来感受一下。

芯片

只跑低分辨率的mpeg2的话问题不大,但是分辨率稍微高一些可能就不行了,其实主要还是得上H264的编码器,并且还是要用硬件编码器。

 

root@orangepizero2:/home/orangepi/build_ffmpeg# ./ffmpeg -hwaccels
ffmpeg version N-111376-g13ef5025e3 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 10 (Debian 10.2.1-6)
  configuration:
  libavutil      58. 14.100 / 58. 14.100
  libavcodec     60. 22.100 / 60. 22.100
  libavformat    60. 10.100 / 60. 10.100
  libavdevice    60.  2.101 / 60.  2.101
  libavfilter     9.  8.102 /  9.  8.102
  libswscale      7.  3.100 /  7.  3.100
  libswresample   4. 11.100 /  4. 11.100
Hardware acceleration methods:
vdpau

 

看上去硬件加速器只有vdpau可以支持。

 

root@orangepizero2:/home/orangepi/build_ffmpeg# ifconfig
enx00e04cb24f01: flags=4099< UP,BROADCAST,MULTICAST >  mtu 1500
        ether 00:e0:4c:b2:4f:01  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=4099< UP,BROADCAST,MULTICAST >  mtu 1500
        ether 7e:5e:e0:76:44:18  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 33

lo: flags=73< UP,LOOPBACK,RUNNING >  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10< host >
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 18  bytes 1148 (1.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 18  bytes 1148 (1.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163< UP,BROADCAST,RUNNING,MULTICAST >  mtu 1500
        inet 192.168.3.18  netmask 255.255.255.0  broadcast 192.168.3.255
        inet6 fe80::3031:1b37:2020:7f16  prefixlen 64  scopeid 0x20< link >
        ether 2c:d2:6b:44:0b:ee  txqueuelen 1000  (Ethernet)
        RX packets 151313  bytes 201176906 (191.8 MiB)
        RX errors 0  dropped 731  overruns 0  frame 0
        TX packets 89332  bytes 10280764 (9.8 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

 

开机第一件事肯定是希望能连上个网,然后用自己的高配电脑可以ssh登录到这块板子上,毕竟这块板子上跑界面还是比较慢的。

目前这块板子上的硬件视频编解码能力还有跑起来,allwinner的芯片好像硬件视频编解码器跑起来比较折腾,可能需要自己重新build一个镜像。这个过程比较漫长,我继续去build了。
 

  审核编辑:汤梓红
 
打开APP阅读更多精彩内容
声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉

全部0条评论

快来发表一下你的评论吧 !

×
20
完善资料,
赚取积分