看过了FFMPEG中的一些结构体,可能对于怎么使用这些结构体写代码有些遗忘,尤其是如何处理音视频。
继续 >>AVCodecParamteres结构体是将AVCodecContext中编解码器参数抽取出而形成的新的结构体,在新版本中的FFMPEG中,有些结构体中的AVCodecContext已经被弃用,取而代之的就是AVCodecParameters这个参数,该结构体定义在libavcodec/codec_par.h文件中,该结构体的定义如下:
1 | typedef struct AVCodecParameters { |
因为AVCodecContext结构体包含的参数太多,AVCodecParameters将编码器的参数从AVCodecContext分离出来,AVCodecParameters结构体中部分重要的参数如下:
1 | enum AVMediaType codec_type; 编解码器的类型 |
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: false
tags: true