# Smart Video Record錄影疑問

**URL:** <https://forums.developer.nvidia.com/t/smart-video-record/238206>\
**Category:** DeepStream SDK\
**Tags:** chinese\
**Created:** [December 29, 2022, 10:09am UTC](https://forums.developer.nvidia.com/t/smart-video-record/238206 "2022-12-29T10:09:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![t65k2cool](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@t65k2cool](https://forums.developer.nvidia.com/u/t65k2cool)\
**Post date:** [December 29, 2022, 10:09am UTC](https://forums.developer.nvidia.com/t/smart-video-record/238206/1 "2022-12-29T10:09:06Z")

</div>

\*\*• Hardware Platform (GPU) RTX 3060  
\*\*• DeepStream Version 6.0  
**• TensorRT Version**  
\*\*• NVIDIA GPU Driver Version (valid for GPU only) CUDA11.7  
**• Issue Type (questions)**

您好，想請問一下使用 Smart Video Record錄影的時候，當下的串流影像是不是就不會繼續存在smart-rec-cache裡面？  
因為我發現我在進行連續錄影的時候，剛剛錄過的影像就沒辦法被smart-rec-start-time所設定的時間錄到。  
當我設定smart-rec-start-time=60時  
假設我第一次錄影的時段為8:00:00-8:30:00  
第二次錄影的時段為8:30:00開始  
連續錄影的狀態下我只能錄到8:30:00開始的影像  
而無法錄影到8:29:00開始的影像  
類似於以下網站的問題,請問現在有改善或有辦法修改嗎？

> [@Smart Record isn't so smart](https://forums.developer.nvidia.com/t/smart-record-isnt-so-smart/177549):
>
> • Hardware Platform Jetson • DeepStream Version 5.0 • JetPack Version 4.5 • TensorRT Version 7 Hi, I’ve been doing some development with Deepstream and have successfully hooked up the smart record function to MIPI/USB cameras. That is not my complaint. My issue is that the documentation for Smart Record doesn’t make clear there are some major limitations in Smart Record. Specifically, (and I’m guessing this is because it uses a Gstreamer Queue as it’s method of buffering) that once a smar…

---

<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:** [December 30, 2022, 3:15am UTC](https://forums.developer.nvidia.com/t/smart-video-record/238206/3 "2022-12-30T03:15:39Z")

</div>

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)

• DeepStream Version

• JetPack Version (valid for Jetson only)

• TensorRT Version

• 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)

---

<div class="post-metadata">

**Author:** ![t65k2cool](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@t65k2cool](https://forums.developer.nvidia.com/u/t65k2cool)\
**Post date:** [January 1, 2023, 9:47am UTC](https://forums.developer.nvidia.com/t/smart-video-record/238206/4 "2023-01-01T09:47:37Z")

</div>

> [@t65k2cool](#):
>
> \*\*• Hardware Platform (GPU) RTX 3060  
> \*\*• DeepStream Version 6.0  
> **• TensorRT Version**  
> \*\*• NVIDIA GPU Driver Version (valid for GPU only) CUDA11.7  
> **• Issue Type (questions)**

\*\*• Hardware Platform (GPU) RTX 3060  
\*\*• DeepStream Version 6.0  
**• TensorRT Version**  
\*\*• NVIDIA GPU Driver Version (valid for GPU only) CUDA11.7  
**• Issue Type (questions)**

---

<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:** [January 3, 2023, 10:33am UTC](https://forums.developer.nvidia.com/t/smart-video-record/238206/5 "2023-01-03T10:33:11Z")

</div>

> [@t65k2cool](#):
>
> 當我設定smart-rec-start-time=60時  
> 假設我第一次錄影的時段為8:00:00-8:30:00  
> 第二次錄影的時段為8:30:00開始  
> 連續錄影的狀態下我只能錄到8:30:00開始的影像  
> 而無法錄影到8:29:00開始的影像

could you share the parameters when calling NvDsSRStart? could you use deepstream-testsr to reproduce this issue?

---

<div class="post-metadata">

**Author:** ![t65k2cool](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@t65k2cool](https://forums.developer.nvidia.com/u/t65k2cool)\
**Post date:** [January 4, 2023, 2:29am UTC](https://forums.developer.nvidia.com/t/smart-video-record/238206/6 "2023-01-04T02:29:14Z")

</div>

[source0]  
smart-record=1  
smart-rec-dir-path=/testconfig\_output/  
#smart-rec-file-prefix=smart\_record  
smart-rec-cache=120  
smart-rec-container=0  
smart-rec-start-time=60  
smart-rec-default-duration=60  
smart-rec-duration=60  
smart-rec-interval=10  
code:  
NvDsSRSessionId sessId = 0;  
guint startTime = 60;  
guint duration = 100;  
const char \*str2 = “car”;  
//= TimeUtils::currentTimeInMillis();  
// std::cout \<\< "1…\>\>\>\>\>\>\>-------------------\>smart\_rec\_cache\_size: " \<\< src\_bin-\>config-\>smart\_rec\_cache\_size \<\< “\n”;  
int64 smartRecord\_timestamp = TimeUtils::currentTimeInMillis();  
if (src\_bin-\>config-\>smart\_rec\_duration \>= 0)  
duration = src\_bin-\>config-\>smart\_rec\_duration;

if (src\_bin-\>config-\>smart\_rec\_start\_time \>= 0)  
startTime = src\_bin-\>config-\>smart\_rec\_start\_time;  
NvDsSRStart(ctx, &sessId, startTime, duration, NULL);

透過deepstream-testsr  
假使我第一次錄影為09：00開始錄  
錄影的容容為8：59到9：01  
第二次的錄影的時間為09：01開始  
內容卻只有9：01-9：02，理論上應該要是9：00到9：02

---

<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:** [January 5, 2023, 6:41am UTC](https://forums.developer.nvidia.com/t/smart-video-record/238206/8 "2023-01-05T06:41:10Z")

</div>

thanks for your report, this overlapped smart record requirement is under development.

---

<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:** [January 19, 2023, 6:41am UTC](https://forums.developer.nvidia.com/t/smart-video-record/238206/9 "2023-01-19T06:41:41Z")

</div>

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