Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7789967
  • 博文数量: 701
  • 博客积分: 2150
  • 博客等级: 上尉
  • 技术积分: 13233
  • 用 户 组: 普通用户
  • 注册时间: 2011-06-29 16:28
个人简介

天行健,君子以自强不息!

文章分类

全部博文(701)

文章存档

2019年(2)

2018年(12)

2017年(76)

2016年(120)

2015年(178)

2014年(129)

2013年(123)

2012年(61)

发布时间:2014-05-04 21:19:24

简介本例讲解了如何使用ffmpeg SDK解码媒体文件;参考源码是ffmpeg 自带的apiexample.c一、源代码#include <stdlib.h>#include <stdio.h>#include <string.h>#include <math.h>#ifdef HAVE_AV_CONFIG_H#undef HAVE_AV_CONFIG_H#endif#include "libavcodec/avcodec.h"#define INBUF_SIZE 4096void pgm_save.........【阅读全文】

阅读(1745) | 评论(0) | 转发(1)

发布时间:2014-05-04 18:08:55

一、第三方库的编译与安装1. libfaac# tar -zxvf faac-1.28.tar.gz# cd faac-1.28# ./configure --prefix=/opt/YOUR_SDK_INSTALL_DIRECTORY --enable-static --disable-shared# make; make install2. libmp3lame# tar -zxvf lame-3.98.4.tar.gz# cd lame-3.98.4# ./configure --prefix=/opt/YOUR_SDK_INSTALL_DI.........【阅读全文】

阅读(2074) | 评论(0) | 转发(0)

发布时间:2014-04-29 18:01:11

从输入文件中抽取出原始的音频,视频数据# ffmpeg -i test.mp4 -vcodec copy -an video.h264# ffmpeg -i test.wmv -acodec copy -vn audio.wma# ffmpeg -i infile.mp4 -vcodec copy -an -f h264 video.h264# ffmpeg -i infile.ts -vcodec copy -f rawvideo -an raw.264......【阅读全文】

阅读(1863) | 评论(0) | 转发(0)

发布时间:2014-04-23 22:56:07

一、编译1. 编译前的修改1). apiexample.c  LINE 19#include "avcodec.h"改成:#include "libavcodec/avcodec.h"2). apiexample.c LINE 145len = avcodec_decode_audio(c, (short *)outbuf, &out_size,改成:len = avcodec_decode_audio2(c, (short *)outbuf, &out_size,2. 编译生成# gcc apiexample.c -g .........【阅读全文】

阅读(2579) | 评论(0) | 转发(0)

发布时间:2014-04-19 22:17:39

四、主函数代码001 int main(int argc, char **argv)002 {003     const char *filename;004     AVOutputFormat *fmt;005     AVFormatContext *oc;006     AVStream *audio_st, *video_st;007     double audio_pts, video_pts;008     int i;&nb.........【阅读全文】

阅读(3048) | 评论(0) | 转发(0)
给主人留下些什么吧!~~

七月羽歌2017-04-14 11:13

美的事物是永恒的喜悦。

回复  |  举报

七月羽歌2017-04-14 10:40

全局留言。哇,

回复  |  举报

指尖上的幽灵2015-03-17 18:05

看了你这么多东西,如果不留下点什么多说不过去啊!加油啊

回复  |  举报
留言热议
请登录后留言。

登录 注册