Use MediaExtractor + MediaCodec + AudioTrack to play audio files First look at a picture: If you want to play a video, you have to deprotocol and decapsulate the video file. Then you can get the audio data and video data (separately), decode them separately again, and finally play them synchronously (because the devices that […]
Tag: media
3. Use MediaPlayer+SurfaceView to play video files
Use MediaPlayer + SurfaceView to play video files MediaPlayer is mainly used to play audio and does not provide an image output interface, so you need to use other components to display the images played by MediaPlayer. You can use SurfaceView to display it. Surface and SurfaceHolder | Android Open Source Project | Android Open […]
Windows MCI multimedia interface implements wave/mdi/mpeg(mp3) multimedia playback
Operating system interface functions: mciSendString example: Win32Mci mci(“C:\Morning Sword Dance_Haoqing Jiuzhou.mp3”); mci.Play(); head File: #pragma once #include <iostream> #include <string> namespace ppp { namespace win32 { class Win32Mci final { public: enum class PlayState { Closed, Stopped, Paused, Playing, NotReady, Open, Recording, parked, Seeking, }; public: explicit Win32Mci(const std::string & amp; path); ~Win32Mci() noexcept; public: […]
YOLO algorithm improvement 3 [Intermediate improvement]: Add HorNet convolution module
Paper address: https://arxiv.org/pdf/2207.14284.pdf Source code address: https://github.com/raoyongming/HorNet. High-quality reference article: https://blog.csdn.net/qq_42075634/article/details/126670347 The structure of the HorNet module is shown in the figure below: This figure is from the paper. From the picture, we can clearly see that the HorNet module and the Swin transformer module have a similar structure. The difference is that HorNet uses […]
[Streaming Media Server] SRS4.0 RTMP to WebRTC ICE interaction analysis
Introduction ICE stands for Interactive Connectivity Establishment: Interactive connectivity establishment method. ICE is implemented according to the recommendations of RFC5245 and is a set of protocols based on the offer/answer mode to solve NAT traversal. It comprehensively utilizes existing STUN, TURN and other protocols to establish sessions in a more efficient way. ICE introduction 1. […]
[High-intensity focused ultrasound simulator] Simulate high-intensity focused ultrasound beams and heating effects in layered media (Matlab code)
Welcome to this blog Advantages of bloggers:Blog content should be as thoughtful and logical as possible for the convenience of readers. Motto:He who travels a hundred miles is half as good as ninety. The directory of this article is as follows: Table of Contents 1 Overview 2 Operation results 3 References 4 Matlab code, data, […]
Python intermediate knowledge sorting out
1. File operations File operations in Python usually use the built-in open() function to open files. Here’s a simple example: with open(“file.txt”, “r”) as f: content = f.read() print(content) In this example, we open the file named “file.txt”, read it into the variable content, and finally print it out. The first parameter of the open() […]
Raspberry Pi qt calls multimedia, multimediawidgets, serialport, Qchats
Tip: After the article is written, the table of contents can be automatically generated. For how to generate it, please refer to the help document on the right. Article directory Preface 1. Test 1 1. An error occurred during command installation 2. Test 2 1. Install Qt Charts: 2. Install Qt Multimedia and Qt MultimediaWidgets: […]
AAOS CarMediaService problem analysis
Article directory Problem Description Car Bluetooth music process Music monitoring focus change process BT request focus process MediaSession server process The interaction between BT and music Problem description question When the AAOS interface is connected to Bluetooth, the music played by the Music app is paused. analyze Pause is the behavior of the application. The […]
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, […]