B
B
Benderatorr2016-07-25 08:37:41
CCTV
Benderatorr, 2016-07-25 08:37:41

Why is vlc not responding to statements in a script?

Batnik

@echo off
:L
for /f "delims=." %%i in ('wmic.exe OS get LocalDateTime ^| find "."') do set sDateTime=%%i
"C:\Program Files\VideoLAN\VLC\vlc.exe" -vvv "rtsp://192.168.50.97:554/ch01.264" --sout=file/ts:"D:\Camera\keno\video-%sDateTime%.ts"  --run-time=900 --play-and-exit --qt-start-minimized
goto :L

the rtsp stream is written with the Chinese camera KENO.
But after the specified time, vlc writes to the same file.
--run-time=900 combined with vlc://quit - does not help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WayMax, 2016-07-25
@Benderatorr

Try ffmpeg + ffserver instead of vlc

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question