Cannot limit recording time with --run-time or -stop-time
Posted: 25 Aug 2018 21:11
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:
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.
but by adding ' --stop-time 60 vlc://quit', as below, the recording quits after a few seconds, regardless of the number following -run-time
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
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
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}
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 }
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