I am having problems capturing a few seconds of an HTTP-streamed mjpg on a regular schedule, and appending it to a locally-saved file. The stream is coming from a static webcam with no audio. I'd like to set up something that schedules a short daily capture, ultimately creating a time-lapse video.
First I tried a "dump" to file using the following code (where "xxx.xxx.xxx.xxx" is the remote server IP):
Code: Select all
"c:\program files\videoLAN\VLC\vlc.exe" vlc -I dummy --run-time=10 http://xxx.xxx.xxx.xxx/video.mjpg :demux=dump :demuxdump-file=test.mjpg --demuxdump-append vlc://quit
Suspecting a problem with the functionality of a dump I tried transcoding, as follows:
Code: Select all
"c:\program files\videoLAN\VLC\vlc.exe" vlc -I dummy --run-time=20 http://xxx.xxx.xxx.xxx/video.mjpg --sout=#transcode{vcodec=mp2v}:std{access=file{append},dst=test.mpg} vlc://quit
I want to get the best possible capture of this video at its native resolution and frame rate. If anyone can offer possible solutions for both the capture issue and appending to the existing file I'd be really grateful.
Dave