Page 1 of 1

Snapshots with VLC dont work with --sout

Posted: 11 Nov 2013 00:11
by rogernem
I am trying to generate snapshots from a video stream (stream never stops) of the first second every minute using the following command but it doesn´t work

Save file ONLY - WORKS
vlc -vvv STREAM_URL --run-time=63 --stop-time=63 --sout="#duplicate{dst=std{access=file,mux=asf,dst=C:\Temp\Vid.asf'},dst=nodisplay}}" vlc://quit

Generate snapshots ONLY - WORKS
vlc -vvv STREAM_URL --run-time=63 --stop-time=63 --start-time=0 --video-filter=scene --scene-format=jpg --scene-ratio=10000 --scene-prefix=snapshot --scene-path=c:\temp vlc://quit

Using command Combined - DOES NOT WORK
vlc -vvv STREAM_URL --run-time=63 --stop-time=63 --start-time=0 --video-filter=scene --scene-format=jpg --scene-ratio=10000 --scene-prefix=snapshot --scene-path=C:\temp
--sout="#duplicate{dst=std{access=file,mux=asf,dst='c:\temp\vid.asf'},dst=nodisplay}}" vlc://quit

Any ideas on what I should do to make BOTH work TOGETHER?

Obs:
--scene-ratio=10000 --> just so it will generate only 1 snapshot otherwise it will generate X snapshots based on the length of recording
--run-time=63 --stop-time=63 --> I use 63 instead of 60 secs because the 3 secs difference of recording. If I use 60 it will record only 57 sec. Any ideas why?

Thanks

Re: Snapshots with VLC dont work with --sout

Posted: 11 Nov 2013 18:22
by Rémi Denis-Courmont
You need to use transcode to apply video filters within a stream output chain.

Re: Snapshots with VLC dont work with --sout

Posted: 11 Nov 2013 18:42
by rogernem
I tried it also but it doesn't work.
Can you please provide me an example based on my command line?

I also thought about running the command to generate the snapshot (1st second) and then run the other command to save the stream but I would loose time if I do this and I cannot lose any second. What to do then?