Replies: 1 comment
-
Hello, i have various hypothesis about this. First of all, try adding the Second, i need to understand what you mean with "the videos won't play"
|
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.13.1
Which operating system are you using?
OS
Describe the issue
When getting inbound rtsp stream we are calling onpublish to record the stream to segments using this command:
runOnPublish: ffmpeg.exe -rtsp_transport tcp -i rtsp://localhost:$RTSP_PORT/$RTSP_PATH -vcodec copy -acodec copy -f segment -strftime 1 -segment_time 60 -segment_format mp4 ch3out%Y-%m-%d_%H-%M-%S.mp4
ffmpeg.exe is sitting in the same directory as the rtsp-simple-server.exe for testing.
The files are created properly and ffmpeg runs. But the videos will not play.
If i run the exact same command OUTSIDE of rtsp-simple-server, it works fine and file plays perfectly.
Describe how to replicate the issue
Replicate:
Push to the server, run onpublish command from above.
It saves the files and does everything, but the files won't play.
Do the same thing , but run the ffmpeg command (from the same folder as ffmpeg.exe and simpleserver) outside of rtsp simple server, it all works. (Of course change rtsp_port/path to the correct info).
for example:
ffmpeg.exe -rtsp_transport tcp -i rtsp://localhost:8554/ch3 -vcodec copy -acodec copy -f segment -strftime 1 -segment_time 60 -segment_format mp4 ch3out%Y-%m-%d_%H-%M-%S.mp4
Beta Was this translation helpful? Give feedback.
All reactions