|
|
|
@ -787,7 +787,7 @@ func TestClientRTSPRunOnDemand(t *testing.T) { |
|
|
|
doneFile := filepath.Join(os.TempDir(), "ondemand_done") |
|
|
|
doneFile := filepath.Join(os.TempDir(), "ondemand_done") |
|
|
|
onDemandFile, err := writeTempFile([]byte(fmt.Sprintf(`#!/bin/sh |
|
|
|
onDemandFile, err := writeTempFile([]byte(fmt.Sprintf(`#!/bin/sh |
|
|
|
trap 'touch %s; [ -z "$(jobs -p)" ] || kill $(jobs -p)' INT |
|
|
|
trap 'touch %s; [ -z "$(jobs -p)" ] || kill $(jobs -p)' INT |
|
|
|
(ffmpeg -hide_banner -loglevel error -re -i testimages/ffmpeg/emptyvideo.mkv -c copy -f rtsp rtsp://localhost:$RTSP_PORT/$RTSP_PATH; sleep 86400) &
|
|
|
|
ffmpeg -hide_banner -loglevel error -re -i testimages/ffmpeg/emptyvideo.mkv -c copy -f rtsp rtsp://localhost:$RTSP_PORT/$RTSP_PATH &
|
|
|
|
wait |
|
|
|
wait |
|
|
|
`, doneFile))) |
|
|
|
`, doneFile))) |
|
|
|
require.NoError(t, err) |
|
|
|
require.NoError(t, err) |
|
|
|
|