Page 1 of 1

Cannot limit recording time with --run-time or -stop-time

Posted: 25 Aug 2018 21:11
by GeorgeC
Hello again,

I'm trying to record streamed audio from online radio stations using Windows batch files. For regular mp3 streams, I do not have any problem

For example recording 60 secs from JazzFM91, I can do this in a batch file, and it works:

Code: Select all

vlc http://streamerepsilon.jazz.fm:8000 --sout=#std{access=file,mux=mp3,dst=C:\Users\georg\Desktop\JazzFM91.mp3} --run-time 60 vlc://quit
But for ERTU stations from Egypt, e.g. "SharkAwsat" and similar streams, vlc makes a proper, but not time limited, recording to file if ' --run-time 60 vlc://quit' is not added.

Code: Select all

vlc http://msertupoc.streaming.mediaservices.windows.net/ab8e40e8-64a3-4fd7-8d25-ca0b77ff09a7/c578894a-5146-4f41-aa9a-e88d6b9fa429.ism/manifest(format=mpd-time-csf) --sout=#std{access=file,mux=ts,dst=C:\Users\georg\Desktop\SharkAwsat.mp4}
but by adding ' --stop-time 60 vlc://quit', as below, the recording quits after a few seconds, regardless of the number following -run-time

Code: Select all

vlc http://msertupoc.streaming.mediaservices.windows.net/ab8e40e8-64a3-4fd7-8d25-ca0b77ff09a7/c578894a-5146-4f41-aa9a-e88d6b9fa429.ism/manifest(format=mpd-time-csf) --sout=#std{access=file,mux=ts,dst=C:\Users\georg\Desktop\SharkAwsat.mp4 --run-time 60 vlc://quit }
Why does the last code not work, and how to fix it? Thanks

gc

Note: The long alpha-numeric text in the URL 'ab8e40e8-64a3-4fd7-8d25-ca0b77ff09a7/c578894a-5146-4f41-aa9a-e88d6b9fa429' changes every few weeks. The text included in the above example, works today, but may need to be changed in a week or so. gc

Re: Cannot limit recording time with --run-time or -stop-time

Posted: 30 Aug 2018 09:59
by Jean-Baptiste Kempf
VLC version? It was broken in 3.0.2&3.0.3

Re: Cannot limit recording time with --run-time or -stop-time

Posted: 30 Aug 2018 17:02
by GeorgeC
VLC version? It was broken in 3.0.2&3.0.3
3.03 Vetinari

Re: Cannot limit recording time with --run-time or -stop-time

Posted: 31 Aug 2018 13:44
by Jean-Baptiste Kempf
Try 3.0.4 from nightly build.

Re: Cannot limit recording time with --run-time or -stop-time

Posted: 02 Sep 2018 19:23
by GeorgeC
Try 3.0.4 from nightly build.

Still no success with September 2 Nightly Build: vlc-3.0.4-20180902-0549-win64.exe