Multimedia
GStreamer test on Linux (e.g. Ubuntu)
반응형
1. download the following components
glib-2.28.8.tar.xz
http://ftp.gtk.org/pub/glib/2.28/
gstreamer-0.11.1.tar.gz
http://gstreamer.freedesktop.org/src/gstreamer/
gst-plugins-base-0.11.1.tar.gz
http://gstreamer.freedesktop.org/src/gst-plugins-base/
gst-plugins-good...
2. installation
in order, do the followings
./configure
make
make install
3. test
gst-launch* file is located in the folder, /usr/bin
test like this,
1) capturing x-window
gst-launch ximagesrc startx=0 starty=0 endx=320 endy=240 ! ximagesink
2) test sine wave
gst-launch audiotestsrc ! audioconvert ! audioresample ! osssink
3) playing mp3
gst-launch -v filesrc location="/music/Gee.mp3" ! ffdemux_mp3 ! ffdec_mp3 ! osssink
4) test playback
gst-launch -v videotestsrc ! ximagesink
5) playback of video clip
gst-launch -v filesrc location="/movie/castaway.avi" ! avidemux ! ffdec_mpeg4 ! ffmpegcolorspace ! ximagesink
6) audio only
gst-launch -v filesrc location="/movie/castaway.avi" ! avidemux name=demux demux. ! queue ! ffdec_ac3 ! osssink
7) AV at the same time
gst-launch -v filesrc location="/movie/castaway.avi" ! avidemux name=demux demux. ! queue ! ffdec_mpeg4 ! ffmpegcolorspace ! ximagesink demux. ! queue ! ffdec_ac3 ! osssink
반응형
'Multimedia' 카테고리의 다른 글
ExoPlayer 지원 codec 및 A/V rendering (0) | 2022.01.05 |
---|---|
JPEG (0) | 2021.12.22 |
정보 이론 (0) | 2021.12.22 |
GStreamer pwg: ch. 19 QoS (0) | 2021.12.22 |
댓글