Linux hardware video encoding on Amlogic A311D2 processor

amlogic a311d2 h265 hardware video encoding sample

I’ve spent a bit more time with Ubuntu 22.04 on Khadas VIM4 Amogic A311D2 SBC, and while the performance is generally good features like 3D graphics acceleration and hardware video decoding are missing. But I was pleased to see a Linux hardware video encoding section in the Wiki, as it’s not something we often see supported early on. So I’ve given it a try… First, we need to make a video in NV12 pixel format that’s commonly outputted from cameras. I downloaded a 45-second 1080p H.264 sample video from Linaro, and converted it with ffmpeg:

I did this on my laptop. As a raw video, it’s pretty big with 3.3GB of storage used for a 45-second video:

Now let’s try to encode the video to H.264 on Khadas VIM4 board using aml_enc_test hardware video encoding sample:

The output explains the parameters used. There are some error messages, […]

Trying out Edge Impulse machine learning platform on XIAO BLE Sense board

double-sided sticky tape boards

I had seen the Edge Impulse development platform for machine learning on edge devices being used by several boards, but I hadn’t had an opportunity to try it out so far. So when Seeed Studio asked me whether I’d be interested to test the nRF52840-powered XIAO BLE Sense board, I thought it might be a good idea to review it with Edge Impulse as I had seen a motion/gesture recognition demo on the board. It was quite a challenge as it took me four months to complete the review from the time Seeed Studio first contacted me, mostly due to poor communications from DHL causing the first boards to go to customs’ heaven, then wasting time with some of the worse instructions I had seen in a long time (now fixed), and other reviews getting in the way. But I finally managed to get it working (sort of), so let’s […]

Getting started with Maker Nano RP2040 using CircuitPython: Blinky, RGB LED, and Piezo Buzzer

Maker Nano RP2040 circuitpython guide

CNXSoft: This getting started guide was initially posted in Thai language by Suthinee Kerdkaew, and I’ve just translated her work into English with some minor edits. As discussed in an earlier article, Maker Nano RP2040 is a board following the Arduino Nano form factor, but with a more powerful Raspberry Pi RP2040 microcontroller. The board also comes with plenty of LEDs, as well as two RGB LEDs, and a piezo buzzer for audio output. Mr. Jean-Luc Aufranc has just given me a Maker Nano RP2040 board received from Cytron for review. I’ve never used a board before, so it’s my first experience, and in this article, I’ll try to program Maker Nano RP2040 with CircuitPython with three demos: a blinky sample, changing the color of the RGB LEDs, and playing a melody through the piezo buzzer. Let’s see if I can do it. Let’s get started. I first downloaded the […]

Fixing performance issues with Realtek RTL8156B 2.5GbE USB dongle in Ubuntu

cdc_ncm vs r8152 drivers ubuntu

A few days ago, I reviewed a USB 3.0 to 2.5 Gbps Ethernet adapter based on Realtek RTL8156B chip in Ubuntu 20.04, and let’s say the reliability and performance were underwhelming. I got some recommendations like changing cables, the MTU size, etc… Playing around with cables did no help, but one comment mentioned the cdc_ncm driver could be the issue, followed by another saying that updating to Linux kernel 5.14 should install the correct r8152 driver… So I just did that:

This upgraded Linux 5.13 (shipped with Ubuntu 20.04 + HWE) to Linux 5.14, but still no luck as the system kept using the cdc_ncm driver with a half-duplex link:

But then I thought I may have to use udev rules to prevent loading the cdc_ncm driver, and there’s indeed 50-usb-realtek-net.rules in r8152 driver to do just that. So I copied the file in /etc/udev/rules.d/ folder. Since I […]

IoT device monitoring as a product reliability improvement tool

IoT Device Monitoring with Torizon Platform

CNXSoft: This is a guest post by Renato Kiss, Product Manager – Software at Toradex, explaining how IoT device monitoring can be used with open-source software tools like Fluent Bit to improve product reliability, using temperature monitoring as an example. It is impossible to dissociate connected devices from modern life. They are present in homes, offices, industries – basically, in every business, connected devices play vital roles. In a market estimated at 24.1 billion devices and with a revenue of more than USD 1.5 trillion by 2030, IoT will grow based on both consumer and business applications. Hardware will account for about one-third of this value with the majority being distributed in services, including the connectivity for the system. As part of this growth, more services will be added to IoT business and some specialists estimate the economic potential, including IoT products and services, can unlock at least USD 5.5 […]

Building a NanoPi M4V2 based All-in-One Linux PC running Armbian (Ubuntu/Debian)

Armbian Ubuntu All-in-One PC

At the end of my review of “RPI All-in-One” PC with Raspberry Pi 4, I noted the system also appeared to be compatible with NanoPi M4V2 single board computer. I’ve now tried it out, and assembling the board inside the 10.1-inch display is even easier than I initially thought. That means I now have a NanoPi M4V2 All-in-One PC running Ubuntu Hirsute or Debian Buster with XFCE desktop environment from Armbian, and most features work including the display and wireless connectivity, but I still have an issue with the touchscreen function. Here are the steps I followed initially: Download Armbian Buster XFCE image from Armbian and flash it to a microSD card with tools like USBimager. Insert the microSD card in the board Install the USB Type-C and HDMI-A adapters in the display. Insert the USB Type-C and HDMI port of the NanoPi M4V2 SBC into the adapters Install the […]

How to repair lost data in .ost and .pst files in Microsoft Outlook 365 (Sponsored)

Microsoft Outlook Repair Tool

Any software, even the most reliable, can at times encounter certain errors that prevent it from functioning, and Microsoft Outlook is no exception. Despite the fact that this program is extremely reliable, in certain situations, users may indeed encounter errors that require proactive action. In most cases, these errors are related to the storage of personal information in OST and PST files. These files are necessary for the stable operation of the application since they store part of the user data. In the event that these files are damaged, then further work with the program becomes impossible, and it will complain about errors. In this article, we will take a closer look at the basic recovery methods. Note that not only standard approaches to solving the problem will be considered, but also various additional tools. Recovery Toolbox for Outlook is an effective tool for recovering errors from Outlook. The program […]

Blink an LED on ESP32 board with Tuya Link SDK

Tuya-ledapp-Featured-Image

Tuya is an All-in-one IoT Platform that enables the user to build smart IoT solutions by connecting devices efficiently, securely, and reliably. This is a getting started article to set up the Tuya platform with the Espressif’s ESP32 boards via tuya link SDK. Further, we use it to control an LED through an Android device. When the switch in the Tuya Smart App is turned ON, the LED connected to the ESP32 board glows and vice versa. Prerequisites Hardware: ESP32 board LED with suitable ballast resistor Breadboard, micro-USB cable, and connecting wires Software: Tuya Account: Tuya IoT Platform (Web) Tuya Account: Tuya Smart Application (Android) Python 3.x Arduino IDE GitHub Link: https://github.com/JayeshRajam/Tuya-ledapp.git Hardware Connections for Tuya Link SDK The ESP32 board is placed on a breadboard. The positive terminal of the LED is connected to digital pin 5 of the ESP32 board and the negative terminal is connected to the […]

Exit mobile version