Snapshots with VLC dont work with --sout

*nix specific usage questions
rogernem
New Cone
New Cone
Posts: 3
Joined: 11 Nov 2013 00:01

Snapshots with VLC dont work with --sout

Postby rogernem » 11 Nov 2013 00:11

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Snapshots with VLC dont work with --sout

Postby Rémi Denis-Courmont » 11 Nov 2013 18:22

You need to use transcode to apply video filters within a stream output chain.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

rogernem
New Cone
New Cone
Posts: 3
Joined: 11 Nov 2013 00:01

Re: Snapshots with VLC dont work with --sout

Postby rogernem » 11 Nov 2013 18:42

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?


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 38 guests