Skip to content

Commit

Permalink
added videoOptions dict example
Browse files Browse the repository at this point in the history
  • Loading branch information
dusty-nv committed May 30, 2023
1 parent 72a4295 commit 7b92910
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/examples/video-viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
sys.exit(0)

# create video sources & outputs
input = videoSource(args.input, argv=sys.argv)
output = videoOutput(args.output, argv=sys.argv)
input = videoSource(args.input, argv=sys.argv) # OPTIONAL: options={'width': 1280, 'height': 720, 'framerate': 30}
output = videoOutput(args.output, argv=sys.argv) # OPTIONAL: options={'codec': 'h264', 'bitrate': 2500000}

# capture frames until EOS or user exits
numFrames = 0
Expand Down

0 comments on commit 7b92910

Please sign in to comment.