filesink mode result a corrupted file

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) :RTX2080TI
• DeepStream Version :5.0
• JetPack Version (valid for Jetson only)
• TensorRT Version :TensorRT-
• NVIDIA GPU Driver Version (valid for GPU only) :Driver Version: 440.82 CUDA Version: 10.2
• Issue Type( questions, new requirements, bugs) :questions
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

I run the command:
python /opt/nvidia/deepstream/deepstream/samples/streams/sample_720p.h264

result a mp4 file like
-rw-r–r-- 1 root root 92288 6月 11 19:35 output1111.mp4

However, the output1111.mp4 is corrupted. Anything wrong?

Here is the modified

# print("Creating EGLSink \n")
# sink = Gst.ElementFactory.make("nveglglessink", "nvvideo-renderer")
# if not sink:
#     sys.stderr.write(" Unable to create egl sink \n")

print("Creating Filesink \n")
sink = Gst.ElementFactory.make("filesink", "filesink")
if not sink:
    sys.stderr.write(" Unable to create file sink \n")
sink.set_property("location", "./output1111.mp4")
sink.set_property("sync", 0) (14.8 KB)

Any suggestion?

You can not just use filesink, it’s not one plugin, please refer to function create_encode_file_bin in sources/apps/apps-common/src/deepstream_sink_bin.c for how to encode to file.

1 Like