Latency tester
Methodology
- Generate a 60 fps video of QR codes
- Process the video through the transmission system
- Record a side-by-side video of the original and transmitted stream
- Run through
analyze.js
script to get the latency numbers
Intended use
Measure end-to-end latency of RC VTXs, analog to digital video converters etc
Video generation
This is not needed if you use the pre-generated video sync.mp4
.
- Use
generate-images.js
to create the raw pngs - Run the command
ffmpeg -r 60 -s 1024x768 -i output/%07d.png -vcodec libx264 -crf 25 -pix_fmt yuv420p sync.mp4
to generate video
Notes:
- Generation is for 60 fps, which means the lowest latency measurement will be ~17ms.
- Code is not optimized, takes a while
Analysis
TODO