Codex Issue on Jetson Orin NX Developer Kit

We are working in Python to produce videos. However, while we can open the video files in python, we can’t open them in any other program (that we have tested). FYI, I am not the software engineer for the project but am asking this forum to see if there might be a simple fix. Thank you.

Here is a snippet of our code:

video_frame_res = (2560, 1440)
fourcc = cv2.VideoWriter_fourcc(*‘mp4v’)
output_filename = “output_{}.mp4”.format(time.strftime(“%Y%m%d_%H%M%S”))
out = cv2.VideoWriter(output_filename, fourcc, 30.0, video_frame_res)

Please try to run gstreamer pipelin in cv2.VideoCapture() and cv2.VideoWriter(). Here is a sample for reference:
Displaying to the screen with OpenCV and GStreamer - #9 by DaneLLL

Thank you. I will relay.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.