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

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.


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

Please check