“Amazon Cloud Technology Product Review” event call for papers|Building a streaming media server with “weak” image processing functions

Authorization statement: This article authorizes the official Amazon Cloud Technology article to forward and rewrite the rights, including but not limited to Amazon Cloud Technology official channels such as Developer Centre, Zhihu, self-media platforms, third-party developer media, etc. This article is based on the following software and hardware tools: +awsec2 + frp-0.52.3 + mediamtx-1.3.0 + […]

An ADC sampling algorithm, median average filtering + recursive average filtering

Foreword In actual AD acquisition scenarios, there will be effects of periodic changes and occasional pulse fluctuation interference on AD acquisition. Here a combination of median average filtering + recursive average filtering is used Refer to the code framework written by predecessors, and also refer to the blog below by blogger GuYH_, and make slight […]

18 | Reactive programming framework design: How to make program calls respond immediately without blocking waiting?

In the first column, we discussed why the program crashes under high concurrency conditions. The main reason is that in the case of high concurrency, there are a large number of user requests that require program calculation and processing. The current processing method is to allocate a thread to each user request. When the thread […]

nginx+ffmpeg+rtsp+rtmp/http-flv streaming media service construction [full version]

nginx + ffmpeg + rtsp + rtmp/http-flv streaming media service construction [full version] Install nginx and its dependencies gcc installation yum -y install gcc gcc-c + + pcre installation #If you can’t pull it down, you can directly copy the link to the browser to download. I successfully downloaded it directly from the browser, and […]

[Cambrian (2)] Media processing system: use of vgu video graphics unit, resize image (resize), cover (cover), operation display (osd), mosaic (mosaic), draw line (drawline), rotation ( rotate)

1 API situation of VGU library cnS32_t cnvguBeginJob(cnvguHandle_t *phHandle); – This function may start an image processing task, and its parameter may be a handle to the processing task. The return value may be an error code (S32_t is usually used for error codes) or a status code. cnS32_t cnvguCancelJob(cnvguHandle_t hHandle); – This function may […]

CSS3 media queries and page adaptation

In September 2017, W3C released the Media Query Level 4 Candidate Recommendation Standard Specification, which expands the functions of already released media queries. This specification is used for the @media rules of CSS, which can set the style of specific conditions for documents, and can also be used for HTML, JavaScript and other languages. 1. […]

1. Use MediaPlayer to play audio files

Use MediaPlayer to play audio files MediaPlayer Overview | Android Developers | Android Developers (google.cn) MediaPlayer | Android Developers (google.cn) 1. Application requirements Asynchronous playback, using services for background playback; (there is currently no audio focus transfer function) Display the audio file list, select different songs, and play different audio files (not implemented); Add a […]

7. Use MediaRecorder to record video files

Use MediaRecorder to record video files Android emulator cannot record audio. Life cycle First, you need to grant two permissions through ActivityCompat.requestPermissions(): <uses-permission android:name=”android.permission.CAMERA” /> <uses-permission android:name=”android.permission.RECORD_AUDIO” /> <uses-permission android:name=”android.permission.WRITE_EXTERNAL_STORAGE” /> The steps to record audio using MediaRecorder are usually as follows: MediaRecorder recorder = new MediaRecorder(); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); recorder.setVideoEncoder(MediaRecorder.VideoEncoder.H264); recorder.setOutputFile(PATH_NAME); recorder.prepare(); recorder.start(); […]