run save video code has no any warning message.
But, when play back using the same play back code resulted following error message:
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstVideoParse:videoparse0/GstRawVideoParse:inner_rawvideoparse: No valid frames found before end of stream
Additional debug info:
gstbaseparse.c(3603): gst_base_parse_loop (): /GstPipeline:pipeline0/GstVideoParse:videoparse0/GstRawVideoParse:inner_rawvideoparse
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
I don’t know what is the problem of my save video code or the play back code as I am new to gstreamer.
filesink is a cpu only plugin and cannot use NVVM memory as outputted by nvv4vl2camerasrc.
You would have to insert nvvideoconvert in between for copying from NVMM to standard memory:
Be aware however that raw frames result in huge size per frame, so save into external storage, not to your root filesystem, if filled up it would make your system unsable.
Thanks for kind reply.
The code can save the video as a file.
The recorded time is 29.4946 S, but play back is only 2.9211 S. I don’t know what’s wrong with it, frame lost or something else?
Hi,
Saving raw UYVY frames take heavy load and may not be able to reach source rate. Also timestamp information is not included. Suggest you record the frames into mp4 or mkv.
Hi DaneLLL,
Thank you very much for your kind suggestion.
I have noticed that to save raw UYVY frames, the write speed requirement for Micro SD card is very high. Would you please let me know what is the max write speed supported from Jetson Nano and which type of high speed SD card supported by Jetson Nano as well (SD XC V30, V60 or V90?). It seems that Jetson Nano does not support UHS type micro SD card, is it?
On the other hand, would you please give me your suggestion which video format (MP4 or MKV) and which encode mode (H264, H265, VP8) can get better video (no audio) quality and the best still image from the recorded video?
What is the max micro SD card storage size supported by Jetson Nano?
Thanks