ffmpeg
文章平均质量分 76
zccracker
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
使用ffmpeg进行摄像头捕获
1、初始化 这是所有ffmpeg程序在程序初始化的时候做的(仅做一次),因为video4linux2是属于avdevice的范畴,所以需要额外地初始化一下: 1 2 3 4 5 6 7 8 9 10 #include #include #include int main () { ... av_register_all ();转载 2014-05-12 15:56:43 · 1432 阅读 · 0 评论 -
flv文件的onMetaData部分解析
/* * Copyright (c) 2013 Steven Liu * * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free S转载 2014-05-20 13:38:35 · 1418 阅读 · 0 评论 -
ffmpeg只转封装不转码的代码实现
在有些场景下,其实只需要转封装,不需要转码, 大概步骤如下: 1. 打开输入的formatcontext 2. 打开输出文件 3. 打开输出的formatcontext 4. 写文件头 5. 复制codec信息 6. 读取输入frame 7. 写输出frame 8. 写文件尾 9. 关闭输出文件 代码如下: #include stdio.转载 2015-04-27 11:25:03 · 1476 阅读 · 0 评论 -
关键帧切割视频
#include #include #include "libavformat/avformat.h" #include "libavcodec/avcodec.h" #include "libavutil/avutil.h" #include "libavutil/rational.h" #include "libavutil/mathematics.h" #include "libswsc原创 2015-05-05 15:52:09 · 1109 阅读 · 0 评论
分享