Skip to content

Instantly share code, notes, and snippets.

View jusonqiu's full-sized avatar
😄
I may be slow to respond.

jusonqiu

😄
I may be slow to respond.
  • Tencent
  • ShenZhen
View GitHub Profile
@jusonqiu
jusonqiu / m2mjpeg_adpcm.c
Last active March 30, 2020 09:18
FFMPEG把普通视频解码成yuv同时编成mjpeg, 把音频解码成pcm并调整参数。 初始化编码器和解码器 配置编码器 编码与解码 调整帧率.
/******************************************************************************
* Copyright (C) 2015 All rights reserved.
*
* File: m2mjpeg_adpcm.c
* Author: Zhaosheng Qiu <[email protected]>
* Time: 2015/06/29
* Descriptions:
*
******************************************************************************/
#include <stdio.h>
#include <roxlu/core/Log.h>
#include <roxlu/core/Utils.h>
#include <video/X264Encoder.h>
X264Encoder::X264Encoder()
:in_width(0)
,in_height(0)
,in_pixel_format(AV_PIX_FMT_NONE)
,out_width(0)
,out_height(0)