# Can not save output in Deepstream?

**URL:** <https://forums.developer.nvidia.com/t/can-not-save-output-in-deepstream/260394>\
**Category:** DeepStream SDK\
**Tags:** nvbugs\
**Created:** [July 20, 2023, 2:34am UTC](https://forums.developer.nvidia.com/t/can-not-save-output-in-deepstream/260394 "2023-07-20T02:34:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnminho](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@johnminho](https://forums.developer.nvidia.com/u/johnminho)\
**Post date:** [July 20, 2023, 2:34am UTC](https://forums.developer.nvidia.com/t/can-not-save-output-in-deepstream/260394/1 "2023-07-20T02:34:11Z")

</div>

Please provide complete information as applicable to your setup.

**• Hardware Platform (Jetson / GPU)**: Jetson  
**• DeepStream Version** : 6.0  
**• JetPack Version (valid for Jetson only)**: 4.6.3  
**• TensorRT Version** : 8.2  
**• NVIDIA GPU Driver Version (valid for GPU only)**  
**• Issue Type( questions, new requirements, bugs)**  
**• 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 followed the guide to save output in Deepstream-app [How to save output videos deepstream app to individual files? And what is need to change in congif f... - #4 by DaneLLL](https://forums.developer.nvidia.com/t/how-to-save-output-videos-deepstream-app-to-individual-files-and-what-is-need-to-change-in-congif-f/83923/4) but it results in error.

```auto
** ERROR: <create_encode_file_bin:467>: create_encode_file_bin failed
** ERROR: <create_sink_bin:781>: create_sink_bin failed
** ERROR: <create_processing_instance:815>: create_processing_instance failed
** ERROR: <create_pipeline:1323>: create_pipeline failed
** ERROR: <main:639>: Failed to create pipeline
Quitting
App run failed

```

Here is my config

```auto
[application]
enable-perf-measurement=1
perf-measurement-interval-sec=5
#gie-kitti-output-dir=/home/jetson/losslessAI_GSOLenv/yolov7_GSOL/YOLOv7_reshape/deepstream-yolo/output_kitti

[tiled-display]
enable=1
rows=1
columns=1
width=1280
height=720
gpu-id=0
nvbuf-memory-type=0

[source0]
enable=1
type=3
uri=file:///opt/nvidia/deepstream/deepstream-6.0/sources/apps/sample_apps/deepstream-app/out_alo.mp4
#type=2
#uri=file:///opt/nvidia/deepstream/deepstream-6.0/sources/apps/sample_apps/deepstream-app/000000000139.jpg
num-sources=1
gpu-id=0
cudadec-memtype=0

[sink0]
enable=1
type=3
sync=0
gpu-id=0
nvbuf-memory-type=0
source-id=0
output-file=alo.mp4
bitrate=2000000

[osd]
enable=1
gpu-id=0
border-width=5
text-size=15
text-color=1;1;1;1;
text-bg-color=0.3;0.3;0.3;1
font=Serif
show-clock=0
clock-x-offset=800
clock-y-offset=820
clock-text-size=12
clock-color=1;0;0;0
nvbuf-memory-type=0

[streammux]
gpu-id=0
live-source=0
batch-size=1
batched-push-timeout=40000
width=1920
height=1080
enable-padding=0
nvbuf-memory-type=0

[primary-gie]
enable=1
gpu-id=0
gie-unique-id=1
nvbuf-memory-type=0
config-file=config_infer_primary.txt

[tests]
file-loop=0

```

What do I need to do to fix this problem?

---

<div class="post-metadata">

**Author:** ![fanzh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fanzh/32/115955_2.png) [@fanzh](https://forums.developer.nvidia.com/u/fanzh)\
**Post date:** [July 20, 2023, 6:42am UTC](https://forums.developer.nvidia.com/t/can-not-save-output-in-deepstream/260394/3 "2023-07-20T06:42:20Z")

</div>

> [@johnminho](#):
>
> ```auto
> ** ERROR: <create_encode_file_bin:467>: create_encode_file_bin failed
> 
> ```

from the logs, creating element failed. could you share more logs? please do “export GST\_DEBUG=6” first to modify Gstreamer’s log level, then run again, you can redirect the logs to a file.

---

<div class="post-metadata">

**Author:** ![johnminho](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@johnminho](https://forums.developer.nvidia.com/u/johnminho)\
**Post date:** [July 20, 2023, 7:59am UTC](https://forums.developer.nvidia.com/t/can-not-save-output-in-deepstream/260394/4 "2023-07-20T07:59:42Z")

</div>

Here is the error log.  
[error.log](https://forums.developer.nvidia.com/uploads/short-url/8tM1gFvtwPl9yVfkFFD0ycaw8Z6.log) (6.7 MB)

---

<div class="post-metadata">

**Author:** ![fanzh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fanzh/32/115955_2.png) [@fanzh](https://forums.developer.nvidia.com/u/fanzh)\
**Post date:** [July 20, 2023, 8:32am UTC](https://forums.developer.nvidia.com/t/can-not-save-output-in-deepstream/260394/5 "2023-07-20T08:32:32Z")

</div>

**There is no update from you for a period, assuming this is not an issue any more.**  
**Hence we are closing this topic. If need further support, please open a new one.**  
**Thanks**

please set this value in [sink0]  
#1=mp4 2=mkv  
container=1  
#1=h264 2=h265  
codec=1

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [August 14, 2023, 5:06am UTC](https://forums.developer.nvidia.com/t/can-not-save-output-in-deepstream/260394/7 "2023-08-14T05:06:14Z")

</div>

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