I'm trying to record video with gstreamer in C (iMX8S with Yocto). It's look good until I want to split video output file and I realize a problem:
- The time to initial VPU and prepare to record too long: 3.5s. I used bash script to make a loop but each video recorded, I lose 3.5s, it's too much. This is the output.
====== IMXV4L2SRC: 4.0.9 build on Dec 9 2016 00:05:14. ======
[INFO] Product Info: i.MX6Q/D/S
====== VPUENC: 4.0.9 build on Dec 9 2016 00:05:34. ======
wrapper: 1.0.65 (VPUWRAPPER_ARM_LINUX Build on Dec 8 2016 23:59:08)
[INFO] ringBufferEnable 0, chromaInterleave 1, mapType 0, linear2TiledEnable 0
[WARN] VPU iram is less than needed, some parts don't use iram
--> So, I'm trying to make a loop and the initial VPU will be executed only once to reduce to reduce losing time(3.5s each video). I used "gst_element_seek" but It seems like not working. So I switch to use setting state of pipeline.
What should I do now?
Thank you so much,