how to add filesink to deepstream-sample-app4?

sink = gst_element_factory_make("filesink","nvvideo-renderer")
g_object_set (G_OBJECT (sink), "sync", TRUE,"output-file",<filepath>);

I get the following error:

GLib-GObject-WARNING **: g_object_set_is_valid_property: object class 'GstFileSink' has no property named 'output-file'
ERROR from element nvvideo-renderer: No file name specified for writing

Hi,
For running deepstream-test4, you have to study the code and integrate ‘Encode + File Save’ into the sample. Maybe you can try deepstream-test5 to simply enable it in config file.

Hi,

I can able to implement encoder using deepstream document, how to implement ‘File Save’ is there any document to refer? or any example?

Hi,
Please check
https://devtalk.nvidia.com/default/topic/1062551/deepstream-sdk/save-part-of-video-from-frames-in-ds4-0-pipeline-in-deepstream-test2-app-/post/5381275/#5381275
https://devtalk.nvidia.com/default/topic/1062551/deepstream-sdk/save-part-of-video-from-frames-in-ds4-0-pipeline-in-deepstream-test2-app-/post/5381361/#5381361