ffmpeg

ffplayer – render process and buffer allocation

The 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 to …

ffplayer – render process and buffer allocation Read More »

3. FFMPEG video decoding and playback

This 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 attrs) …

3. FFMPEG video decoding and playback Read More »

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

QT + [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 be …

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

QT+FFMPEG Windows development environment to build

Qt 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 noted …

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

Create 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 the …

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

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 visual playback …

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

FFmpeg development (01) FFmpeg compilation and integration

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 visual playback …

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

ffmpeg common commands (valid for personal testing)

Table 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 to …

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