提交 41314aec authored 作者: blu's avatar blu

ipc emulator

上级 157489ee
FROM jrottenberg/ffmpeg:4.1-alpine
RUN apk update && apk --no-cache add tini
COPY run.sh /bin/run.sh
RUN chmod +x /bin/run.sh
STOPSIGNAL SIGINT
ENTRYPOINT [ "tini", "-v", "--", "/bin/run.sh" ]
#!/bin/sh
if [ "$#" -lt 2 ]; then
echo "usage: <path_to_video_file> <simutate_IPC_SN> [rtsp_server_addr]"
exit 1
fi
if [ "$#" -eq 3 ]; then
ffmpeg -stream_loop -1 -re -i $1 -codec copy -rtsp_transport tcp -r 18 -f rtsp $3/$2
else
ffmpeg -stream_loop -1 -re -i $1 -codec copy -rtsp_transport tcp -r 18 -f rtsp rtsp://qz.videostreaming.ilabservice.cloud/$2
fi
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论