Page 1 of 1

Streaming multiple instances shortens the record time

Posted: 31 Jan 2014 23:24
by markn62
Using an x86 and ver 2.1.0. One instance of VLC records the full hour. If I add a second instance to the batch script the last instance works fine, the first instance stops typically after 3 minutes but occasionally varies something short of the full record. Seems the "--run-time=x" may be getting fouled. Tried running two separate scripts in the windows scheduler offset by 1 minute and the results were worse and more random. In all cases the scripts are killed by the scheduler 1 minute after calling the script shown below.

Is there a minor script change that will resolve this or is another non-relative method having a absolute time "end" command needed? Don't find an attachment option so I included the script in this message.

Thanx...

---------------------------------

@echo off

set hour=%time:~0,2%
if "%hour:~0,1%" == " " set hour=0%hour:~1,1%
set min=%time:~3,2%
if "%min:~0,1%" == " " set min=0%min:~1,1%
set secs=%time:~6,2%
if "%secs:~0,1%" == " " set secs=0%secs:~1,1%
set year=%date:~12,2%
set month=%date:~4,2%
if "%month:~0,1%" == " " set month=0%month:~1,1%
set day=%date:~7,2%
if "%day:~0,1%" == " " set day=0%day:~1,1%
set datetimef=%month%.%day%.%year%_%hour%.%min%

start vlc -vvv rtsp://user:pw@x.x.x.x:554/mpeg4cif --sout=file/mp4:"H:\Surveillance\VideoCam1\%datetimef%.mp4" --run-time=3600 --play-and-exit --qt-start-

REM Delay for 5 seconds
ping x.x.x.x -n 1 -w 5000 >nul

start vlc -vvv rtsp://user:pw@x.x.x.x:554/mpeg4 --sout=file/mp4:"H:\Surveillance\VideoCam2\%datetimef%.mp4" --run-time=3600 --play-and-exit --qt-start-

Re: Streaming multiple instances shortens the record time

Posted: 03 Feb 2014 23:12
by markn62
Could it be caching needs to be more liberally set for multiple instances to co-exist? Does anyone know the default values for these if not specified in the script?

--file-caching specifies caching for local files,
--network-caching specifies caching for network resources,
--live-caching specifies caching for capture devices and
--disc-caching specifies caching for local optical media

Re: Streaming multiple instances shortens the record time

Posted: 04 Feb 2014 04:53
by markn62
Even tried this simple script and find the first instance will record for 3 minutes and the second instance will be continuous record. So it has nothing to do with the --run-time or --play-and-exit commands.

@echo off
start vlc -vvv rtsp://user:pw@x.x.x.x:554/mpeg4cif --sout=file/mp4:"H:\Surveillance\VideoCam1\test.mp4" --qt-start-
start vlc -vvv rtsp://user:pw@x.x.x.x:554/mpeg4 --sout=file/mp4:"H:\Surveillance\VideoCam2\test.mp4" --qt-start-
EXIT

Re: Streaming multiple instances shortens the record time

Posted: 06 Feb 2014 01:50
by markn62
Looks like I'm not the only one struggling with this.
https://forum.videolan.org/viewtopic.php?f=13&t=115070

Re: Streaming multiple instances shortens the record time

Posted: 25 Feb 2014 19:46
by markn62
And not the only one getting zero responses.