Hi,
I am looking into creating a dataset for my machine learning application.
I have an e-Con low light camera installed on Jetson TX2. Using GStreamer I want to capture a Picture into file ever sec for a long period of time (something that at the end looks like a timelapse).
Does anyone have any idea of this pipeline can look like, more importantly that its stable for a long period of time.
Any recommendations of test pipeline would be really appreciated.
You may try the following:
-
Use an external disk to be sure you won’t fill your system partition, create a directory there for storing pictures.
-
In that directory, you can record 1 picture per second with:
gst-launch-1.0 nvcamerasrc ! nvvidconv ! queue ! videorate ! video/x-raw,framerate=1/1 ! jpegenc ! multifilesink location=./frame%06d.jpg
Note that you will have to stop manually with Ctrl-C.
- Now make a h264 video @30fps in matroska container with:
gst-launch-1.0 -e multifilesrc location="frame%06d.jpg" caps="image/jpeg,framerate=30/1" ! jpegdec ! omxh264enc ! matroskamux ! filesink location=timelapse.mkv
Thank you, Runned it overnight, so far works perfectly fine.
Just curious what happens after 27 hours, as there are 8 zeros in the image name. will the naming be automatically expanded upon?