May I ask which demo converts standard mp4 into standard mp4? I see 07_video_convert and 15_mutivideo_encode, which extract the data of each frame, but they are not standard mp4 or mov files. The converted files cannot be played by ordinary player, is there something wrong with my understanding?
Hi,
The jetson_multimedia_api interface is low-level interface. It demonstrates hardware codec to encode to H264 stream. For muxing H264 stream into mp4 or mkv, we suggest use gstreamer. You can run like:
$ gst-launch-1.0 -e videotestsrc num-buffers=150 ! nvvidconv ! nvv4l2h264enc ! h264parse ! qtmux ! filesink location=test.mp4
For more examples, please check
Accelerated GStreamer — NVIDIA Jetson Linux Developer Guide 1 documentation
Thank you for your answer. Is there an API method? I need to generate video in real time, and it may take a long time to record, so the file will be very large and the command line method cannot be used.
Hi,
The existing solution is to use gstreamer. For using jetson_multimedia_api, you need to implement muxer code. Can refer to source code of ffmpeg.
thank you
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.