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分析器 视音频编解码学习工 ...
随机推荐
- DataX支持mysql8.X
:first-child{margin-top:0!important}.markdown-body>:last-child{margin-bottom:0!important}.markdow ...
- 小白学 Python 爬虫(34):爬虫框架 Scrapy 入门基础(二)
人生苦短,我用 Python 前文传送门: 小白学 Python 爬虫(1):开篇 小白学 Python 爬虫(2):前置准备(一)基本类库的安装 小白学 Python 爬虫(3):前置准备(二)Li ...
- 关于Integer 和Double包装类创建对象时的底层解析
public void method1() { Integer i = new Integer(1); Integer j = new Integer(1); System.out.println(i ...
- schedule of 2016-10-31~2016-11-6(Monday~Sunday)——1st semester of 2nd Grade
most important things to do 1.joint phd preparations 2.journal paper to write 3.solid fundamental kn ...
- 2019牛客暑期多校第一场题解ABCEFHJ
A.Equivalent Prefixes 传送门 题意:给你两个数组,求从第一个元素开始到第p个元素 满足任意区间值最小的元素下标相同的 p的最大值. 题解:我们可以从左往右记录到i为止每个区间的最 ...
- Spring AOP 基于AspectJ
简介 AspectJ是一个基于Java语言的AOP框架,Spring2.0以后新增了对AspectJ切点表达式支持.因为Spring1.0的时候Aspectj还未出现; AspectJ1.5中新增了对 ...
- 【Java基础总结】字符串
1. java内存区域(堆区.栈区.常量池) 2. String length() //长度 //获取子串位置 indexOf(subStr) lastIndexOf(subStr) //获取子串 c ...
- UGUI ScrollView中显示模型和特效
游戏开发中有时候会遇到在UI上显示模型和特效的需求,这次需要在ScrollView上显示.我们使用UGUI的Screen Space - Camera模式,修改模型和特效的layer使之显示在UI上面 ...
- Map2Shp软件字符编码解决方案——彻底杜绝Shape格式乱码
在使用Shape文件时,如果里面有中文属性信息时,经常会遇到属性信息变为乱码.尤其是ArcGIS10.2.1之后,Esri改变了软件的默认字符编码规则,打开之前保存的Shapefile文件,总会不时遇 ...
- 公司没有 DBA,Mysql 运维自己来
如果你的公司有 DBA,那么我恭喜你,你可以无视 Mysql 运维.如果你的公司没有 DBA,那你就好好学两手 Mysql 基本运维操作,行走江湖,防身必备. 环境:CentOS7 版本: 一.虚拟机 ...