DriveWorks SDK Reference
4.0.0 Release
For Test and Development only

samples/sensors/camera/camera_seek/README.md
Go to the documentation of this file.
1 # Copyright (c) 2019-2021 NVIDIA CORPORATION. All rights reserved.
2 
3 @page dwx_camera_seek_sample Camera Seek Sample
4 @tableofcontents
5 
6 @section dwx_camera_seek_sample_description Description
7 
8 The Camera Seek sample demonstrates how to replay a video and use the 'seek to timestamp/event' feature to seek to any point in the video.
9 
10 @section dwx_camera_seek_sample_running Running the sample
11 
12 The Camera Seek sample, sample_camera_seek, accepts the following parameters:
13 
14  ./sample_camera_seek --video=[path/to/video]
15 
16 where:
17 
18  --video=[path/to/video]
19  Path to the video file.
20  Default value: path/to/data/samples/sfm/triangulation/video_0.h264
21 
22 The sample works with the following keyboard inputs:
23 
24  T : changes the seek mode to timestamp.
25  F : changes the seek mode to frame event.
26  Left Arrow : steps backward (10 for frames, 1000000 for timestamp).
27  Right Arrow : steps forward (10 for frames, 1000000 for timestamp).
28  Space : pauses the video.
29 
30 Seeking is available in both normal and paused states.
31 
32 @subsection dwx_camera_seek_sample_examples Examples
33 
34 #### Replay .h264 file
35 
36  ./sample_camera_seek --video=/path/to/file.h264
37 
38 @section dwx_camera_seek_sample_output Output
39 
40 The sample creates a window and displays a video.
41 
42 ![Single H.264 stream](sample_camera_seek.png)
43 
44 @section dwx_camera_seek_sample_more Additional Information
45 
46 For more details see @ref camera_mainsection .