The output video with file sink is not saved properly in deepstream-test2

• Hardware Platform (Jetson / GPU) NVIDIA A100-SXM
• DeepStream Version 6.0
• TensorRT Version 8.0.1
• NVIDIA GPU Driver Version (valid for GPU only) 470.57.02
• Issue Type( questions, new requirements, bugs) questions

I am using deepstream:6.0-devel container. I replaced EGLSink with filesink in deepstream-test2 app . The video is getting saved but it is only 90kb and it is not playing. I tried with different input video.

 sink = Gst.ElementFactory.make("filesink","nvvideo-renderer")
 if not sink:
    sys.stderr.write("Unable to create filesink \n")
sink.set_property("location", "out.mp4")
sink.set_property("sync", 1)
sink.set_property("async", 0)

hi user73067:
there are some suggestions if you only replaced EGLSink with filesink:
1 about “sink.set_property(“location”, “out.mp4”)”, mp4 is used to encapsulate encoded data, you need to encode raw data if need mp4 file, please refer to nvvideoconvert, nvv4l2h264enc and other plugins, please refer to this python demo: Save output to video using filesink - #15 by miguelmndez
2 if you want to dump osd data, you need to delete nvegltransform which is used for nveglglessink and add nvvidconv to convert hardware buffer to software buffer.

This works fine Save output to video using filesink - #15 by miguelmndez.


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