Hello, I’m trying to save the camera output I get from my device to a mp4 file. I’m using a Jetson Orin Nano device with a Rpi HQ camera. I cannot use nvidias hardware encoders since theyre not supported.
So far I’ve tried to do it like this:
gst_args = (
"gst-launch-1.0",
"nvarguscamerasrc",
"!",
"video/x-raw(memory:NVMM), width=1280, height=720, framerate=20/1, format=NV12",
"!",
"nvvidconv",
"!",
"video/x-raw, format=I420",
"!",
"x264enc",
"!",
"mp4mux",
"!",
"filesink",
f"location={filename}",
)
even though this runs without any errors, I cannot playback the video I recorded, and it tells me that the video is corrupt. I believe I’m missing a small point and forgot to convert something to a different format but I cant seem to find it, appreciate any help, thanks!