VLC 3.0.6 - Command Line Issues

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.
#thweiss
Cone that earned his stripes
Cone that earned his stripes
Posts: 136
Joined: 07 Nov 2017 07:13
Location: Germany

VLC 3.0.6 - Command Line Issues

Postby #thweiss » 14 Jan 2019 14:34

The commands :run-time=30 (--run-time=30) or :stop-time=30 (--stop-time=30) do not work in VLC 3.0.6 (32-Bit) with Windows 7 (64-Bit).

Any Ideas to activate the "time" control commands in the command line?
- https://wiki.videolan.org/VLC_command-line_help/

Script Example (Record.bat):
@echo off
start "" "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --qt-start-minimized :run-time=60 :sout-file-format http://zdf0910-lh.akamaihd.net/i/de09_v ... aster.m3u8 :sout=#file{dst="C:\\Temp\\Video_%date%_%time:~0,2%-%time:~3,2%-%time:~6,2%.ts"} vlc://quit

Thanks for Your Help.
Thomas

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: VLC 3.0.6 - Command Line Issues

Postby unidan » 15 Jan 2019 10:52

Hi, I would say that you have to put the option after the media:

From the vlc help:

Code: Select all

Options-styles: --option A global option that is set for the duration of the program. -option A single letter version of a global --option. :option An option that only applies to the stream directly before it and that overrides previous settings.

#thweiss
Cone that earned his stripes
Cone that earned his stripes
Posts: 136
Joined: 07 Nov 2017 07:13
Location: Germany

Re: VLC 3.0.6 - Command Line Issues

Postby #thweiss » 16 Jan 2019 21:12

@unidan
Thanks for your hints. I tryed different Changes for the Script with no success.
In my last Tests I worked with VLC-Player 64Bit Version 3.0.6 and Windows 10 64-Bit.

For Example I put the option :run-time=60 and :sout-file-format after the Media-Link with an instantly break for the Stream-Recording.

I belive there is someone faulty in the VLC Version 3.0.6 by useing the defined commands in the command-line.

#thweiss
Cone that earned his stripes
Cone that earned his stripes
Posts: 136
Joined: 07 Nov 2017 07:13
Location: Germany

Re: VLC 3.0.6 - Command Line Issues

Postby #thweiss » 24 Jan 2019 09:43

@unidan

Sorry for my late answer.
I tested a changed command line with an rtmp-Live-Stream and the recording function works fine.
VLC-Version 3.0.6 (32-Bit) with Windows 7 (64-Bit)

Example RTMP Live-Stream:

Code: Select all

@echo off start "" "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --qt-start-minimized --sout-file-format "rtmp://p3-6.mov.at:1935/live/weekstream" "--sout=#file{dst="C:/Temp/RTMP-%%Y-%%m-%%d-%%H-%%M-%%S.ts"}" --no-sout-all --sout-keep --run-time=10 vlc://quit

Than I changed the RTMP Live-Stream against the HLS Live-Stream in the same Command-Line.

Example HLS Live-Stream:

Code: Select all

@echo off start "" "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --qt-start-minimized --sout-file-format "http://zdf0910-lh.akamaihd.net/i/de09_v1@392871/master.m3u8" "--sout=#file{dst="C:/Temp/HLS-%%Y-%%m-%%d-%%H-%%M-%%S.ts"}" --no-sout-all --sout-keep --run-time=10 vlc://quit
In the Script with HLS Live-Stream the VLC-Player is crashed and could not record the Stream.
The saved File ("HLS-2019-01-24-...ts") has a Size of 0kb.

Have You any Ideas to avoid the Crash with HLS Streams?

Thomas
Last edited by #thweiss on 24 Jan 2019 10:25, edited 1 time in total.

#thweiss
Cone that earned his stripes
Cone that earned his stripes
Posts: 136
Joined: 07 Nov 2017 07:13
Location: Germany

Re: VLC 3.0.6 - Command Line Issues

Postby #thweiss » 24 Jan 2019 10:24

Edit 1:

This Example-Script works also fine to record a RTMP Live-Stream.

Code: Select all

@echo off start "" "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --qt-start-minimized rtmp://p3-6.mov.at:1935/live/weekstream --sout-file-format --sout=#file{dst="C:\\Temp\\Video-RTMP_%date%_%time:~0,2%-%time:~3,2%-%time:~6,2%.ts"} --run-time=10 vlc://quit

#thweiss
Cone that earned his stripes
Cone that earned his stripes
Posts: 136
Joined: 07 Nov 2017 07:13
Location: Germany

Re: VLC 3.0.6 - Command Line Issues

Postby #thweiss » 25 Jan 2019 21:58

I tested the last Script for the VLC-Player 3.0.6 (64-Bit) with a http Live-Stream.
The VLC-Player is "crashed" or close immediately and the saved File "HLS-2019-01-25...ts" has 0KB Size.

Example-Script for recording http Live-Stream

Code: Select all

@echo off start "" "C:\Program Files\VideoLAN\VLC\vlc.exe" --qt-start-minimized --sout-file-format "http://zdf0910-lh.akamaihd.net/i/de09_v1@392871/master.m3u8" "--sout=#file{dst="C:/Temp/HLS-%%Y-%%m-%%d-%%H-%%M-%%S.ts"}" --no-sout-all --sout-keep --run-time=10 vlc://quit

The VLC-Log is in the following Link.
- https://justpaste.it/5gxfn

Thomas

#thweiss
Cone that earned his stripes
Cone that earned his stripes
Posts: 136
Joined: 07 Nov 2017 07:13
Location: Germany

Re: VLC 3.0.6 - Command Line Issues

Postby #thweiss » 26 Jan 2019 21:08

In my latest Script-Example I used an MPEG-Dash Live-Stream to record in a File with VLC 3.0.6 (64-Bit) and Windows 10.
The VLC-Player "crashed" or close after same Secounds and the saved File "Video-MPD_26.01.2019...ts" has 0KB Size.

Example-Script for recording MPEG Dash Live-Stream

Code: Select all

@echo off start "" "C:\Program Files\VideoLAN\VLC\vlc.exe" --qt-start-minimized https://stream.polar.cz/vctv/vctvlive-2/manifest_w1967880673.mpd --sout-file-format --sout=#file{dst="C:\\Temp\\Video-MPD_%date%_%time:~0,2%-%time:~3,2%-%time:~6,2%.ts"} --run-time=10 vlc://quit

Hope someone can repair the Issue.

The VLC-Log is in the following Link.
- https://justpaste.it/2eiy6

Thomas


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 25 guests