p5.js video playback guide

Introduction to this article When I first came into contact with p5.js, I thought it was just an art-oriented canvas library. I didn’t expect that it also supports the playback of video files and video streams. This article briefly talks about how to use P5.js to play videos. Play video file In addition to using […]

05.JavaScript (anti-shake throttling, video playback and positioning of the last position)

Anti-shake throttling Anti-shake (debounce) The so-called anti-shake means that the function can only be executed once within n seconds after the event is triggered. If the event is triggered again within n seconds, the function execution time will be recalculated. Throttle The so-called throttling means that events are triggered continuously but the function is only […]

HarmonyOS Audio Development Guide: Using OpenSL ES to develop audio playback functions

OpenSL ES stands for Open Sound Library for Embedded Systems. It is an embedded, cross-platform, free audio processing library. Provides standardized, high-performance, low-latency APIs for application developers on embedded mobile multimedia devices. The Native API of HarmonyOS is implemented based on the OpenSL ES 1.0.1 API specification developed by Khronos Group. Developers can use related […]

Add an interface to digital human generation, build WEBUI based on ER-NeRF/RAD-NeRF/AD-NeRF, Gradio framework, use HLS streaming media to achieve reasoning and playback – Part 1: Real-time output of server console logs in WEBUI

Foreword There are currently many digital human implementation technologies. I use ER-NeRF here. You can see its introduction here: ICCV 2023 | ER-NeRF: Efficient area-aware neural radiation field for synthesizing high-fidelity Talking Portrait-https://zhuanlan .zhihu.com/p/644520609 ER-NeRF project address: https://github.com/Fictionarry/ER-NeRF ER-NeRF, RAD-NeRF, they all inherit from AD-NeRF and have a GUI interface based on dearpygui But unfortunately, […]

HarmonyOS Audio Development Guide: Use AudioRenderer to develop audio playback functions

AudioRenderer is an audio renderer used to play PCM (Pulse Code Modulation) audio data. Compared with AVPlayer, it can add data preprocessing before input, which is more suitable for developers with audio development experience to achieve more flexible playback functions. . Development guidance Using AudioRenderer to play audio involves the creation of AudioRenderer instances, the […]

How to implement front-end audio and video playback?

Gathering sand into a tower, making a little progress every day ? Column introduction Front-end Getting Started Tour: Exploring the Wonderful World of Web Development Welcome to the Front-End Getting Started Tour! If you are interested, you can subscribe to this column! This column is tailor-made for those who are interested in web development and […]

FFmpeg video playback (audio and video decoding)

In the previous article, during FFmpeg decapsulation, the decoder context AVCodecContext was handed over to VideoChannel and AudioChannel in the prepare method in TinaFFmpeg. After that, the decoding work was handed over to them. In this section, we will see how they handle it. Decoding entry After prepare is completed, the onPrepare method of TinaPlayer […]

HarmonyOS Audio Development Guide: Use AVPlayer to develop audio playback functions

How to choose an audio playback development method In the HarmonyOS system, a variety of APIs provide support for audio playback development. Different APIs are suitable for different audio data formats, audio resource sources, audio usage scenarios, and even different development languages. Therefore, choosing an appropriate audio playback API can help reduce development workload and […]