【FFMPEG】在MacBook Pro上用FFMPEG推rtmp流
来源:互联网 发布:大学生网络知识竞赛 编辑:程序博客网 时间:2024/04/28 07:51
上一篇讲了怎么在Mac上捕获桌面和摄像头,然后保存在文件里,这里单独说下如何推rtmp流。
我先用red5建了个服务,下了他的样例oflaDemo,然后运行下面的指令
./ffmpeg -f avfoundation -pixel_format uyvy422 -i "1" -f flv rtmp://localhost/oflaDemo/pid123456789
ffmpeg支持的rtmp协议可以查下
./ffmpeg -formats | grep 'flv'
有两种
DE flv FLV (Flash Video)
D live_flv live RTMP FLV (Flash Video)
我跑live_flv,提示不支持 Requested output format 'live_flv' is not a suitable output format
只好改成flv
还会提示加像素格式,程序里面推荐使用uyvy422 所以我们再加上-pixel_format uyvy422
最后是rtmp的格式
rtmp://localhost/oflaDemo/pid123456789
rtmp://域名/服务名/name 其中name是pid123456789这个是推流者自己定义的。
想停止捕获就在shell里面按q键。
=======================我是分割线==================================
官方文档里面,AVFoundation支持的输入选项如下:
If set to true, a list of all available input devices is given showing all device names and indices.
Specify the video device by its index. Overrides anything given in the input filename.
Specify the audio device by its index. Overrides anything given in the input filename.
Request the video device to use a specific pixel format. If the specified format is not supported, a list of available formats is given and the first one in this list is used instead. Available pixel formats are: monob, rgb555be, rgb555le, rgb565be, rgb565le, rgb24, bgr24, 0rgb, bgr0, 0bgr, rgb0, bgr48be, uyvy422, yuva444p, yuva444p16le, yuv444p, yuv422p16, yuv422p10, yuv444p10, yuv420p, nv12, yuyv422, gray
Set the grabbing frame rate. Default is ntsc
, corresponding to a frame rate of 30000/1001
.
Set the video frame size.
Capture the mouse pointer. Default is 0.
Capture the screen mouse clicks. Default is 0.
- 【FFMPEG】在MacBook Pro上用FFMPEG推rtmp流
- 在hi3518EV200模组上用ffmpeg实现rtmp推流直播测试
- ffmpeg推流RTMP命令
- nginx+rtmp+ffmpeg推流
- FFmpeg+RTMP 直播 iOS推流
- ffmpeg rtmp推流 nginx搭建的rtmp服务器
- 搭建nginx rtmp直播服务器,ffmpeg模拟推流
- ffmpeg使用三:ffempg录屏编码rtmp推流
- 使用ffmpeg实现RTMP的直播推流功能
- 搭建nginx rtmp直播服务器,ffmpeg模拟推流
- FFMpeg处理RTMP流
- ffmpeg推本地视频到rtmp服务器
- ffmpeg实战教程(九)windows下ffmpeg命令+nginx + rtmp实现推流,拉流。
- FFMPEG推流nginx失败,FFMPEG日志显示rtmp server requested close错误
- FFmpeg-rtmp推流例子(着重解析函数,剖析FFmpeg流程)
- ffmpeg RTMP
- ffmpeg RTMP
- ffmpeg推流
- 树形结构的数据库表Schema设计
- iOS 旋转手势
- 2016湖南多校训练第一场
- java word转pdf
- CodeForces 633A
- 【FFMPEG】在MacBook Pro上用FFMPEG推rtmp流
- 网络协议
- 《基于MFC的OpenGL编程》Part 0 基于MFC的OpenGL基本框架
- Android 6.0 新特性(官方文档翻译)
- android从网络获取图片直接存为bitmap
- react tutorial comment遇到的问题解决
- 第三方库 KVOController 使用Demo
- Android高效加载大图、多图解决方案,有效避免程序OOM
- Tcp