Record video with current timestamp?

About encoding, codec settings, muxers and filter usage
ppasler
New Cone
New Cone
Posts: 3
Joined: 22 Sep 2016 13:49

Record video with current timestamp?

Postby ppasler » 02 Nov 2016 09:43

Hey guys,

I want to record from my webcam with vlc and show / save the current time within the videodata. It is not about the filename (Which would be also helpful: https://forum.videolan.org/viewtopic.ph ... 601773fa93), the time should be shown inside the frames (as subtitle would be cool, so I can turn it on / off). There are some questions about it on google, but without satisfying answers.

I would prefer recording via command line.

Hope anyone can help!

Greetz paul

ppasler
New Cone
New Cone
Posts: 3
Joined: 22 Sep 2016 13:49

Re: Record video with current timestamp?

Postby ppasler » 12 Nov 2016 14:11

You can apply a marquee filter to stream the current time within the video data

Code: Select all

marq{marquee='%Y-%m-%d_%H:%M:%S',position=6}
This is the full command to stream from your webcam with the current time

Code: Select all

vlc dshow:// :dshow-vdev=%cam1% :dshow-adev=%mic1% --sout "#transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100,sfilter=marq{marquee='%%Y-%%m-%%d_%%H:%%M:%%S',position=6}}:file{dst=%file1%,no-overwrite}"


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 33 guests