# Argus yuvJpeg sample missing pictures

**URL:** <https://forums.developer.nvidia.com/t/argus-yuvjpeg-sample-missing-pictures/58416>\
**Category:** Jetson TX2\
**Created:** [February 21, 2018, 11:50pm UTC](https://forums.developer.nvidia.com/t/argus-yuvjpeg-sample-missing-pictures/58416 "2018-02-21T23:50:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![randyzhg](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@randyzhg](https://forums.developer.nvidia.com/u/randyzhg)\
**Post date:** [February 21, 2018, 11:50pm UTC](https://forums.developer.nvidia.com/t/argus-yuvjpeg-sample-missing-pictures/58416/1 "2018-02-21T23:50:52Z")

</div>

Hi,

I noticed when I run the yuvJpeg sample, frames 2 and 3 are always missing. In other words I get “1.JPG”, “4.JPG”, “5.JPG”, etc. Why is this the case?

Thanks.

---

<div class="post-metadata">

**Author:** ![JerryChang](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/jerrychang/32/14043_2.png) [@JerryChang](https://forums.developer.nvidia.com/u/JerryChang)\
**Post date:** [February 22, 2018, 2:37am UTC](https://forums.developer.nvidia.com/t/argus-yuvjpeg-sample-missing-pictures/58416/2 "2018-02-22T02:37:02Z")

</div>

hello randyzhg,

would like to have more details from your side.

1. what’s your environment setting, may i know which camera sensor you’re using.
2. please share all the steps.
3. please run the argus dae5mon manually to enable background messages.

```auto
sudo /usr/sbin/argus_daemon

```

---

<div class="post-metadata">

**Author:** ![randyzhg](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@randyzhg](https://forums.developer.nvidia.com/u/randyzhg)\
**Post date:** [February 22, 2018, 3:05pm UTC](https://forums.developer.nvidia.com/t/argus-yuvjpeg-sample-missing-pictures/58416/3 "2018-02-22T15:05:56Z")

</div>

I have the stock TX2 evaluation kit, so OV5693 I think.  
Running ./jetsonclocks.sh before running the sample fixed the issue. I thought I already did that yesterday but I guess apparently not. Thanks.

---

<div class="post-metadata">

**Author:** ![JerryChang](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/jerrychang/32/14043_2.png) [@JerryChang](https://forums.developer.nvidia.com/u/JerryChang)\
**Post date:** [March 14, 2018, 7:14am UTC](https://forums.developer.nvidia.com/t/argus-yuvjpeg-sample-missing-pictures/58416/4 "2018-03-14T07:14:53Z")

</div>

hello randyzhg,

there’s timing issue in the yuvJpeg application, please set the stream to FIFO to fix the issue.  
thanks

```auto
diff --git a/public/samples/yuvJpeg/main.cpp b/public/samples/yuvJpeg/main.cpp
index 7ed6d0e..ab649e8 100644
--- a/public/samples/yuvJpeg/main.cpp
+++ b/public/samples/yuvJpeg/main.cpp
@@ -228,6 +228,7 @@ static bool execute(const ExecuteOptions& options)
     {
         iStreamSettings->setPixelFormat(PIXEL_FMT_YCbCr_420_888);
         iStreamSettings->setResolution(STREAM_SIZE);
+ iStreamSettings->setMode(STREAM_MODE_FIFO);
         iStreamSettings->setMetadataEnable(true);

```

---

<div class="post-metadata">

**Author:** ![randyzhg](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@randyzhg](https://forums.developer.nvidia.com/u/randyzhg)\
**Post date:** [March 14, 2018, 2:12pm UTC](https://forums.developer.nvidia.com/t/argus-yuvjpeg-sample-missing-pictures/58416/5 "2018-03-14T14:12:23Z")

</div>

Ok thanks! I will try it.

I also have a general question. What are the advantages of using the Argus API over using nvcamerasrc with GStreamer?
