Как мне записать в медиаплеере VLC по расписанию?

2984
syrex

У меня есть поток IP, поступающий через медиаплеер VLC в Windows 7, и я хотел бы автоматизировать процесс открытия потока и начать запись в указанное время, а также остановить VLC и запись в указанное время.

Есть ли способ, которым я могу сделать это?

2

1 ответ на вопрос

1
tbenz9

Yes this can be done. Since your using Windows I'd recommend looking into the Windows Event Scheduler. Official Microsoft documentation can be found HERE.

Since you don't provide any details about where the stream is coming from I can only give you general guidance. But it's going to look something like this.

  1. Setup Windows Event Scheduler to run a batch script when you want the stream to open and start recording.
  2. Create a batch script that opens the IP stream, and starts recording.

The script is going to look something like this:

 "C:/Program Files/VideoLAN/VLC/vlc.exe http://host[:port]/url" "#transcode:duplicate}" 

This is extremely rough and will require lots of tweaking for it to work. I'd recommend reading the command line help HERE.

Похожие вопросы