Jetson-inference/video-viewer playback video files

I have been following the tutorial by Dusty on Jetson-inference and running the docker container on jetson-nano (4GB) - Jetpack 4.5.1.

I understand that the video-viewer application used to test the camera can also record video to a file.

I have tried to record a video file and playback using the following command and it works fine;

Recording → video-viewer --input-flip=rotate-180 csi://0 test.mp4
Playback → video-viewer test.mp4

However, i could not locate the mp4 video file.

When i shutdown the container and restart the container again, i discovered that i could not playback again and seems like the video file is lost.

May i ask whether this is normal ? Can the video-viewer be used to playback other video files not recorded by the video-viewer application. If Yes, then where should i locate the video file (which folder) ?

Hi @Benjamin_Lim, you should save the video file to one of the mounted directories in the container, like /jetson-inference/data. Then it will show up on your host device too.

Here are the mounted directories:

Yes, it can load video files with the formats and codecs listed here:

You would put the video file in one of the mounted directories (like jetson-inference/data) and it would show up in the container.

1 Like

It worked. Thanks Dusty !

I posted this less than an hour ago. Was surprised that you responded so quickly.

No problem! Glad that you got it working :)

1 Like