which plugin will be easier on resources to create a black static image: imagefreeze
(fed with a short video with just black) or videotestsrc pattern=black
?
With imagefreeze
you’ll have to worry about pulling from the file system, decoding, etc. If you need to restrict how long videotestsrc
runs for, you can adjust the num-buffers
property or perform a seek on the pipeline with an end time.
gst-launch-1.0 videotestsrc pattern=black num-buffers=1 ! imagefreeze ! ...
will probably be the most efficient way of doing that.
1 Like