ffmpeg

ffplayer – render process and buffer allocation

Hits: 0The display and [decoding] shared memory mechanism is adopted, which has the characteristics of high speed and low IO throughput compared with the old mechanism. In the main thread: FFMPlayer::prepareVideo() –>initRender(mColorFormat, 0,HW); —–>checkReAllocateBuffers(decoderType, isInfoChange); //NativeWindowBufferAlloctor* FFMPlayerBase::mNativeWindowBufferAlloctor; void NativeWindowBufferAlloctor::initparm(sp<ANativeWindow> nativeWindow, int w, int h, int dw, int dh) { //Set the basic parameters that need …

ffplayer – render process and buffer allocation Read More »

3. FFMPEG video decoding and playback

Hits: 0This article is based on the development of the following articles: Create a new VideoView class package com.test.ffmpeg; import android.content.Context; import android.graphics.PixelFormat; import android.util.AttributeSet; import android.view.Surface; import android.view.SurfaceHolder; import android.view.SurfaceView; /** * Created by ygdx_lk on 17/11/1. */ public class VideoView extends SurfaceView{ public VideoView(Context context) { this(context, null); } public VideoView(Context context, AttributeSet …

3. FFMPEG video decoding and playback Read More »

QT + FFMPEG implements basic player (3) video playback implementation

Hits: 0QT + [FFMPEG] implements basic player (3): video playback implementation In [“QT + FFMPEG to implement the basic player (2): FFMPEG decoding function implementation”]: FFMPEG decoding function implementation”](/A707471534/article/details/107635182) , put all avPackets into the queue of a global [structure] g_MedieInfo.m_VideoPacketQueue.push(avPacket); Therefore, the playback thread of the video can be realized, and the data can …

QT + FFMPEG implements basic player (3) video playback implementation Read More »

QT+FFMPEG Windows development environment to build

Hits: 0Qt download Qt download This website introduces the Qt download method in detail, because the library version of [FFMPEG] is 64bit, so Qt needs to support MinGW 64bit, so choose to install the Qt5.13.2 version. Qt installation tutorial Qt installation tutorial This website introduces the installation tutorial of Qt in detail. It should be …

QT+FFMPEG Windows development environment to build Read More »

ffmpeg series use C++ class to encapsulate ffmpeg to realize the function of opening video files

Hits: 0Create a new c++ class MyFFmpeg in visual studio 2013; In the menu bar, click “Project—-Add Class” In the pop-up selection form, click and select “Visual C++ —-> C++ Class —-> Add” Fill in the relevant class name in the next C++ class addition wizard form, then check the “Virtual Destructor” option and click …

ffmpeg series use C++ class to encapsulate ffmpeg to realize the function of opening video files Read More »

FFmpeg development (02) FFmpeg + ANativeWindow realizes video decoding and playback

Hits: 0 This original article was first published on WeChat public account: [Byte] Flow [FFmpeg] development series serialization: FFmpeg development (01): FFmpeg compilation and integration FFmpeg development (02): FFmpeg + ANativeWindow realizes video decoding and playback FFmpeg development (03): FFmpeg + OpenSLES realizes audio decoding and playback FFmpeg development (04): FFmpeg + OpenGLES for audio …

FFmpeg development (02) FFmpeg + ANativeWindow realizes video decoding and playback Read More »

FFmpeg development (01) FFmpeg compilation and integration

Hits: 0 This original article was first published on WeChat public account: Byte Flow [FFmpeg] development series serialization: FFmpeg development (01): FFmpeg compilation and integration FFmpeg development (02): FFmpeg + ANativeWindow realizes video decoding and playback FFmpeg development (03): FFmpeg + OpenSLES realizes audio decoding and playback FFmpeg development (04): FFmpeg + OpenGLES for audio …

FFmpeg development (01) FFmpeg compilation and integration Read More »

ffmpeg common commands (valid for personal testing)

Hits: 0Table of contents Table of contents Table of contents Table of contents ffmpeg command structure: ffmpeg format details Codec Formats and Codecs View encoder parameters Specify encoder parameters Compression ratio profile Pull flow Pull stream save command ffplay pull stream playback format conversion Extract H264 bare stream from MP4 file h265 to yuv nv12 …

ffmpeg common commands (valid for personal testing) Read More »