共 70 篇文章 |
|
使用 libraries在Android project’s jni/Android.mk file,Java代码 LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := tutorial03 LOCAL_SRC_FILES := tutorial03.c LOCAL_LDLIBS := -llog -ljnigraphics -lz -landroid LOCAL_SHARED_LIBRARIES := libavformat libavcodec libswscale libavutil includ... 阅31 转0 评0 公众公开 16-10-19 14:02 |
FFMpeg压缩Android摄像头数据写成H264格式文件。} JNIEXPORT jint JNICALL Java_com_cpi_ffmpeg_FFMpegLib_Encoding(JNIEnv *env, jclass jclass, jbyteArray yuvdata) { jbyte *yuv420sp = (jbyte*) (*env)->GetByteArrayElements(env, yuvdata, 0);ret = av_image_alloc(pFrame->data, pFrame->linesize, pCodecCt... 阅702 转2 评0 公众公开 16-07-23 20:56 |
is->sws_ctx = sws_getContext(is->video_st->codec->width, is->video_st->codec->height, is->video_st->codec->pix_fmt, is->video_st->codec->width, is->video_st->codec->height, PIX_FMT_YUV420P, SWS_BILINEAR, NULL, NULL, NULL );This thread reads in packets from the video queu... 阅11 转0 评0 公众公开 16-07-16 18:13 |
LAME Beyond Linux?The LAME package contains an MP3 encoder and optionally, an MP3 frame analyzer.Install LAME by running the following commands:--enable-mp3rtp: This switch enables building the encode-to-RTP program.Contents Installed Programs: lame and mp3rtp Installed Library: libmp3lame.so Installed Direct... 阅146 转0 评0 公众公开 16-07-09 21:21 |
windows下使用MinGW+msys编译ffmpeg.15 编译 ffmpeg ffmpeg-0.8.6.tar.bz2 解压到:D:\ffmpeg\ 目录下,双击“C:\MinGW\msys\1.0\msys.bat”,启动“MinGW32”,切换到ffmpeg目录:D:\ffmpeg\ffmpeg-0.8.6,切换方法如下: $ cd /d $ cd ffmpeg $ cd ffmpeg-0.8.6 如果你的“MinGW32”没有关闭,可以直接切换路径到:D:\ffmpeg\f... 阅25 转0 评0 公众公开 16-07-08 06:49 |
vbv-lookahead能使用的最大值是如下公式算出来的:MIN(rc-lookahead, MAX(–keyint, MAX(–vbv-maxrate, –bitrate) / –vbv-bufsize * –fps))参见:–no-mbtree, –vbv-bufsize, –vbv-maxratevbv-maxrate.参见:–vbv-bufsize, –vbv-init,http://mewiki.project357.com/wiki/X264_Encoding_Suggestions#VBV_Encodingvbv-bufsize.2、当开启... 阅254 转0 评0 公众公开 16-03-17 09:16 |
音视频同步有三种方式同步音频到视频同步到外部时钟 同步视频到音频同步视频到音频。}}pts视频读取pts.if (ffp->decoder_reorder_pts == -1) { frame->pts = av_frame_get_best_effort_timestamp(frame);} else if (ffp->decoder_reorder_pts) { frame->pts = frame->pkt_pts;} else { frame->pts = frame->pkt_dts;= AV_... 阅560 转2 评0 公众公开 16-03-11 16:54 |
FFMPEG SDK流媒体开发2分离.mp4等输入流音视频并且进行解码输出。对于FFMPEG SDK 提供的Demuxing 为我们实现多路复用 提供了很多方便,下面的案案例 实现的是 分离一个媒体文件的音频 视频流 并且解码输出 到 不同的文件中。 阅526 转1 评0 公众公开 16-03-06 20:07 |
阅82 转0 评0 公众公开 16-03-06 15:49 |
static const AVOption options[] = { { "preset", "Set the encoding preset (cf. x264 --fullhelp)", OFFSET(preset), AV_OPT_TYPE_STRING, { .str = "medium" }, 0, 0, VE}, { "tune", "Tune the encoding params (cf. x264 --fullhelp)", OFFSET(tune), AV_OPT_TYPE_STRING, { 0 }, 0, ... 阅216 转0 评0 公众公开 16-03-06 15:48 |