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分析器 视音频编解码学习工 ...
随机推荐
- 共识网络BFT-SMaRt:理论与实践
目录 BFT-SMaRt 简介 分布式计数器服务 功能描述 组网配置 启动节点 常见问题 计数服务 容错服务 BFT-SMaRt 理论 BFT-SMR 典型模式 SMR 状态机复制 VP-Consen ...
- 1037 在霍格沃茨找零钱 (20 分)C语言
题目描述 如果你是哈利·波特迷,你会知道魔法世界有它自己的货币系统 -- 就如海格告诉哈利的:"十七个银西可(Sickle)兑一个加隆(Galleon),二 十九个纳特(Knut)兑一个西可 ...
- 10_时间戳timeStamp 和 时间 time 转换, 根据时间节点倒计时
1: 时间戳 timeStamp 获取的几种方法及其优劣, 第一种只能精确到秒, 故不推荐使用, 最最常用的也是最官方的是第三种, 通过原型方法进行调用获取精确到毫秒数 : var timestamp ...
- angular.foreach 循环方法
angular循环给一个 angular监听的变量复值时.最好还是用angular自带的循环方法.“angular.foreach” 尽量避免代码的冲突,最好不要jq angular 混用 var o ...
- 输入URI,按下回车发生了什么?
当我们输入URL,按下回车发生了什么? 这个题目很俗套- -但是是面试经常出现的题目了.今天听尼古拉斯•屌•大斌哥介绍关于从URI到浏览器呈现给我们页面发生了什么.感觉收获颇多.索性就翻阅了一些其他资 ...
- Oracle表空间概述及其基本管理
最近在工作中遇到有同事对Oracle表空间的理解有问题,所以写了这篇文章.我会从概念,管理及特别需要关注的点等几个维度对表空间进行一些介绍.本文以介绍表空间为主,涉及到的其他概念不展开描述.有问题的地 ...
- 【转】Beyond compare4密钥
转:https://blog.csdn.net/lemontree1945/article/details/92963423 w4G-in5u3SH75RoB3VZIX8htiZgw4ELilwvPc ...
- C++指针声明
指针声明 void f(int) void (*p1)(int)=&f; void (*p2)(int)=f; 调用例子: int f(); int (*p) ()=f; //指针p指向f i ...
- PS/2的相关知识
PS/2接口 很多微机上采用PS/2口来连接鼠标和键盘.PS/2接口与传统的键盘接口除了在接口外型.引脚有不同外,在数据传送格式上是相同的.现在很多主板用PS/2接口插座连接键盘,传统接口的键盘可以通 ...
- Sample Codes之Query features from a FeatureLayer
除了地图基本的放大缩小等功能,在webgis上的二次开发中,查询功能 通常作为需求的一部分需要我们去实现,今天就给大家详细的分析实例代码中的查询功能:Query features from a Fea ...