FFmpeg
F
SigMap
这个作者很懒,什么都没留下…
展开
-
FFmpeg build下载(包含old version)
FFmpeg build download原创 2022-06-25 15:57:50 · 1167 阅读 · 1 评论 -
[转载]使用ffmpeg 一个进程切出 多路分辨率 hls流
本文来自资州小王,原文链接:https://blog.csdn.net/wlj1012/article/details/105429524项目需要将视频转码,并支持不同分辨率的hls流, 但是单独一个个切实在是费时,所以测试了ffmpeg的多路输出。找到下面的参数配置,仅供参考。1. 方法一, h265ffmpeg -threads 2 -re -fflags +genpts -i "D:\Program Files\nginx-1.8.1\html\zizhong.mp4"-c:v:0.转载 2021-05-13 10:55:11 · 1173 阅读 · 1 评论 -
FFmpeg相关资源
ffmpeg官网:https://ffmpeg.org/ ffmpeg git地址:https://git.ffmpeg.org/gitweb/ffmpeg.git ffmpeg代码覆盖报告:http://coverage.ffmpeg.org/ ffmpeg视频处理入门教程:http://www.ruanyifeng.com/blog/2020/01/ffmpeg.html ffmpeg博客(雷神):https://blog.csdn.net/leixiaohua1020 ffmpeg gith原创 2021-05-08 21:52:05 · 147 阅读 · 0 评论 -
FFmpeg 代码学习example01:decode_video
Version:FFmpeg 4.4Source: "example" folder/* * Copyright (c) 2001 Fabrice Bellard * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal *..原创 2021-04-28 22:12:30 · 666 阅读 · 2 评论 -
FFmpeg常用API函数介绍
目录1.常用API1.1通用API1.1.1av_register_all()——弃用1.1.2内存的分配和释放(av_malloc()、av_free()等)1.1.3常见结构体的初始化和销毁(AVFormatContext、AVFrame)1.1.4avio_open2()1.1.5avcodec_find_encoder() 和 avcodec_find_decoder()1.1.6avcodec_open2()...转载 2021-04-27 11:28:43 · 657 阅读 · 0 评论 -
FFmpeg+SDL视频播放器代码学习
参考博客:https://blog.csdn.net/leixiaohua1020/article/details/388684991.仅对FFmpeg部分做了一部分注释2.代码未作改动,只进行注释,仅为学习/** * 最简单的基于FFmpeg的视频播放器 2 * Simplest FFmpeg Player 2 * * 雷霄骅 Lei Xiaohua * leixiaohua1020@126.com * 中国传媒大学/数字电视技术 * Communication Univers转载 2021-04-17 15:10:52 · 143 阅读 · 0 评论 -
FFmpeg源代码简单学习:avformat_close_input()
参考博客:https://blog.csdn.net/leixiaohua1020/article/details/44110683void avformat_close_input(AVFormatContext **ps){ AVFormatContext *s; AVIOContext *pb; //“不存在” 直接返回 if (!ps || !*ps) return; s = *ps; pb = s->pb;转载 2021-04-16 14:20:58 · 390 阅读 · 0 评论 -
ffmpeg 源代码简单学习 : avcodec_decode_video2()
参考博客:https://blog.csdn.net/leixiaohua1020/article/details/12679719int attribute_align_arg avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, int *got_picture_ptr, ...转载 2021-04-15 20:41:55 · 687 阅读 · 0 评论 -
ffmpeg 源代码简单学习 : av_read_frame()
参考博客:https://blog.csdn.net/leixiaohua1020/article/details/12678577int av_read_frame(AVFormatContext *s, AVPacket *pkt){ const int genpts = s->flags & AVFMT_FLAG_GENPTS; int eof = 0; int ret; AVStream *st; if (!genpts) { .转载 2021-04-15 19:16:25 · 347 阅读 · 0 评论 -
FFmpeg源代码简单学习:avformat_find_stream_info()
参考博客:https://blog.csdn.net/leixiaohua1020/article/details/44084321int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options){ int i, count, ret = 0, j; int64_t read_size; AVStream *st; AVPacket pkt1, *pkt; int64_t .转载 2021-04-15 10:23:19 · 332 阅读 · 0 评论 -
FFmpeg源代码简单学习- -avformat_open_input
部分转载自:https://blog.csdn.net/leixiaohua1020/article/details/44064715//参数ps包含一切媒体相关的上下文结构,有它就有了一切,本函数如果打开媒体成功,//会返回一个AVFormatContext的实例.//参数filename是媒体文件名或URL. 文件=url//参数fmt是要打开的媒体格式的操作结构,因为是读,所以是inputFormat.此处可以//传入一个调用者定义的inputFormat,对应命令行中的 -f xx.转载 2021-04-14 20:52:43 · 264 阅读 · 0 评论 -
AVFrameContext结构体销毁函数avformat_free_context
AVFrameContext结构体销毁函数avformat_free_contextvoid avformat_free_context(AVFormatContext *s){ int i; if (!s) return; if (s->oformat && s->oformat->deinit && s->internal->initialized) s->ofor.原创 2021-04-13 19:06:03 · 997 阅读 · 0 评论 -
AVFormatContext结构体初始化函数 avformat_alloc_context
ffmpeg-4.4AVFormatContext结构体初始化函数AVFormatContext *avformat_alloc_context(void){ AVFormatContext *ic; AVFormatInternal *internal; ic = av_malloc(sizeof(AVFormatContext)); if (!ic) return ic; internal = av_mallocz(sizeof(*intern..原创 2021-04-13 17:02:58 · 383 阅读 · 0 评论 -
ffmpeg之AVFrame结构体学习
AVFrame结构体学习说明:现在结构体AVFrame位于libavutil中的frame.h文件中 文章参考:雷神博客 ffmpeg版本:4.4typedef struct AVFrame {#define AV_NUM_DATA_POINTERS 8 /** * pointer to the picture/channel planes. * This might be different from the first allocated byte原创 2021-04-13 09:27:22 · 395 阅读 · 0 评论 -
nginx-rtmp-module模块中的exec问题
想要实现一个自动切片并把对应的m3u8地址传递给web服务器的动作优先考虑在nginx的相应模块中实现在网上查阅一些资料后,发现nginx-rtmp-module提供了类似的功能。具体细节参见文档:原文链接、csdn博主翻译github的官方文档给出了这样一段示例:经过尝试,均以失败告终。>>/var/log/ffmpeg-$name.log;日志也没有生成,ffmpeg是否启动并不确定。官方的issues部分也有很多人存在这样的问题,即使确认ffmpeg的启原创 2021-03-18 21:40:33 · 776 阅读 · 0 评论 -
在Ubuntu中安装FFmpeg【转载】
本文只转载了ffmpeg的安装部分,更多信息请参考原文以下为原文内容(仅作必要删减和注释)实际测试,同样支持Ubuntu 16.04版本在Linux中安装和使用ffmpeg的方法(以Ubuntu 18.04系统为例)2019-03-31 16:05:18 作者:王明著 稿源:云网牛站 本文介绍在Linux操作系统中安装和使用ffmpeg的方法,本指南内容有安装ffmpeg、ffmpeg的基本用法及高级用法、过滤基础知识。所用的系统是Ubuntu 18.04,但这些命...转载 2021-03-12 19:34:05 · 2337 阅读 · 0 评论