Hi, and sorry for being a noob!
I’d like to capture a raw video file using my Waveshare IMX219-160IR camera on a Jetson nano, and then experiment with various encodings of that file. I am able to succeeding in capturing video and storing it in a file using a line like this:
sudo gst-launch-1.0 nvarguscamerasrc ! ‘video/x-raw(memory:NVMM), width=(int)1280, height=(int)720, st=1, wb=1, format=(string)NV12, framerate=(fraction)15/1’ ! nvvidconv flip-method=2 ! ‘video/x-raw, width=(int)1280, height=(int)720, format=(string)BGRx’ ! videoconvert ! filesink location=video.BGRx
Using ffmpeg I can read in this file and convert it to various other formats and view it using totem. But try as I might, I can’t seem to get any kind of gstreamer pipeline set up to further process the file video.BGRx. For example, if I try the following
gst-launch-1.0 filesrc location=video.BGRx ! ‘video/x-raw, width=(int)1280, height=(int)720, format=(string)BGR, framerate=(fraction)15/1’ ! videoconvert ! video/x-raw, format=GRAY8 ! nvvidconv ! omxh264enc ! h264parse ! qtmux ! filesink location=video.h265
I get an error message like this:
Pipeline is PREROLLING …
Framerate set to : 15 at NvxVideoEncoderSetParameterNvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
H264: Profile = 66, Level = 40
WARNING: from element /GstPipeline:pipeline0/GstVideoConvert:videoconvert0: Internal GStreamer error: code not implemented. Please file a bug at http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer.
Additional debug info:
gstvideofilter.c(293): gst_video_filter_transform (): /GstPipeline:pipeline0/GstVideoConvert:videoconvert0:
invalid video buffer received
I’ve tried many different variations on the second gst-launch-1.0 command, and just can’t convert the raw video to anything. Any suggestions?
Thanks!
Bruce