Why Video Smart Record just records once, and deepstream-app exits?

Please provide complete information as applicable to your setup.

• Hardware Platform: Jetson AGX Orin
• DeepStream Version: 7.0
• JetPack Version: 6.0
• TensorRT Version: 8.6.2
• Issue Type( questions, bugs)
• How to reproduce the issue ? Try deepstream-app
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

We would like to use “Smart Video Record” feature in deepstream-app. When we set “start-record=2” for each sources (2 rtsp streams), the deepstream-app does record 2 playable videos, but it just records once, then it quits/exits.
We expect it should behave (record on interval (frequently)) what the documentation (Smart Video Record — DeepStream documentation 6.4 documentation) describes and the source code (g_timeout_add (bin->config->smart_rec_interval * 1000, smart_record_event_generator, bin);) shows.
If you have any hint on how to solve this issue, please let me know.

We provide info and log so that you refer to.

RTSP streams format:
rtsp://${USER}:${PASSWD}@${HOST_IP}:7001/${CAMO_ID}?stream=0

smart_record.log
0:2560:1920:8478ms:(null):Smart_Record_00001_20240814-044511_1312.mp4
0:2560:1920:8463ms:(null):Smart_Record_00000_20240814-044511_1312.mp4

**PERF:  FPS 0 (Avg)    FPS 1 (Avg)
**PERF:  0.00 (0.00)    0.00 (0.00)
** INFO: <bus_callback:240>: Pipeline ready

Opening in BLOCKING MODE 
Opening in BLOCKING MODE 
NvMMLiteOpen : Block : BlockType = 279 
NvMMLiteOpen : Block : BlockType = 279 
NvMMLiteBlockCreate : Block : BlockType = 279 
NvMMLiteBlockCreate : Block : BlockType = 279 
** INFO: <bus_callback:226>: Pipeline running

** WARN: <queue_src_pad_probe:275>: Invalid PTS found in stream. Stream recorded by Smart Record might have issues
**PERF:  6.51 (6.08)    7.69 (7.20)
** WARN: <queue_src_pad_probe:275>: Invalid PTS found in stream. Stream recorded by Smart Record might have issues
**PERF:  6.05 (6.15)    6.44 (6.83)
**PERF:  5.91 (6.09)    6.11 (6.59)
**PERF:  6.08 (6.07)    6.28 (6.48)
** INFO: <bus_callback:263>: Received EOS. Exiting ...

Quitting
Opening in BLOCKING MODE 
Opening in BLOCKING MODE 
NvMMLiteOpen : Block : BlockType = 279 
NvMMLiteOpen : Block : BlockType = 279 
NvMMLiteBlockCreate : Block : BlockType = 279 
NvMMLiteBlockCreate : Block : BlockType = 279 
[NvMultiObjectTracker] De-initialized
App run successful
  1. why Can this issue be reproduced every time? could you share the deepstream-app configuration file?
  2. could you share the cfg and start command-line? I can’t reproduce this issue on Orin with DS7.0. Here is the log:
    log-0814.txt (2.9 KB)

Thanks for your time.
It is our problem. Our app has been developed based on deepstream-app version 6.0, and we upgrade the deepstream-app parts to version 7.0, and it has this issue.
We already original deepstream-app v 7.0 and it does not has any issue.
Again, thank you.

Hi @fanzh ,
We have tested SR in deepstream-test5 , with at least one secondary gie or tiled-display enabled, the SR functionality works fine, but if we disable all secondary gie and tiled-display`, the SR functionality does not work as expected. It just records videos once then the app exits.

Could you test on your setting?