同步操作将从 github克隆/ffmpeg4_camera_to_rtmp 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Recently, due to the need of work plan, research on ffmpeg was started.
For the command line push service, it is actually very simple. But it is not easy to control when it is integrated in its own program. Especially when the parent process shuts down abnormally, the ffmpeg process may not be killed, causing some exceptions. In addition, the biggest problem with the command line is that it cannot manage the ffmpeg push stream in a fine-grained manner.
ffmpeg bought some courses online and found that most of them are for ffmpeg3, the current ffmpeg is mainly 4. The syntax is quite different.
After a week of research, I found that a lot of code on the Internet is somewhat problematic.
Finally, I used ffmpeg4 to implement a version of the camera to capture the stream. Some pits are marked here. Some of the difficulties and tricks are not explained in many places, I will record them here.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。