Can't restream with different parameters #290
Unanswered
Itach1Uchixa
asked this question in
Questions
Replies: 2 comments
-
Hello, the runOnPublish command is run only when someone is publishing to the path - in this case you're not publishing, you're using the path as a proxy, so a working configuration could be paths:
all:
office:
source: rtsp://external-ip-camera:554/
sourceProtocol: tcp
runOnInit: ffmpeg -re -i rtsp://localhost:$RTSP_PORT/$RTSP_PATH -c:v libx264 -preset ultrafast -f rtsp rtsp://localhost:$RTSP_PORT/compressed
runOnInitRestart: yes ensure that ffmpeg is installed on the system - it is NOT bundled with the Docker image - and rtsp-simple-server is installed on the system. If necessary, try debugging a little, for instance by introducing a starting delay paths:
all:
office:
source: rtsp://external-ip-camera:554/
sourceProtocol: tcp
runOnInit: sh -c 'sleep 5; ffmpeg -re -i rtsp://localhost:$RTSP_PORT/$RTSP_PATH -c:v libx264 -preset ultrafast -f rtsp rtsp://localhost:$RTSP_PORT/compressed'
runOnInitRestart: yes |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you very much. You doing great work! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Which version are you using?
v0.12.2
Which operating system are you using?
Linux
Describe the problem
If I use config below
config.yml
I can watch
rtsp://localhost:8554/office
with vlc player. I wanted to change parameters of stream. I tried everything but server output is:I also tried to create another stream with runOnInit and faced same problems.
Tried docker and standalone versions.
Did you attach a network dump?
no
Beta Was this translation helpful? Give feedback.
All reactions