上一页 1 2 3 4 5 6 7 ··· 118 下一页
摘要: main.c #include "libavutil/log.h" #include "libavformat/avformat.h" #include "libavutil/avutil.h" #include "libavcodec/avcodec.h" int main(int argc, c 阅读全文
posted @ 2024-05-26 19:09 NAVYSUMMER 阅读(37) 评论(0) 推荐(0)
摘要: 方法1:命令转换 ffmpeg -i input.mp4 output.flv 方法2:代码转换 main.c #include "libavutil/log.h" #include "libavformat/avformat.h" #include "libavutil/avutil.h" #in 阅读全文
posted @ 2024-05-26 18:21 NAVYSUMMER 阅读(109) 评论(0) 推荐(0)
摘要: 方法1:命令提取 ffmpeg -i input.mp4 -an -vcodec copy out.h264 ffmpeg -i input.mp4 -an -vcodec copy -bsf: h264_mp4toannexb out1.h264 方法2:代码提取 main.c #include 阅读全文
posted @ 2024-05-26 15:42 NAVYSUMMER 阅读(276) 评论(0) 推荐(0)
摘要: 方法1:通过命令提取 ffmpeg -i input.mp4 -vn -acodec aac ../output.aac 方法2:通过代码提取 流程图 main.c #include "libavutil/log.h" #include "libavformat/avformat.h" #inclu 阅读全文
posted @ 2024-05-25 19:12 NAVYSUMMER 阅读(96) 评论(0) 推荐(0)
摘要: 方式1:通过命令获取 ffprobe ../input.mp4 方式2:代码获取 main.c #include "libavutil/log.h" #include "libavformat/avformat.h" int main(int argc,char **argv){ av_log_se 阅读全文
posted @ 2024-05-25 11:07 NAVYSUMMER 阅读(52) 评论(0) 推荐(0)
摘要: avutil:核心工具库,基础模块之一,提供了hash器、编解码器等工具函数。 avformat:文件格式和协议库,封装了Protoco1层和Demuxer、Muxer层。 avcodec:编解码库,封装了codec层,提供接口,支持第三方的codec以插件方式添加。 avfilter:音视频滤镜库 阅读全文
posted @ 2024-05-25 09:39 NAVYSUMMER 阅读(42) 评论(0) 推荐(0)
摘要: 规则(Rules):一个Makefile文件由一条一条的规则构成,一条规则结构如下 target … (目标): prerequisites …(依赖) recipe(方法) … … 最简单的Makefile hello: hello.cpp g++ hello.cpp -o hello # 开头必 阅读全文
posted @ 2024-05-23 21:10 NAVYSUMMER 阅读(19) 评论(0) 推荐(0)
摘要: #通过ffmpeg查看文件属性,使用参数-hide_banner隐藏ffmpeg本身信息 ffmpeg -i video_file.mp4 -hide_banner # 格式转换,使用 -qscale 0 来保留原始的视频质量 ffmpeg -i video_input.wav -qscale 0 阅读全文
posted @ 2024-05-22 22:30 NAVYSUMMER 阅读(68) 评论(0) 推荐(0)
摘要: # 查看多媒体数据包 ffprobe -show_packets -show_data testVideo.flv # 查看封装格式 ffprobe -show_formrat testvideo.flv # 查看视频文件的帧信息 ffprobe -show_frames testvideo.flv 阅读全文
posted @ 2024-05-22 21:36 NAVYSUMMER 阅读(74) 评论(0) 推荐(0)
摘要: ffmpeg -i input.flv output.mp4 阅读全文
posted @ 2024-05-22 20:56 NAVYSUMMER 阅读(30) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 118 下一页
交流群 编程书籍