官网没这个命令啊allowed_media_types
Nginx+FFmpeg 海康、大华NVR实现rtsp转flv实时预览+录像回放关键词 支持RTSP协议的NVR、摄像头(海康、大华等主流设备厂家)RTSP转FLV预览+回放 工具准备 FFmpeg,推流工具 Nginx,要想实现Flv还需要安装模块ng...
ffmpeg -rtsp_transport tcp -i rtsp://admin:12345678@192.168.1.9:554/Streaming/tracks/1101?starttime=20200422t093812z -c:v libx264 -allowed_media_types video -f flv rtmp://192.168.1.75:1935/live/test
报错如下:
FLV does not support sample rate 8000, choose from (44100, 22050, 11025)
[flv @ 000001709d873480] Audio codec mp3 not compatible with flv
Could not write header for output file #0 (incorrect codec parameters ?): Function not implemented
Error initializing output stream 0:0 --
Nginx+FFmpeg 海康、大华NVR实现rtsp转flv实时预览+录像回放关键词 支持RTSP协议的NVR、摄像头(海康、大华等主流设备厂家)RTSP转FLV预览+回放 工具准备 FFmpeg,推流工具 Nginx,要想实现Flv还需要安装模块ng...