FFMPEG学习----遍历所支持的封装格式
#include <stdio.h> extern "C"
{
#include "libavformat/avformat.h"
}; int main(void)
{
AVFormatContext *pFormatCtx = NULL;
AVInputFormat *pInputFormat = NULL;
AVOutputFormat *pOnputFormat = NULL; av_register_all(); pInputFormat = av_iformat_next(NULL);
puts("-------------------------------Input--------------------------------");
while(pInputFormat != NULL)
{
printf("%s ", pInputFormat->name);
pInputFormat = pInputFormat->next;
}
puts("\n--------------------------------------------------------------------"); pOnputFormat = av_oformat_next(NULL);
puts("-------------------------------Output-------------------------------");
while(pOnputFormat != NULL)
{
printf("%s ", pOnputFormat->name);
pOnputFormat = pOnputFormat->next;
}
puts("\n--------------------------------------------------------------------"); return 0;
}
/**
* If f is NULL, returns the first registered input format,
* if f is non-NULL, returns the next registered input format after f
* or NULL if f is the last one.
*/
输出:
G:\Coding\FFMpeg\Proj\Console>cl /c /Iinclude tutorial.cpp
用于 x86 的 Microsoft (R) C/C++ 优化编译器 18.00.31101 版版权所有(C) Microsoft C
orporation。 保留所有权利。 tutorial.cpp G:\Coding\FFMpeg\Proj\Console>link tutorial.obj lib\avformat.lib
Microsoft (R) Incremental Linker Version 12.00.31101.0
Copyright (C) Microsoft Corporation. All rights reserved. G:\Coding\FFMpeg\Proj\Console>tutorial
-------------------------------Input--------------------------------
aa aac ac3 acm act adf adp ads adx aea afc aiff aix amr anm apc ape apng aqtitle
asf asf_o ass ast au avi avisynth avr avs bethsoftvid bfi bin bink bit bmv bfst
m brstm boa c93 caf cavsvideo cdg cdxl cine concat data daud dcstr dfa dirac dnx
hd dsf dsicin dss dts dtshd dv dvbsub dvbtxt dxa ea ea_cdata eac3 epaf ffm ffmet
adata filmstrip flac flic flv live_flv 4xm frm fsb g722 g723_1 g729 genh gif gsm
gxf h261 h263 h264 hevc hls,applehttp hnm ico idcin idf iff ilbc image2 image2p
ipe alias_pix brender_pix ingenient ipmovie ircam iss iv8 ivf ivr jacosub jv lml
m4 loas lrc lvf lxf m4v matroska,webm mgsts microdvd mjpeg mlp mlv mm mmf mov,mp
4,m4a,3gp,3g2,mj2 mp3 mpc mpc8 mpeg mpegts mpegtsraw mpegvideo mpjpeg mpl2 mpsub
msf msnwctcp mtv musx mv mvi mxf mxg nc nistsphere nsv nut nuv ogg oma paf alaw
mulaw f64be f64le f32be f32le s32be s32le s24be s24le s16be s16le s8 u32be u32l
e u24be u24le u16be u16le u8 pjs pmp pva pvf qcp r3d rawvideo realtext redspark
rl2 rm roq rpl rsd rso rtp rtsp sami sap sbg sdp sdr2 film_cpk shn siff sln smk
smjpeg smush sol sox spdif srt psxstr stl subviewer1 subviewer sup svag swf tak
tedcaptions thp 3dostr tiertexseq tmv truehd tta txd tty v210 v210x vag vc1 vc1t
est vivo vmd vobsub voc vpk vplayer vqf w64 wav wc3movie webm_dash_manifest webv
tt wsaud wsvqa wtv wve wv xa xbin xmv xvag xwma yop yuv4mpegpipe bmp_pipe dds_pi
pe dpx_pipe exr_pipe j2k_pipe jpeg_pipe jpegls_pipe pcx_pipe pictor_pipe png_pip
e qdraw_pipe sgi_pipe sunrast_pipe tiff_pipe webp_pipe libgme libmodplug
--------------------------------------------------------------------
-------------------------------Output-------------------------------
a64 ac3 adts adx aiff amr apng asf ass ast asf_stream au avi avm2 bit caf cavsvi
deo crc dash data daud dirac dnxhd dts dv eac3 f4v ffm ffmetadata filmstrip flac
flv framecrc framehash framemd5 g722 g723_1 gif gsm gxf h261 h263 h264 hash hds
hevc hls ico ilbc image2 image2pipe ipod ircam ismv ivf jacosub latm lrc m4v md
5 matroska matroska microdvd mjpeg mlp mmf mov mp2 mp3 mp4 mpeg vcd mpeg1video d
vd svcd mpeg2video vob mpegts mpjpeg mxf mxf_d10 mxf_opatom null nut oga ogg oma
opus alaw mulaw f64be f64le f32be f32le s32be s32le s24be s24le s16be s16le s8
u32be u32le u24be u24le u16be u16le u8 psp rawvideo rm roq rso rtp rtp_mpegts rt
sp sap segment stream_segment,ssegment singlejpeg smjpeg smoothstreaming sox spx
spdif srt swf tee 3g2 3gp mkvtimestamp_v2 truehd uncodedframecrc vc1 vc1test vo
c w64 wav webm webm_dash_manifest webm_chunk webp webvtt wtv wv yuv4mpegpipe
-------------------------------------------------------------------- G:\Coding\FFMpeg\Proj\Console>
FFMPEG学习----遍历所支持的封装格式的更多相关文章
- FFMPEG学习----遍历所支持的解码器
下面简单介绍一下遍历ffmpeg中的解码器信息的方法(这些解码器以一个链表的形式存储): 1.注册所有编解码器:av_register_all(); 2.声明一个AVCodec类型的指针,比如说AVC ...
- 如何查看ffmpeg支持的编码器和封装格式
查看支持的编码器(也就是-vcodec后面可以接的参数):ffmpeg -codecs 查看支持的封装格式(也就是-f后面可以接的参数):ffmpeg -formats 查看支持的滤镜(也就是-vf后 ...
- FFmpeg封装格式处理
本文为作者原创,转载请注明出处:https://www.cnblogs.com/leisure_chn/p/10506636.html FFmpeg封装格式处理相关内容分为如下几篇文章: [1]. F ...
- FFmpeg封装格式处理2-解复用例程
本文为作者原创,转载请注明出处:https://www.cnblogs.com/leisure_chn/p/10506642.html FFmpeg封装格式处理相关内容分为如下几篇文章: [1]. F ...
- ffmpeg 学习:001-搭建开发环境
介绍 由于命令行的ffmpeg工具无法满足产品的性能要求,需要对视频流进行兼容.所以需要调试有关的参数. FFmpeg全名是Fast Forward MPEG(Moving Picture Exper ...
- 最简单的基于FFmpeg的封装格式处理:视音频分离器(demuxer)
===================================================== 最简单的基于FFmpeg的封装格式处理系列文章列表: 最简单的基于FFmpeg的封装格式处理 ...
- FFmpeg学习4:音频格式转换
前段时间,在学习试用FFmpeg播放音频的时候总是有杂音,网上的很多教程是基于之前版本的FFmpeg的,而新的FFmepg3中audio增加了平面(planar)格式,而SDL播放音频是不支持平面格式 ...
- 最简单的基于FFmpeg的封装格式处理:视音频分离器简化版(demuxer-simple)
===================================================== 最简单的基于FFmpeg的封装格式处理系列文章列表: 最简单的基于FFmpeg的封装格式处理 ...
- 视音频编解码学习工程:TS封装格式分析器
=====================================================视音频编解码学习工程系列文章列表: 视音频编解码学习工程:H.264分析器 视音频编解码学习工 ...
随机推荐
- Codeforces Round #524 (Div. 2)(前三题题解)
这场比赛手速场+数学场,像我这样读题都读不大懂的蒟蒻表示呵呵呵. 第四题搞了半天,大概想出来了,但来不及(中途家里网炸了)查错,于是我交了两次丢了100分.幸亏这次没有掉rating. 比赛传送门:h ...
- spring之为什么要使用AOP(面向切片编程)?
需求1-日志:在程序执行期间追踪正在发生的活动: 需求2-验证:希望计算器只处理正数的运算: 一.普通方法实现 Calculator.java package com.gong.spring.aop. ...
- webpack 实时编译typescript与scss
webpack.config.js const path = require('path'); const CopyWebpackPlugin = require('copy-webpack-plug ...
- K8S集群搭建
K8S集群搭建 摘要 是借鉴网上的几篇文章加上自己的理解整理得到的结果,去掉了一些文章中比较冗余的组件和操作,力争做到部署简单化. K8S组件说明 Kubernetes包含两种节点角色:master节 ...
- asp.net core 实现支持多语言
asp.net core 实现支持多语言 Intro 最近有一个外国友人通过邮件联系我,想用我的活动室预约,但是还没支持多语言,基本上都是写死的中文,所以最近想支持一下更多语言,于是有了多语言方面的一 ...
- JAVA读取yml配置文件指定key下的所有内容
先引入需要的依赖 <!--读取yml文件--> <dependency> <groupId>org.yaml</groupId> <artifac ...
- iOS滤镜系列-滤镜开发概览
概述 滤镜最早的出现应该是应用在相机镜头前实现自然光过滤和调色的镜片,然而在软件开发中更多的指的是软件滤镜,是对镜头滤镜的模拟实现.当然这种方式更加方便快捷,缺点自然就是无法还原拍摄时的真实场景,例如 ...
- C语言之运算符和表达式
运算符优先级: 求余运算用法: 声明变量的名字和类型: 变量的类型决定占用内存空间的大小.数据的存储形式,合法的表数范围.可参与的运算种类.变量名标识了内存中的一个存储单元. 自动类型转换: 运算符和 ...
- js最简单的编写地点
1. 在哪里? 在浏览器的控制台. 2. 有什么作用? 方便快捷的测试纯js代码语句. 3. 如何使用? Google浏览器为例: 按 F12键 打开 开发者工具 (或者 浏览器工具栏 => ...
- python如何计算程序(代码块)的运行时间?
1.引入time模块 2.调用time模块的time()函数 :用来获取当前的时间,返回的单位是秒 # 引入一个time模块, * 表示time模块的所有功能, # 作用: 可以统计程序运行的时间 f ...