DATA RECOVERY UNION > Articles > Vlc media player – Automate VLC schedule recording
Posted in

Vlc media player – Automate VLC schedule recording

Can someone help me to Schedule a recording with VLC. My scenario is, I want to schedule record a stream from my dreambox to PC with VLC, I can do that manually but I want to automate it. I want VLC to launch at let say 22 Apr 13 at 18:00hrs record my stream from dreambox and save that stream on the PC and stop recording at lets say 22 Apr 13 at 19:00hrs.

This is the command I use to launch VLC and record a stream from dreambox to PC and save it to a file.

"C:Program Files (x86)VideoLANVLCvlc.exe" http://xxx.xxx.xxx.xxx:31344 :sout=#duplicate{dst=file{dst=C:\\Users\\name\\Desktop\\JSC.ts},dst=display} :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep

The above command if launched from command prompt will record the stream and save on PC. what it won’t do is, it won’t stop VLC at certain time or after certain period. you need to stop it manually.

Now what I want is to accomplish the above but with start and stop time.

Please can anyone give me step by step on how to do that.

Solution:

I think you can use the ” –run-time=3600 ” parameter like this

"C:Program Files (x86)VideoLANVLCvlc.exe" http://xxx.xxx.xxx.xxx:31344 :sout=#duplicate{dst=file{dst=C:\\Users\\name\\Desktop\\JSC.ts},dst=display} :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep --run-time=3600 vlc://quit

It will run for about an hour (3600s)

๐Ÿ’ 

๐Ÿ”ต Best-selling hard drives, USB flash drives & SSDs everyone's buying.

Fast, reliable, and on sale now. Thousands pick these weekly โ€” don't miss Amazon's lowest storage prices.

โšก Top 10 Bestsellers
๐Ÿ† 4.7โ˜…+ Reviews
๐Ÿ“ฆ Prime Shipping
๐Ÿ‘‰ See today's best-selling Data storage on Amazon.com HDD ยท USB Flash Drives ยท SSD ยท External Drives
๐Ÿ›’
โœ… Updated hourly โ€” Amazon real-time ranking ๐Ÿ”ฅ Limited stock deals ๐Ÿ”— Affiliate
โญ Click to see complete best-selling list โญ