ffmpeg CCTV方案4

编程入门 行业动态 更新时间:2024-10-10 04:25:47

ffmpeg CCTV<a href=https://www.elefans.com/category/jswz/34/1770692.html style=方案4"/>

ffmpeg CCTV方案4

ffmpeg还有一个开源项目是ffserver,可以接收ffmpeg输入流并转码为http输出。以下为具体步骤:

1. sudo apt-get install ffmpeg
2. etc/ffserver.conf config:
...
Port 8090
# bind to all IPs aliased or not
BindAddress 0.0.0.0
# max number of simultaneous clients
MaxClients 100
# max bandwidth per-client (kb/s)
MaxBandwidth 16000
# Suppress that if you want to launch ffserver as a daemon.
#NoDaemon<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 10M
</Feed><Stream live.h264>
Format rtp
Feed feed1.ffm
VideoCodec libx264
VideoFrameRate 24
VideoBitRate 100
VideoSize 1920x1080
NoAudio
#AVPresetVideo default
#AVPresetVideo baseline
#AVOptionVideo flags +global_header
#
#AudioCodec libfaac
#AudioBitRate 32
#AudioChannels 2
#AudioSampleRate 22050
#AVOptionAudio flags +global_header
</Stream>...3.
ffserver &
4.
sudo ffmpeg -i rtsp://... http://localhost:8090/feed1.ffm 

 

更多推荐

ffmpeg CCTV方案4

本文发布于:2024-02-13 06:32:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1757895.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:方案   ffmpeg   CCTV

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!