• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Automatic Delayed Replay, How?

AverageBrah

Junior Member
Is there any software to add a delay before the start of replay?

I want to set up a camera hooked up to a monitor in my gym so I can record and automatically replay a video taken 10-20 seconds after being recorded. This would be good for technique analysis.

Can this be done in VLC player? Or some other fancy software?

Thanks!:thumbsup:
 
I think you need to google "tethered video" or something similar.

There are many tools, Adobe Lightroom is one example, that will let you shoot still photos while tethered to a computer and automatically add the images to a running slideshow. I'm not sure what's software is available that will do the same with video, but it must exist.

VLC player is a nice viewer, but doesn't have that capability built in. Maybe a script could be written to monitor the folder you dump the video files to and automatically run them in VLC after the desired 10-20 sec delay, but that would take skills I don't have.

You will still need the tethering software to get the clips automatically from the camera to the computer. You will also need a live camera operator pushing the play/stop to create the individual video clips.

Maybe a mirror will work instead?
 
Curious about this. Scripting vlc could work. Here's one I put together using a screen capture (because I don't have a webcam). I imagine modifying the script for a camera would be relatively easy.

Code:
REM be sure "one instance setting is ticked in VLC preferences
@echo off
:loop
	REM format datetime for video file
	for /f "tokens=2-4 delims=/ " %%a in ('echo %date%') do (set mydate=%%c-%%a-%%b)
	for /f "tokens=1-3 delims=/:" %%a in ('echo %time%') do (set mytime=%%a%%b%%c)
	set videofile=c:\temp\%mydate%_%mytime%.mp4
	
	REM record 60s of video and dump to location
	echo will record to: %videofile%
	start "vlcrecord" "c:\vlc\vlc.exe" screen:// :screen-fps=25 :screen-width=1280 :screen-height=720 :screen-top=100 :screen-left=200 :screen-caching=100 :sout=#transcode{venc=x264{bframes=0,nocabac,ref=1,nf,level=13,crf=24,partitions=none},vcodec=h264,fps=25,vb=3000,width=1280,height=720,acodec=none}:duplicate{dst=std{mux=mp4,access=file,dst=%videofile%}}
	
	echo waiting to kill (60s)
	ping 192.0.2.2 -n 1 -w 60000 > nul
	echo killing recording
	start "vlckill" "c:\vlc\vlc.exe" vlc://quit
	
	REM pause 20s to approach monitor
	ping 192.0.2.2 -n 1 -w 20000 > nul
	
	REM play newly recorded video
	echo playing video
	start "vlcplay" "c:\vlc\vlc.exe" "%videofile%"
	REM kill after 61 seconds (--play-and-exit switch isn't working for me)
	ping 192.0.2.2 -n 1 -w 61000 > nul
	start "vlckill" "c:\vlc\vlc.exe" vlc://quit
	
	REM pause for 20 seconds so you can reset
	echo pausing for 20 seconds
	ping 192.0.2.2 -n 1 -w 20000 > nul
	
	goto loop
 
Last edited:
I've always been fascinated by "scripting" to automatically do what a human operator would otherwise have to be present to do, though I have no idea how.

What language is that written in? I'm reading the Wikipedia entry on scripting language and it's very interesting.
 
Back
Top