随笔分类 -  ffmpeg

摘要:# Server side (sending): ffmpeg -i somefile.ogg -c copy -listen 1 -f ogg http://server:port # Client side (receiving): ffmpeg -i http://server:port -c 阅读全文
posted @ 2022-07-21 11:37 MoonXu 阅读(718) 评论(0) 推荐(1) 编辑
摘要:vlc推rtp ffmpeg转udp ffmpeg -re -i rtp://127.0.0.1:5004 -vcodec copy -acodec copy -f mpegts udp://127.0.0.1:9000?pkt_size=188&buffer_size=65535 阅读全文
posted @ 2022-07-20 15:04 MoonXu 阅读(325) 评论(0) 推荐(0) 编辑
摘要:1 在命令行上找到的任何不能被解释为选项的东西都被认为是输出 url2 在选项中引用输入文件,您必须使用它们的索引(从 0 开始)。例如。第一个输入文件是 0,第二个是 1,依此类推。类似地,文件中的流由它们的索引引用。例如。 2:3 指的是第三个输入文件中的第四个流3 选项应用于下一个指定文件。4 阅读全文
posted @ 2022-07-15 19:04 MoonXu 阅读(368) 评论(0) 推荐(0) 编辑
摘要:ffmpeg -re -i hama.ts -vcodec copy -f mpegts udp://127.0.0.1:1234 ffplay -protocol_whitelist "file,udp,rtp" -i udp://127.0.0.1:1234 ubuntu桥接模式,编辑-》虚拟编 阅读全文
posted @ 2022-07-14 14:30 MoonXu 阅读(66) 评论(0) 推荐(0) 编辑
摘要:vs + ffmpeg报这个错误,关闭c/c++->sdl检查就没有了,真尼玛坑 阅读全文
posted @ 2022-06-25 01:59 MoonXu 阅读(490) 评论(0) 推荐(0) 编辑
摘要:1. 编码质量,编码速度和编码时间的关系 You can have fast, high-quality encoding, but the file will be large You can have high-quality, smaller file size, but the encodi 阅读全文
posted @ 2022-06-24 19:37 MoonXu 阅读(96) 评论(0) 推荐(0) 编辑
摘要:1. rtp推流 ffmpeg -re -i hama.h264 -vcodec copy -f rtp rtp://127.0.0.1:1234>test_rtp_h264.sdp ffplay -protocol_whitelist "file,udp,rtp" -i test_rtp_h264 阅读全文
posted @ 2022-03-31 07:21 MoonXu 阅读(1327) 评论(0) 推荐(0) 编辑
摘要:1.官网命令例子 ffmpeg -i input.avi -b:v 64k -bufsize 64k output.avi //修改视频码率 视频质量明显下降 ffmpeg -i input.avi -r 24 output.avi //修改帧率 为啥码率反而增大了??? 2. ffmpeg转码流程 阅读全文
posted @ 2022-03-31 05:07 MoonXu 阅读(138) 评论(0) 推荐(0) 编辑
摘要:1. h264_mp4toannexb使用 h264有两种封装,一种是annexb模式,传统模式,有startcode,SPS和PPS是在ES中,vlc里打开编码器信息中显示h264;一种是mp4模式,一般mp4 ,mkv会有,没有startcode,SPS和PPS以及其它信息被封装在contain 阅读全文
posted @ 2022-03-24 14:15 MoonXu 阅读(139) 评论(0) 推荐(0) 编辑
摘要:http://www.ffmpeg.org/releases/ 阅读全文
posted @ 2022-03-22 23:05 MoonXu 阅读(224) 评论(0) 推荐(0) 编辑
摘要:https://github.com/BtbN/FFmpeg-Builds 阅读全文
posted @ 2021-11-04 17:54 MoonXu 阅读(113) 评论(0) 推荐(0) 编辑
摘要:属性-》VC++目录-》包含目录更换为当前的include目录 阅读全文
posted @ 2021-10-29 10:48 MoonXu 阅读(238) 评论(0) 推荐(0) 编辑
摘要:ffmpeg -i ./video.m4s -i ./audio.m4s -c:v copy -c:a aac -strict experimental output.mp4 阅读全文
posted @ 2020-02-11 10:11 MoonXu 阅读(299) 评论(0) 推荐(0) 编辑
摘要:vcodec_decode_video2()的作用是解码一帧视频数据 阅读全文
posted @ 2019-09-06 00:22 MoonXu 阅读(297) 评论(0) 推荐(0) 编辑
摘要:注册复用器,编码器等的函数av_register_all() 注册编解码器avcodec_register_all() 注册复用器的函数是av_register_output_format()。 注册解复用器的函数是av_register_input_format()。 注册协议处理器的函数是ffu 阅读全文
posted @ 2019-09-05 22:39 MoonXu 阅读(348) 评论(0) 推荐(0) 编辑
摘要:当需要把视频跳转到N秒的时候可以使用下面的方法:int64_t timestamp = N * AV_TIME_BASE; av_seek_frame(fmtctx, index_of_video, timestamp, AVSEEK_FLAG_BACKWARD); av_get_channel_l 阅读全文
posted @ 2019-09-05 22:29 MoonXu 阅读(809) 评论(0) 推荐(0) 编辑
摘要:SwrContext *swr_alloc(void); // 分配重采样的上下文。 SwrContext *swr_alloc_set_opts(struct SwrContext *s, int64_t out_ch_layout, AVSampleFormat out_sample_fmt, 阅读全文
posted @ 2019-09-05 22:20 MoonXu 阅读(3635) 评论(0) 推荐(0) 编辑
摘要:swr_convert() 针对每一帧音频的处理。把一帧帧的音频作相应的重采样 int swr_convert(struct SwrContext *s, uint8_t **out, int out_count, const uint8_t **in, int in_count); 参数1:音频重 阅读全文
posted @ 2019-09-05 22:19 MoonXu 阅读(1757) 评论(0) 推荐(0) 编辑
摘要:ffplay "http://172.16.177.52:7000 /R|8|" 阅读全文
posted @ 2019-07-23 15:32 MoonXu 阅读(373) 评论(0) 推荐(0) 编辑
摘要:1.进入nginx目录,cmd启动nginx:start nginx stop nginx nginx -s reload nginx -s quit 2.验证nginx是否启动成功http:localhost:8080 3. ffmpeg -re -i F:/video/yiqi.mp4 -vco 阅读全文
posted @ 2019-06-18 22:12 MoonXu 阅读(228) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示