# Jetson AI Fundamentals S3E1

**URL:** <https://forums.developer.nvidia.com/t/jetson-ai-fundamentals-s3e1/160775>\
**Category:** Jetson Nano\
**Tags:** jetson-inference, camera\
**Created:** [November 30, 2020, 10:31pm UTC](https://forums.developer.nvidia.com/t/jetson-ai-fundamentals-s3e1/160775 "2020-11-30T22:31:30Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![hossboss7](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@hossboss7](https://forums.developer.nvidia.com/u/hossboss7)\
**Post date:** [November 30, 2020, 10:31pm UTC](https://forums.developer.nvidia.com/t/jetson-ai-fundamentals-s3e1/160775/1 "2020-11-30T22:31:30Z")

</div>

Is anyone experiencing camera issues preventing them from running root@nano:/jetson-inference# video-viewer /dev/video0

Im getting the following video-viewer: failed to capture video frame

even though i do have a recognized cam connected dev/video0 and utilizing Dustys github docker install

---

<div class="post-metadata">

**Author:** ![dusty\_nv](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/dusty_nv/32/14043_2.png) [@dusty\_nv](https://forums.developer.nvidia.com/u/dusty_nv)\
**Post date:** [December 1, 2020, 2:18am UTC](https://forums.developer.nvidia.com/t/jetson-ai-fundamentals-s3e1/160775/3 "2020-12-01T02:18:21Z")

</div>

Hi @hossboss7, which camera are you using?

Can you post the terminal log of when you run that command? Thanks!

---

<div class="post-metadata">

**Author:** ![hossboss7](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@hossboss7](https://forums.developer.nvidia.com/u/hossboss7)\
**Post date:** [December 1, 2020, 10:21am UTC](https://forums.developer.nvidia.com/t/jetson-ai-fundamentals-s3e1/160775/4 "2020-12-01T10:21:35Z")

</div>

Hey, Dusty thanks for your help, seems to be a gstreamer issue. see photos

 ![Screenshot from 2020-12-01 04-15-19](https://global.discourse-cdn.com/nvidia/original/3X/9/2/929c9d1a3739533a638c5812805de95fa4d5ef5f.jpeg)

---

<div class="post-metadata">

**Author:** ![hossboss7](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@hossboss7](https://forums.developer.nvidia.com/u/hossboss7)\
**Post date:** [December 1, 2020, 10:25am UTC](https://forums.developer.nvidia.com/t/jetson-ai-fundamentals-s3e1/160775/5 "2020-12-01T10:25:20Z")

</div>

Regarding what camera I’m using I believe I’m using a ras cam v2 but not 100% certain bc the cam is inside of an enclosure along with the nano.

 ![Screenshot from 2020-12-01 04-15-39](https://global.discourse-cdn.com/nvidia/original/3X/c/3/c301bc1fdf6971d927392d06c68cee10697e0ef8.jpeg)

---

<div class="post-metadata">

**Author:** ![dusty\_nv](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/dusty_nv/32/14043_2.png) [@dusty\_nv](https://forums.developer.nvidia.com/u/dusty_nv)\
**Post date:** [December 1, 2020, 5:44pm UTC](https://forums.developer.nvidia.com/t/jetson-ai-fundamentals-s3e1/160775/6 "2020-12-01T17:44:27Z")

</div>

> [@hossboss7](#):
>
> Regarding what camera I’m using I believe I’m using a ras cam v2 but not 100% certain bc the cam is inside of an enclosure along with the nano.

OK gotcha - the Raspberry Pi Camera Module v2 is a MIPI CSI camera, so please try launching video-viewer like this:

```bash
$ video-viewer csi://0

```

If that doesn’t work, please post the output of this `v4l2-ctl` command:

```bash
$ sudo apt-get install v4l-utils
$ v4l2-ctl --device=/dev/video0 --list-formats-ext

```

---

<div class="post-metadata">

**Author:** ![hossboss7](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@hossboss7](https://forums.developer.nvidia.com/u/hossboss7)\
**Post date:** [December 1, 2020, 8:56pm UTC](https://forums.developer.nvidia.com/t/jetson-ai-fundamentals-s3e1/160775/7 "2020-12-01T20:56:47Z")

</div>

Dusty thank you very much. Would there be a reason # detectnet /dev/video0 wouldn’t run or #detectnet csi://0 ? Also is there a way to flip the camera in 90 degree angles with the jetson utils? I know previously this was only possible with 180 degree angles or I needed to use opencv, is this still the case?

---

<div class="post-metadata">

**Author:** ![dusty\_nv](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/dusty_nv/32/14043_2.png) [@dusty\_nv](https://forums.developer.nvidia.com/u/dusty_nv)\
**Post date:** [December 1, 2020, 10:01pm UTC](https://forums.developer.nvidia.com/t/jetson-ai-fundamentals-s3e1/160775/8 "2020-12-01T22:01:45Z")

</div>

> [@hossboss7](#):
>
> Would there be a reason # detectnet /dev/video0 wouldn’t run or #detectnet csi://0

The Raspberry Pi Camera Module v2 should be used as csi://0, because through V4L2 that camera only supports raw 10-bit bayer mode, which neither I or GStreamer have the code to debayer 10-bit. Regardless, it is more efficient to use it through the csi://0 interface (which uses libargus) and the picture quality should be better as it includes ISP processing.

> [@hossboss7](#):
>
> lso is there a way to flip the camera in 90 degree angles with the jetson utils?

You should be able to use the `--input-flip=clockwise` (or `--input-flip=counterclockwise`) and run it as:

```bash
$ video-viewer --input-flip=clockwise csi://0

```

For more options to `--input-flip` argument, run the program with `--help` or see here:

[https://github.com/dusty-nv/jetson-inference/blob/master/docs/aux-streaming.md#command-line-arguments](https://github.com/dusty-nv/jetson-inference/blob/master/docs/aux-streaming.md#command-line-arguments)

```auto
--input-flip=FLIP flip method to apply to input (excludes V4L2):
                             * none (default)
                             * counterclockwise
                             * rotate-180
                             * clockwise
                             * horizontal
                             * vertical
                             * upper-right-diagonal
                             * upper-left-diagonal

```

---

<div class="post-metadata">

**Author:** ![hossboss7](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@hossboss7](https://forums.developer.nvidia.com/u/hossboss7)\
**Post date:** [December 2, 2020, 2:53am UTC](https://forums.developer.nvidia.com/t/jetson-ai-fundamentals-s3e1/160775/9 "2020-12-02T02:53:27Z")

</div>

all set thank you sir. up and running!

---

<div class="post-metadata">

**Author:** ![nadeemm](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nadeemm/32/367020_2.png) [@nadeemm](https://forums.developer.nvidia.com/u/nadeemm)\
**Post date:** [October 15, 2021, 4:11pm UTC](https://forums.developer.nvidia.com/t/jetson-ai-fundamentals-s3e1/160775/11 "2021-10-15T16:11:23Z")

</div>


