Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| tips:gstreamer [2019/07/13 17:41] – [ocam camera] scipio | tips:gstreamer [2023/11/16 11:42] (current) – [gstream jetson] sscipioni | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== gstream jetson ====== | ||
| + | |||
| + | |||
| + | |||
| + | orin native | ||
| + | <code bash> | ||
| + | URL=rtsp:// | ||
| + | # | ||
| + | gst-launch-1.0 rtspsrc location=$URL protocols=tcp latency=0 ! rtph264depay ! queue ! h264parse ! nvv4l2decoder ! nvvideoconvert ! autovideosink | ||
| + | </ | ||
| + | |||
| + | deepstream amd64 | ||
| + | <code bash> | ||
| + | URL=rtsp:// | ||
| + | |||
| + | </ | ||
| + | |||
| + | nvv4l2h264enc | ||
| + | < | ||
| + | gst-launch-1.0 videotestsrc is-live=1 ! nvvidconv ! nvv4l2h264enc ! h264parse ! matroskamux ! filesink location=/ | ||
| + | </ | ||
| + | |||
| + | |||
| ====== gstreamer ====== | ====== gstreamer ====== | ||
| Line 23: | Line 46: | ||
| ! h264parse ! avdec_h264 \ | ! h264parse ! avdec_h264 \ | ||
| ! videoconvert ! xvimagesink | ! videoconvert ! xvimagesink | ||
| + | </ | ||
| + | |||
| + | rtsp save stream to test.mkv without h264 decoding | ||
| + | < | ||
| + | gst-launch-1.0 -e rtspsrc location=rtsp:// | ||
| + | ! rtph264depay ! h264parse ! matroskamux ! filesink location=test.mkv | ||
| </ | </ | ||
| Line 35: | Line 64: | ||
| ... ! videoconvert ! omxh264enc ! matroskamux ! filesink location=test.mkv | ... ! videoconvert ! omxh264enc ! matroskamux ! filesink location=test.mkv | ||
| </ | </ | ||
| + | |||
| + | inspect pipeline properties | ||
| + | < | ||
| + | ... ! fakesink -v | grep fake | ||
| + | </ | ||
| + | |||
| ===== ocam camera ===== | ===== ocam camera ===== | ||
| + | |||
| + | [[https:// | ||
| identify | identify | ||
| Line 71: | Line 108: | ||
| Interval: | Interval: | ||
| </ | </ | ||
| + | |||
| + | < | ||
| + | v4l2-ctl -d /dev/video0 --list-ctrls | ||
| + | white_balance_red_component 0x0098090e (int) : min=0 max=250 step=1 default=100 value=100 | ||
| + |  | ||
| + | gain 0x00980913 (int) : min=0 max=255 step=1 default=64 value=64 | ||
| + | exposure_auto 0x009a0901 (menu) | ||
| + | exposure_absolute 0x009a0902 (int) : min=1 max=1000 step=1 default=55 value=128 | ||
| + | </ | ||
| + | |||
| < | < | ||
| Line 86: | Line 133: | ||
| </ | </ | ||
| + | save to file with h264 encode | ||
| + | < | ||
| + | gst-launch-1.0 -e v4l2src device=/ | ||
| + | </ | ||