gst note
gst is one of the most famous and widely used library for media playing and editing
INSTALLRATION:
sudo port install gstreamer010 py27-gst-python gstreamer010-gst-plugins-good
sudo port install gstreamer010-gst-ffmpeg gstreamer010-gst-plugins-base gstreamer010-gst-plugins-ugly gstreamer010-gst-plugins-gl gstreamer010-gst-plugins-gl gstreamer010-gst-plugins-gl gstreamer010-gst-plugins-bad
sudo port install gstreamer01-gst-rtsp-server//gstreamer010-gst-rtsp-serve
for Ubuntu:
gstreamer0.10-plugins-ugly (for x264 encoding)
python-gst0.10-dev (for gst-python)
gstreamer0.10-ffmpeg
sudo apt-get install gstreamer0.10-ffmpeg python-gst0.10-dev gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad
TEST:
xvimagesink -> ximagesink
videoconvert -> osxvideosink
audioconvert -> osxaudiosink
use autoaudiosink and autovideosink instead of osxaudiosink and osxvideosink
gst-launch filesrc location=ab.mp3 ! mad ! audioconvert ! osxaudiosink
gst-launch filesrc location=movie.mp4 ! decodebin ! audioconvert ! osxaudiosink
gst-launch filesrc location=movie.mp4 ! decodebin ! autovideoconvert ! osxvideosink
gst-launch filesrc location=movie.mp4 ! decodebin name=decoder decoder. ! autovideoconvert ! ximagesink decoder. ! audioconvert ! osxaudiosink
gst-launch filesrc location=movie.mp4 ! decodebin ! autovideoconvert ! ximagesink
gst-launch-1.0 filesrc location=my-random-media-file.mpeg ! decodebin name=decoder
decoder. ! videoconvert ! xvimagesink
decoder. ! audioconvert ! pulsesink
gst-launch filesrc location=a.mp3 ! mad ! autoconvert ! volume volume=0.5 ! autoaudiosink
<note: for other linux os, replace osxaudiosink with alsasink>
INSTALLRATION:
sudo port install gstreamer010 py27-gst-python gstreamer010-gst-plugins-good
sudo port install gstreamer010-gst-ffmpeg gstreamer010-gst-plugins-base gstreamer010-gst-plugins-ugly gstreamer010-gst-plugins-gl gstreamer010-gst-plugins-gl gstreamer010-gst-plugins-gl gstreamer010-gst-plugins-bad
sudo port install gstreamer01-gst-rtsp-server//gstreamer010-gst-rtsp-serve
for Ubuntu:
gstreamer0.10-plugins-ugly (for x264 encoding)
python-gst0.10-dev (for gst-python)
gstreamer0.10-ffmpeg
sudo apt-get install gstreamer0.10-ffmpeg python-gst0.10-dev gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad
TEST:
xvimagesink -> ximagesink
videoconvert -> osxvideosink
audioconvert -> osxaudiosink
use autoaudiosink and autovideosink instead of osxaudiosink and osxvideosink
gst-launch filesrc location=ab.mp3 ! mad ! audioconvert ! osxaudiosink
gst-launch filesrc location=movie.mp4 ! decodebin ! audioconvert ! osxaudiosink
gst-launch filesrc location=movie.mp4 ! decodebin ! autovideoconvert ! osxvideosink
gst-launch filesrc location=movie.mp4 ! decodebin name=decoder decoder. ! autovideoconvert ! ximagesink decoder. ! audioconvert ! osxaudiosink
gst-launch filesrc location=movie.mp4 ! decodebin ! autovideoconvert ! ximagesink
gst-launch-1.0 filesrc location=my-random-media-file.mpeg ! decodebin name=decoder
decoder. ! videoconvert ! xvimagesink
decoder. ! audioconvert ! pulsesink
gst-launch filesrc location=a.mp3 ! mad ! autoconvert ! volume volume=0.5 ! autoaudiosink
<note: for other linux os, replace osxaudiosink with alsasink>
热门话题 · · · · · · ( 去话题广场 )
- 解锁我的夏日旅行足迹地图 活动 29.4万次浏览
- 哪一刻你真正感觉到了自己身体的存在? 5967次浏览
- 你想对高考生们说点什么? 3.1万次浏览
- 用对话体写日记 1765次浏览
- 如何阅读一片叶子 新话题
- 晒出你的上影节最爱 新话题