I have an application where I need to burn a date/time stamp into a video (like and old-time VCR recorder) that I receive from a frame grabber.
I tried Marquee and the GUI, but this only overlays the current date/time. After a lot of forum/internet/wiki searching I came up with a couple of commands that almost work. I took the input and output command parts from the GUI and tried to marry with information I found.
What I want to do is:
- get the stream from the device (works)
- embed date/time with Marquee (kinda works)
- split stream to display and file (if one works, the other doesn't)
Code: Select all
"c:\Program Files\VideoLAN\VLC\vlc.exe" dshow:// :dshow-vdev=DFG/USB2pro :dshow-adev= :live-caching=300 :sout='#transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100,scodec=none,mux=ts,sfilter=marq{marquee="%Y-%m-%d_%H:%M:%S",position=9} :duplicate{dst="C:\Users\ME\test.mp4",dst=display}}'
Code: Select all
"c:\Program Files\VideoLAN\VLC\vlc.exe" dshow:// :dshow-vdev=DFG/USB2pro :dshow-adev= :live-caching=300 :sout='#transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100,scodec=none,mux=ts,sfilter=marq{marquee="%Y-%m-%d_%H:%M:%S",position=9}} :duplicate{dst="C:\Users\ME\test.mp4",dst=display}'
I tried other permutations with mux, different positions for options etc., but no luck. I guess one of the things I am not clear about is the chaining syntax.-- logger module started --
main: one instance mode ENABLED
main: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
stream_out_standard error: no mux specified or found by extension
main error: stream chain failed for `standard{mux="",access="",dst="'#transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100,scodec=none,mux=ts,sfilter=marq{marquee=%Y-%m-%d_%H:%M:%S,position=9}}"}'
main error: cannot start stream output instance, aborting
-- logger module stopped --
In general, the input and the output work OK, it is only the chaining and duplicating I am struggling with. I do need to have the display in parallel to the file saving for quality control.
Of course, if there is an easier way to impress the date/time, I am open to this option, too.
Thanks much! Any help or pointer is appreciated!