Jetson Inference
DNN Vision Library

videoSource and videoOutput APIs for input and output video streams. More...

Classes

struct  URI
 Resource URI of a video device, IP stream, or file/directory. More...
 
struct  videoOptions
 The videoOptions struct contains common settings that are used to configure and query videoSource and videoOutput streams. More...
 
class  videoOutput
 The videoOutput API is for rendering and transmitting frames to video input devices such as display windows, broadcasting RTP network streams to remote hosts over UDP/IP, and saving videos/images/directories to disk. More...
 
class  videoSource
 The videoSource API is for capturing frames from video input devices such as MIPI CSI cameras, V4L2 cameras, video/images files from disk, directories containing a sequence of images, and from RTP/RTSP network video streams over UDP/IP. More...
 

Macros

#define LOG_VIDEO   "[video] "
 
#define VIDEO_OUTPUT_USAGE_STRING
 Standard command-line options able to be passed to videoOutput::Create() More...
 
#define VIDEO_SOURCE_USAGE_STRING
 Standard command-line options able to be passed to videoSource::Create() More...
 

Detailed Description

videoSource and videoOutput APIs for input and output video streams.

Macro Definition Documentation

◆ LOG_VIDEO

#define LOG_VIDEO   "[video] "

◆ VIDEO_OUTPUT_USAGE_STRING

#define VIDEO_OUTPUT_USAGE_STRING
Value:
"videoOutput arguments: \n" \
" output_URI resource URI of the output stream, for example:\n" \
" * file://my_image.jpg (image file)\n" \
" * file://my_video.mp4 (video file)\n" \
" * file://my_directory/ (directory of images)\n" \
" * rtp://<remote-ip>:1234 (RTP stream)\n" \
" * display://0 (OpenGL window)\n" \
" --output-codec=CODEC desired codec for compressed output streams:\n" \
" * h264 (default), h265\n" \
" * vp8, vp9\n" \
" * mpeg2, mpeg4\n" \
" * mjpeg\n" \
" --bitrate=BITRATE desired target VBR bitrate for compressed streams,\n" \
" in bits per second. The default is 4000000 (4 Mbps)\n" \
" --headless don't create a default OpenGL GUI window\n\n"

Standard command-line options able to be passed to videoOutput::Create()

◆ VIDEO_SOURCE_USAGE_STRING

#define VIDEO_SOURCE_USAGE_STRING
Value:
"videoSource arguments: \n" \
" input_URI resource URI of the input stream, for example:\n" \
" * /dev/video0 (V4L2 camera #0)\n" \
" * csi://0 (MIPI CSI camera #0)\n" \
" * rtp://@:1234 (RTP stream)\n" \
" * rtsp://user:pass@ip:1234 (RTSP stream)\n" \
" * file://my_image.jpg (image file)\n" \
" * file://my_video.mp4 (video file)\n" \
" * file://my_directory/ (directory of images)\n" \
" --input-width=WIDTH explicitly request a width of the stream (optional)\n" \
" --input-height=HEIGHT explicitly request a height of the stream (optional)\n" \
" --input-rate=RATE explicitly request a framerate of the stream (optional)\n" \
" --input-codec=CODEC RTP requires the codec to be set, one of these:\n" \
" * h264, h265\n" \
" * vp8, vp9\n" \
" * mpeg2, mpeg4\n" \
" * mjpeg\n" \
" --input-flip=FLIP flip method to apply to input (excludes V4L2):\n" \
" * none (default)\n" \
" * counterclockwise\n" \
" * rotate-180\n" \
" * clockwise\n" \
" * horizontal\n" \
" * vertical\n" \
" * upper-right-diagonal\n" \
" * upper-left-diagonal\n" \
" --input-loop=LOOP for file-based inputs, the number of loops to run:\n" \
" * -1 = loop forever\n" \
" * 0 = don't loop (default)\n" \
" * >0 = set number of loops\n\n"

Standard command-line options able to be passed to videoSource::Create()