Before you begin, ensure that you've setup network access, either with ethernet or wlan.
sudo dpkg-reconfigure tzdata
Typically we use "US/Pacific-New"
To prep for building: | |
$ export MAKEFLAGS="-j4 -s PLATFORM_VARIANT=jetson" |
#!/bin/bash | |
#NVIDIA Jetson TK1 | |
#Create a swapfile for Ubuntu at the current directory location | |
fallocate -l 4G swapfile | |
#List out the file | |
ls -lh swapfile | |
# Change permissions so that only root can use it | |
chmod 600 swapfile | |
#List out the file | |
ls -lh swapfile |
#!/bin/sh | |
# Add some niceties for a new NVIDIA Jetson TK1 - LT 19.3 | |
# Installs Chromium, git and aptitude | |
# Mark this file as executable in the permissions are of the properties dialog then | |
# $ sudo ./configureJetson.sh | |
# Don't allow apt-get upgrade of xorg overwrite libglx.so | |
# May be fixed in future versions of LT4 | |
sudo apt-mark hold xserver-xorg-core |
#!/bin/sh | |
# Preview and save webcam video on NVIDIA Jetson TK1 | |
# Grab audio and video (in h264 format) from Logitech c920 @ 1920x1080 | |
# Preview @ 1280x720 on screen | |
# Store video to file named gEncode1080p.mp4 | |
# Logitech c920 is video1 on this machine | |
VELEM="v4l2src device=/dev/video1 do-timestamp=true" | |
# Video capability from the camera - get h264 1920x1080 | |
VCAPS="video/x-h264, width=1920, height=1080, framerate=30/1" |
#!/bin/sh | |
# Install Gstreamer 1.0 on the NVIDIA Jetson TK1 | |
apt-get install gstreamer1.0-tools gstreamer1.0-alsa \ | |
gstreamer1.0-plugins-base gstreamer1.0-plugins-good \ | |
gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-libav -y |
For this process you will need:
mkdir ~/Grinch
cd ~/Grinch
#!/bin/sh | |
# Show a webcam that delivers video 1920x1080 MJPG on screen | |
VELEM="v4l2src device=/dev/video0" | |
VCAPS="image/jpeg, width=1920, height=1080, framerate=30/1" | |
VSOURCE="$VELEM ! $VCAPS" | |
VIDEO_SINK="videoconvert ! videoscale ! xvimagesink sync=false" | |
VIDEO_DECODE="jpegparse ! jpegdec" | |
# echo is just for debugging purposes | |
echo gst-launch-1.0 -vvv \ |
#!/bin/sh | |
# Run two video webcam feeds in two different windows | |
# Script assumes that: | |
# Microsoft LifeCam Studio is video0 | |
# Logitech c920 is video1 | |
# Both cameras run max 1920x1080 MJPG, but two have both on a USB bus they can run @ 1280x720 max | |
# MS is made a little smaller | |
# text overlay and clockoverlay may be added to the pipeline, but render poorly | |
VELEM="v4l2src device=/dev/video0 do-timestamp=true" | |
VCAPS="image/jpeg, width=640, height=480, framerate=30/1" |
#!/bin/sh | |
# NVIDIA Jetson TK1 | |
# Use Gstreamer to grab H.264 video and audio stream from Logitech c920 webcam | |
# Preview video on screen | |
# Save Video and Audio to a file | |
# Send video as RTSP stream over TCP | |
# IP Address of the this machine hosting the TCP stream | |
IP_ADDRESS=<ENTER IP ADDRESS HERE e.g 10.10.10.10> | |
# You can list devices: | |
# $ v4l2-ctl --list-devices |