使用FFmpeg将摄像头rtsp裸码流推到rtmp服务器

使用FFmpeg将摄像头rtsp裸码流推到rtmp服务器
Shell #!/bin/bash SERVICE="ffmpeg" RTSP_URL="rtsp地址" RTMP_URL="rtmp地址" COMMAND="sudo ffmpeg -rtsp_transport tcp -i ${RTSP_URL} -vcodec copy -an -f flv ${RTMP_URL}" if sudo /usr/bin/pgrep $SERVICE > /dev/null then echo "${SERVICE} is already running." else echo "${SERVICE} is NOT running! Starting now..." ...


ipcam2rtmp脚本

ipcam2rtmp脚本
Shell #!/bin/bash # IPcam2rtmp # Version 1.3 # Look at http://lxy.me/ipcam2rtmp.html for more info # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation; either version 2 of the License, or (at your # option) any lat...