GStreamer ハンズオン
GStreamer
- 必須環境
- Debian/Jessie 以上
準備
sudo apt-get install gstreamer \ gstreamer1.0-tools \ gstreamer1.0-alsa \ gstreamer1.0-clutter \ gstreamer1.0-libav \ gstreamer1.0-libav-dbg \ gstreamer1.0-nice \ gstreamer1.0-plugins-bad \ gstreamer1.0-plugins-bad-dbg \ gstreamer1.0-plugins-base \ gstreamer1.0-plugins-base-apps \ gstreamer1.0-plugins-base-dbg \ gstreamer1.0-plugins-good \ gstreamer1.0-plugins-good-dbg \ gstreamer1.0-plugins-ugly \ gstreamer1.0-plugins-ugly-dbg \ gstreamer1.0-pulseaudio \ gstreamer1.0-tools \ gstreamer1.0-vaapi \ gstreamer1.0-x \ libgstreamer-plugins-bad1.0-0 \ libgstreamer-plugins-base1.0-0 \ libgstreamer-plugins-base1.0-dev \ libgstreamer-vaapi1.0-0 \ libgstreamer-vaapi1.0-dev \ libgstreamer1.0-0 \ libgstreamer1.0-0-dbg \ libgstreamer1.0-dev
コピペする
カラーバーを表示
gst-launch-1.0 videotestsrc ! ximagesink
ひょいひょい動くボールを表示
gst-launch-1.0 videotestsrc pattern=18 ! ximagesink
Webカメラの映像を表示
gst-launch-1.0 v4l2src ! video/x-raw,framerate=30/1 ! videoconvert ! ximagesink
MP4 (動画) を映像だけ再生
gst-launch-1.0 filesrc location=input.mp4 ! h264parse ! qtdemux ! avdec_h264 ! videoconvert ! ximagesink