Streaming multiple instances shortens the record time

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
markn62
Blank Cone
Blank Cone
Posts: 16
Joined: 31 Jan 2014 21:30

Streaming multiple instances shortens the record time

Postby markn62 » 31 Jan 2014 23:24

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-

markn62
Blank Cone
Blank Cone
Posts: 16
Joined: 31 Jan 2014 21:30

Re: Streaming multiple instances shortens the record time

Postby markn62 » 03 Feb 2014 23:12

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

markn62
Blank Cone
Blank Cone
Posts: 16
Joined: 31 Jan 2014 21:30

Re: Streaming multiple instances shortens the record time

Postby markn62 » 04 Feb 2014 04:53

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

markn62
Blank Cone
Blank Cone
Posts: 16
Joined: 31 Jan 2014 21:30

Re: Streaming multiple instances shortens the record time

Postby markn62 » 06 Feb 2014 01:50

Looks like I'm not the only one struggling with this.
https://forum.videolan.org/viewtopic.php?f=13&t=115070

markn62
Blank Cone
Blank Cone
Posts: 16
Joined: 31 Jan 2014 21:30

Re: Streaming multiple instances shortens the record time

Postby markn62 » 25 Feb 2014 19:46

And not the only one getting zero responses.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 80 guests