资源简介
使用DirectShow采集桌面、语音并实时进行H264和AAC编码,然后将其封装成MP4,希望对大家有用
代码片段和文件信息
/*
* This file is part of FFmpeg.
*
* 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 Software Foundation; either
* version 2.1 of the License or (at your option) any later version.
*
* FFmpeg is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with FFmpeg; if not write to the Free Software
* Foundation Inc. 51 Franklin Street Fifth Floor Boston MA 02110-1301 USA
*/
/*
* This file was copied from the following newsgroup posting:
*
* Newsgroups: mod.std.unix
* Subject: public domain AT&T getopt source
* Date: 3 Nov 85 19:34:15 GMT
*
* Here‘s something you‘ve all been waiting for: the AT&T public domain
* source for getopt(3). It is the code which was given out at the 1985
* UNIFORUM conference in Dallas. I obtained it by electronic mail
* directly from AT&T. The people there assure me that it is indeed
* in the public domain.
*/
#include
#include
static int opterr = 1;
static int optind = 1;
static int optopt;
static char *optarg;
static int getopt(int argc char *argv[] char *opts)
{
static int sp = 1;
int c;
char *cp;
if (sp == 1) {
if (optind >= argc ||
argv[optind][0] != ‘-‘ || argv[optind][1] == ‘\0‘)
return EOF;
else if (!strcmp(argv[optind] “--“)) {
optind++;
return EOF;
}
}
optopt = c = argv[optind][sp];
if (c == ‘:‘ || !(cp = strchr(opts c))) {
fprintf(stderr “: illegal option -- %c\n“ c);
if (argv[optind][++sp] == ‘\0‘) {
optind++;
sp = 1;
}
return ‘?‘;
}
if (*++cp == ‘:‘) {
if (argv[optind][sp+1] != ‘\0‘)
optarg = &argv[optind++][sp+1];
else if(++optind >= argc) {
fprintf(stderr “: option requires an argument -- %c\n“ c);
sp = 1;
return ‘?‘;
} else
optarg = argv[optind++];
sp = 1;
} else {
if (argv[optind][++sp] == ‘\0‘) {
sp = 1;
optind++;
}
optarg = NULL;
}
return c;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-05-18 14:02 DirectshowFilterAndX264\
目录 0 2017-05-18 14:00 DirectshowFilterAndX264\bin\
文件 2354688 2016-03-04 15:14 DirectshowFilterAndX264\bin\CC_API.dll
文件 163840 2015-12-21 11:46 DirectshowFilterAndX264\bin\DEVICEIO.dll
文件 11179022 2016-05-05 12:55 DirectshowFilterAndX264\bin\avcodec-56.dll
文件 147982 2016-05-05 12:54 DirectshowFilterAndX264\bin\avdevice-56.dll
文件 709646 2015-10-28 10:39 DirectshowFilterAndX264\bin\avfilter-3.dll
文件 2034688 2014-05-06 10:08 DirectshowFilterAndX264\bin\avfilter-4.dll
文件 1430542 2016-05-05 12:55 DirectshowFilterAndX264\bin\avfilter-5.dll
文件 2149390 2016-05-05 12:55 DirectshowFilterAndX264\bin\avformat-56.dll
文件 517646 2016-05-05 12:56 DirectshowFilterAndX264\bin\avutil-54.dll
文件 104209 2015-11-03 14:09 DirectshowFilterAndX264\bin\libSDL_gfx-15.dll
文件 93696 2015-12-01 14:23 DirectshowFilterAndX264\bin\libSaveHardDisk.dll
文件 60318 2015-11-30 18:38 DirectshowFilterAndX264\bin\libasprintf-0.dll
文件 284282 2016-03-02 20:46 DirectshowFilterAndX264\bin\libass-5.dll
文件 144151 2015-09-02 14:24 DirectshowFilterAndX264\bin\libassuan-0.dll
文件 38003 2016-02-09 19:03 DirectshowFilterAndX264\bin\libatomic-1.dll
文件 298648 2015-10-05 17:14 DirectshowFilterAndX264\bin\libbluray-1.dll
文件 76571 2016-02-29 15:50 DirectshowFilterAndX264\bin\libbz2-1.dll
文件 61527 2015-07-08 13:44 DirectshowFilterAndX264\bin\libcaca++-0.dll
文件 857150 2015-07-08 13:44 DirectshowFilterAndX264\bin\libcaca-0.dll
文件 1080874 2015-10-30 14:38 DirectshowFilterAndX264\bin\libcairo-2.dll
文件 34476 2015-10-30 14:38 DirectshowFilterAndX264\bin\libcairo-gob
文件 171881 2015-10-30 14:38 DirectshowFilterAndX264\bin\libcairo-sc
文件 46202 2015-06-29 19:27 DirectshowFilterAndX264\bin\libcharset-1.dll
文件 221899 2015-07-06 19:09 DirectshowFilterAndX264\bin\libcppunit-1-13-0.dll
文件 1744718 2016-03-02 19:20 DirectshowFilterAndX264\bin\libeay32.dll
文件 169937 2015-06-29 20:25 DirectshowFilterAndX264\bin\libexpat-1.dll
文件 66560 2017-02-15 15:25 DirectshowFilterAndX264\bin\libfaac.dll
文件 134656 2017-02-15 15:25 DirectshowFilterAndX264\bin\libfaacd.dll
文件 299526 2015-07-13 03:52 DirectshowFilterAndX264\bin\libfaad-2.dll
............此处省略678个文件信息
- 上一篇:AIX UNIX系统管理、维护与高可用集群建设
- 下一篇:动态系统的反馈控制.pdf
相关资源
- 海思hi3518编码h264源代码
- FFMPEG实现RTSP中数据流解码 并且实时播
- opencv3编译需要的opencv_ffmpeg_64.dll
- h264 视频文件
-
VideoPla
yer_5(FFMPEG Qt视频播放器之播 - ffmpeg安装包
- 基于FFmpegQt的视频播放器完整源码.r
- ffmpeg3.2.4_Win32开发库文件
- 利用ffmpeg将H264裸流文件封装为MP4文件
- live555实现H264实时流进行RTSP发送
- VS2013+OSG 下编译好的ffmpeg插件
- 仰邦软件LedshowTW2014
- 从零开始学习音视频编程技术二十二
- ffmpeg4+OpenCV3+VS2017 H264编解码
- 将rtmp流保存成MP4或者flv格式视频参考
- ffmpegjrtplib.zip
- 从零开始学习音视频编程技术十一
- h264测试视频
- FFmpeg开发包,适用VS各版本
- ffmpeg一键安装包
- 基于hi3531的live555发送h264
- ffmpeg 点播
- 从零开始学习音视频编程技术41 H.26
-
H264Pla
yer41H.264播放器.zip - 局域网音视频广播软件
- Qt+FFMPEG 实现简单的视频播放器
- ffmpeg音频处理
- H.264 (H264)文件800_600.264,分辨率8
- ffmpeg稳定版本,ffmpeg开发所需库文件
- opencv_3rdparty-ffmpeg-master_20161202.zip
评论
共有 条评论