Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3547814
  • 博文数量: 1805
  • 博客积分: 135
  • 博客等级: 入伍新兵
  • 技术积分: 3345
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-19 20:01
文章分类

全部博文(1805)

文章存档

2017年(19)

2016年(80)

2015年(341)

2014年(438)

2013年(349)

2012年(332)

2011年(248)

分类: LINUX

2014-11-22 09:01:51

原文地址:gstreamer 调试命令 作者:Xuming_

avi:
GstPlayBin2 ( GstPlaySink ( GstStreamSynchronizer GstTee
GstBin ( GstAutoVideoSink ( GstXImageSink ) GstQueue GstFFMpegCsp GstVideoScale )
GstBin ( GstAutoAudioSink ( GstPulseSink ) GstQueue GstAudioConvert GstAudioResample ) )
GstURIDecodeBin ( GstFileSrc GstDecodeBin2 ( GstTypeFindElement GstAviDemux GstMultiQueue ffdec_h264 ffdec_dca GstAc3Parse GstAc3Parse ffdec_ac3 ffdec_ac3 ) ) GstInputSelector GstInputSelector )

gst-launch filesrc location= ! avidemux name=demux demux.video_00 ! queue ! ffdec_h264 ! videoscale ! ffmpegcolorspace ! autovideosink demux.audio_00 ! queue ! ac3parse ! ffdec_ac3 ! audioresample ! audioconvert ! autoaudiosink

gst-launch filesrc location=01.S01E01.avi ! avidemux name=demux demux.video_00 ! queue ! filesink location=01.S01E01.avi.stream.video

gst-launch filesrc location=./01.S01E01.avi.stream.video ! mpeg4videoparse !  ffdec_mpeg4 ! videoscale ! ffmpegcolorspace ! autovideosink


mp4:
gstreamer pipeline contains: GstPlayBin2 ( GstPlaySink ( GstStreamSynchronizer GstTee
GstBin ( GstAutoVideoSink ( GstXImageSink ) GstQueue GstFFMpegCsp GstVideoScale )
GstBin ( GstAutoAudioSink ( GstPulseSink ) GstQueue GstAudioConvert GstAudioResample ) )
GstURIDecodeBin ( GstFileSrc GstDecodeBin2 ( GstTypeFindElement GstQTDemux GstMultiQueue ffdec_h264 ffdec_aac ) )
GstInputSelector GstInputSelector )

gst-launch filesrc location= ! qtdemux name=demux demux.audio_00 ! queue ! ffdec_aac ! audioresample ! audioconvert ! autoaudiosink demux.video_00 ! queue ! ffdec_h264 ! ffmpegcolorspace  ! videoscale ! autovideosink

gst-launch filesrc location= ! qtdemux name=demux demux.video_00 ! queue ! filesink location=

gst-launch filesrc location= ! ffdec_h264 ! videoscale ! ffmpegcolorspace ! autovideosink


mov:

GstPlayBin2 ( GstPlaySink ( GstStreamSynchronizer GstTee
GstBin ( GstAutoVideoSink ( GstXImageSink ) GstQueue GstFFMpegCsp GstVideoScale )
GstBin ( GstAutoAudioSink ( GstPulseSink ) GstQueue GstAudioConvert GstAudioResample ) )
GstURIDecodeBin ( GstFileSrc GstDecodeBin2 ( GstTypeFindElement GstQTDemux GstMultiQueue ffdec_aac ffdec_h264 ) )
GstInputSelector GstInputSelector )

gst-launch filesrc location= ! qtdemux name=demux demux.audio_00 ! queue ! ffdec_aac ! audioresample ! audioconvert ! autoaudiosink demux.video_00 ! queue ! ffdec_h264 ! videoscale ! ffmpegcolorspace ! autovideosink


mkv:
GstPlayBin2 ( GstPlaySink ( GstStreamSynchronizer GstTee
GstBin ( GstAutoVideoSink ( GstXImageSink ) GstQueue GstFFMpegCsp GstVideoScale )
GstBin ( GstAutoAudioSink ( GstPulseSink ) GstQueue GstAudioConvert GstAudioResample ) )
GstURIDecodeBin ( GstFileSrc GstDecodeBin2 ( GstTypeFindElement GstMatroskaDemux GstMultiQueue ffdec_h264 ffdec_ac3 ) )
GstInputSelector GstInputSelector )


gst-launch filesrc location= ! matroskademux name=demux demux.video_00 ! queue ! filesink location=
gst-launch filesrc location= ! ffdec_h264 ! videoscale ! ffmpegcolorspace ! autovideosink


gst-launch filesrc location= ! h264parse !  ffdec_h264hw ! videoscale ! ffmpegcolorspace ! autovideosink


rmvb:
GstPlayBin2 ( GstPlaySink ( GstStreamSynchronizer GstTee
GstBin ( GstAutoVideoSink ( GstXImageSink ) GstQueue GstFFMpegCsp GstVideoScale )
GstBin ( GstAutoAudioSink ( GstPulseSink ) GstQueue GstAudioConvert GstAudioResample ) )
GstURIDecodeBin ( GstFileSrc GstDecodeBin2 ( GstTypeFindElement GstRMDemux GstMultiQueue ffdec_aac ffdec_rv40 ) )
GstInputSelector GstInputSelector )

gst-launch filesrc location= ! rmdemux name=demux demux.audio_00 ! queue ! ffdec_aac ! audioresample ! audioconvert ! autoaudiosink demux.video_00 ! queue ! ffdec_rv40 ! videoscale ! ffmpegcolorspace ! autovideosink

gst-launch filesrc location= ! rmdemux name=demux demux.video_00 ! queue ! filesink location=

gst-launch filesrc location= ! realmedia ! ffdec_rv40 ! videoscale ! ffmpegcolorspace ! autovideosink


ts:
gstreamer pipeline contains: GstPlayBin2 ( GstPlaySink ( GstStreamSynchronizer GstTee
GstBin ( GstAutoVideoSink ( GstXImageSink ) GstQueue GstFFMpegCsp GstVideoScale )
GstBin ( GstAutoAudioSink ( GstPulseSink ) GstQueue GstAudioConvert GstAudioResample ) )
GstURIDecodeBin ( GstFileSrc GstDecodeBin2 ( GstTypeFindElement GstMpegTSDemux GstMultiQueue MpegVideoParse GstAc3Parse ffdec_ac3 ffdec_mpegvideo ) ) GstInputSelector GstInputSelector )

gst-launch filesrc location= ! mpegtsdemux name=demux demux.audio_00 ! queue ! ffdec_ac3 ! audioresample ! audioconvert ! autoaudiosink demux.video_00 ! queue ! ffdec_mpegvideo ! videoscale ! ffmpegcolorspace ! autovideosink

gst-launch filesrc location= ! mpegtsdemux name=demux demux.video_00 ! queue ! filesink location=


wmv:
gstreamer pipeline contains: GstPlayBin2 ( GstPlaySink ( GstStreamSynchronizer GstTee
GstBin ( GstAutoVideoSink ( GstXImageSink ) GstQueue GstFFMpegCsp GstVideoScale )
GstBin ( GstAutoAudioSink ( GstPulseSink ) GstQueue GstAudioConvert GstAudioResample ) )
GstURIDecodeBin ( GstFileSrc GstDecodeBin2 ( GstTypeFindElement GstASFDemux GstMultiQueue ffdec_wmapro ffdec_wmv3 ) )
GstInputSelector GstInputSelector )

gst-launch filesrc location= ! asfdemux name=demux demux.audio_00 ! queue ! ffdec_wmapro ! audioresample ! audioconvert ! autoaudiosink demux.video_00 ! queue ! ffdec_wmv3 ! videoscale ! ffmpegcolorspace ! autovideosink

gst-launch filesrc location ! asfdemux name=demux demux.video_00 ! queue ! filesink location=


mpg:
gstreamer pipeline contains: GstPlayBin2 ( GstPlaySink ( GstStreamSynchronizer GstTee
GstBin ( GstAutoVideoSink ( GstXImageSink ) GstQueue GstFFMpegCsp GstVideoScale )
GstBin ( GstAutoAudioSink ( GstPulseSink ) GstQueue GstAudioConvert GstAudioResample ) )
GstURIDecodeBin ( GstFileSrc GstDecodeBin2 ( GstTypeFindElement GstMpegTSDemux GstMultiQueue MpegVideoParse GstAc3Parse ffdec_mpegvideo ffdec_ac3 ) ) GstInputSelector GstInputSelector )

gst-launch filesrc location= ! mpegtsdemux name=demux demux.audio_00 ! queue ! ffdec_ac3 ! audioresample ! audioconvert ! autoaudiosink demux.video_00 ! queue ! ffdec_mpegvideo ! videoscale ! ffmpegcolorspace ! audovideosink


flv:
gstreamer pipeline contains: GstPlayBin2 ( GstPlaySink ( GstStreamSynchronizer GstTee
GstBin ( GstAutoVideoSink ( GstXImageSink ) GstQueue GstFFMpegCsp GstVideoScale )
GstBin ( GstAutoAudioSink ( GstPulseSink ) GstQueue GstAudioConvert GstAudioResample ) )
GstURIDecodeBin ( GstFileSrc GstDecodeBin2 ( GstTypeFindElement GstFlvDemux GstMultiQueue ffdec_h264 ffdec_aac ) )
GstInputSelector GstInputSelector )

gst-launch filesrc location= ! flvdemux name=demux demux.audio_00 ! queue ! ffdec_aac ! audioresample ! audioconvert ! autoaudiosink demux.video_00 ! queue ! ffdec_h264 ! videoscale ! ffmpegcolorspace ! autovideosink


rdsp:

wav:
server:
gst-launch -v  filesrc location=./LadyGaGaBadRomance.wav ! wavparse ! audioconvert ! audioresample ! mulawenc  ! rtppcmupay ! udpsink host=192.168.1.138 port=5555
client:
gst-launch -v  udpsrc uri=udp://192.168.1.138:5555 port=5555 caps="application/x-rtp" ! queue ! rtppcmudepay ! autoaudiosink


rm:
server:
gst-launch -v filesrc location=./huawei_cn.rm ! tcpclientsink host=192.168.1.138 port=3000
client:
gst-launch-0.10 tcpserversrc host=192.168.1.138 port=3000 ! decodebin name=bin bin.src0 ! ffmpegcolorspace ! autovideosink bin.src1 ! audioconvert ! autoaudiosink

gst-launch filesrc location=./ ! oggdemux name=demux demux.audio_00 ! queue ! rtpvorbispay name=pay1 pt=97  demux.video_00 ! queue ! d.video_00 ! queue ! rtptheorapay name=pay0 pt=96 ! udpsink host=192.168.1.138

server:
gst-launch filesrc location=./MPEG4+AC3-1280x720-24fps-02.S01E02.avi ! avidemux name=demux demux.audio_00 ! queue ! rtpac3pay name=pay1 pt=97  demux.video_00 ! queue ! queue ! rtpmp4vpay name=pay0 pt=96 ! udpsink host=192.168.1.138 port=5555
client:
gst-launch udpsrc uri=udp://192.168.1.138:5555 caps="application/x-rtp" ! queue ! rtpmp4vdepay ! autovideosink

gst-launch udpsrc uri=udp://192.168.1.138:5555 caps="application/x-rtp" ! queue ! rtpac3depay ! autoaudiosink

wav:(can work)
server:
gst-launch filesrc location=./ ! id3demux ! mpegaudioparse ! flump3dec ! audioconvert ! audioresample ! mulawenc  ! rtppcmupay ! udpsink host=192.168.1.138 port=5555
client:
gst-launch -v  udpsrc uri=udp://192.168.1.138:5555 port=5555 caps="application/x-rtp" ! queue ! rtppcmudepay ! autoaudiosink


mp3:(can work)
gst-launch uridecodebin uri=file:///mnt/sdb1/temp/LadyGaGaBadRomance.mp3 ! audioconvert ! audioresample ! autoaudiosink
server:(can work)
gst-launch -v uridecodebin uri=file:///mnt/sdb1/temp/LadyGaGaBadRomance.mp3 ! rtpgstpay ! udpsink host=192.168.1.138 port=5555
client1:
gst-launch -v  udpsrc uri=udp://192.168.1.138:5555 port=5555 caps="application/x-rtp, media=(string)application, clock-rate=(int)90000, encoding-name=(string)X-GST, caps=(string)YXVkaW8veC1yYXctaW50LCBlbmRpYW5uZXNzPShpbnQpMTIzNCwgc2lnbmVkPShib29sZWFuKXRydWUsIHdpZHRoPShpbnQpMTYsIGRlcHRoPShpbnQpMTYsIHJhdGU9KGludCk0NDEwMCwgY2hhbm5lbHM9KGludCky, payload=(int)96, ssrc=(uint)3834291619, clock-base=(uint)210512923, seqnum-base=(uint)64550" ! rtpgstdepay ! audioconvert ! audioresample ! autoaudiosink
client2:
gst-launch -v gstrtpbin name=rtpbin latency=100 ! udpsrc caps="(string)YXVkaW8veC1yYXctaW50LCBlbmRpYW5uZXNzPShpbnQpMTIzNCwgc2lnbmVkPShib29sZWFuKXRydWUsIHdpZHRoPShpbnQpMTYsIGRlcHRoPShpbnQpMTYsIHJhdGU9KGludCk0NDEwMCwgY2hhbm5lbHM9KGludCky, payload=(int)96, ssrc=(uint)3834291619, clock-base=(uint)210512923, seqnum-base=(uint)64550" ! rtpbin. audioconvert ! audioresample ! autoaudiosink


yuv:(can work)
gst-launch uridecodebin uri=file:///mnt/sdb1/ES/AVS/bridge_close_cif_IP_0.5I_2000_384kbps.yuv ! ffmpegcolorspace ! videoscale ! autovideosink

server:
gst-launch -v uridecodebin uri=file:///mnt/sdb1/ES/AVS/bridge_close_cif_IP_0.5I_2000_384kbps.yuv ! rtpvrawpay ! udpsink host=192.168.1.138 port=5555
client:
gst-launch -v  udpsrc uri=udp://192.168.1.138:5555 port=5555 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)RAW, sampling=(string)YCbCr-4:2:0, depth=(string)8, width=(string)352, height=(string)288, colorimetry=(string)SMPTE240M, payload=(int)96, ssrc=(uint)3191768715, clock-base=(uint)2847810917, seqnum-base=(uint)4459" ! rtpvrawdepay ! ffmpegcolorspace ! videoscale ! autovideosink


mp4:(AVC+AAC-1280x720-25fps)
server:
gst-launch -v  uridecodebin uri=file:///mnt/sdb1/temp/AVC+AAC-1280x720-25fps-\[8CYBER\]MSHK\ 2010.mp4 name=decodebin decodebin. ! rtpvrawpay ! udpsink host=192.168.1.138 port=5000 decodebin. ! rtpgstpay ! udpsink host=192.168.1.138 port=5001

client step1:(video)
gst-launch udpsrc uri=udp://192.168.1.138:5000 port=5000 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)RAW, sampling=(string)YCbCr-4:2:0, depth=(string)8, width=(string)1280, height=(string)720, colorimetry=(string)SMPTE240M, payload=(int)96, ssrc=(uint)3790395806, clock-base=(uint)3034901065, seqnum-base=(uint)40885" ! rtpvrawdepay ! ffmpegcolorspace ! videoscale ! autovideosink
client step2:(audio)
gst-launch udpsrc uri=udp://192.168.1.138:5001 port=5001 caps="application/x-rtp, media=(string)application, clock-rate=(int)90000, encoding-name=(string)X-GST, caps=(string)YXVkaW8veC1yYXctaW50LCByYXRlPShpbnQpNDgwMDAsIGNoYW5uZWxzPShpbnQpMiwgc2lnbmVkPShib29sZWFuKXRydWUsIGVuZGlhbm5lc3M9KGludCkxMjM0LCB3aWR0aD0oaW50KTE2LCBkZXB0aD0oaW50KTE2, payload=(int)96, ssrc=(uint)1702556053, clock-base=(uint)58127330, seqnum-base=(uint)56952" ! rtpgstdepay ! audioconvert ! audioresample ! autoaudiosink

client-together:(audio video)(can work)
gst-launch tee tee. udpsrc uri=udp://192.168.1.138:5000 port=5000 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)RAW, sampling=(string)YCbCr-4:2:0, depth=(string)8, width=(string)1280, height=(string)720, colorimetry=(string)SMPTE240M, payload=(int)96, ssrc=(uint)3790395806, clock-base=(uint)3034901065, seqnum-base=(uint)40885" ! rtpvrawdepay ! ffmpegcolorspace ! videoscale ! autovideosink
tee. udpsrc uri=udp://192.168.1.138:5001 port=5001 caps="application/x-rtp, media=(string)application, clock-rate=(int)90000, encoding-name=(string)X-GST, caps=(string)YXVkaW8veC1yYXctaW50LCByYXRlPShpbnQpNDgwMDAsIGNoYW5uZWxzPShpbnQpMiwgc2lnbmVkPShib29sZWFuKXRydWUsIGVuZGlhbm5lc3M9KGludCkxMjM0LCB3aWR0aD0oaW50KTE2LCBkZXB0aD0oaW50KTE2, payload=(int)96, ssrc=(uint)1702556053, clock-base=(uint)58127330, seqnum-base=(uint)56952" ! rtpgstdepay ! audioconvert ! audioresample ! autoaudiosink

gst-launch gstrtpbin name=rtpbin latency=100 udpsrc caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)RAW, sampling=(string)YCbCr-4:2:0, depth=(string)8, width=(string)1280, height=(string)720, colorimetry=(string)SMPTE240M, payload=(int)96, ssrc=(uint)3790395806, clock-base=(uint)3034901065, seqnum-base=(uint)40885" port=5000 ! rtpbin. ! ffmpegcolorspace ! videoscale ! autovideosink udpsrc caps="application/x-rtp, media=(string)application, clock-rate=(int)90000, encoding-name=(string)X-GST, caps=(string)YXVkaW8veC1yYXctaW50LCByYXRlPShpbnQpNDgwMDAsIGNoYW5uZWxzPShpbnQpMiwgc2lnbmVkPShib29sZWFuKXRydWUsIGVuZGlhbm5lc3M9KGludCkxMjM0LCB3aWR0aD0oaW50KTE2LCBkZXB0aD0oaW50KTE2, payload=(int)96, ssrc=(uint)1702556053, clock-base=(uint)58127330, seqnum-base=(uint)56952" port=5001 ! rtpbin. ! audioconvert ! audioresample ! autoaudiosink

asf:
gst-launch uridecodebin uri=file:///mnt/sdb1/temp/MPA2-MPGA-352-288-tangtaizhong.ASF name=decodebin decodebin. ! audioconvert ! audioresample ! autoaudiosink  decodebin. ! ffmpegcolorspace ! videoscale ! autovideosink
server:
gst-launch -v filesrc location=./ ! rtpasfpay ! udpsink host=192.168.1.138 port=5555
client:

ts:
gst-launch filesrc location=./MPEG2+AC3-1920x1080-24fps-Stealth.2.ts ! mpegtsdemux name=demux demux. ! queue ! mpegvideoparse  !  ffdec_mpegvideo ! ffmpegcolorspace ! videoscale ! autovideosink demux. ! queue ! ac3parse ! ffdec_ac3 ! audioconvert ! audioresample ! autoaudiosink
1.
server:(can no work)
gst-launch -v filesrc location=./ ! tcpclientsink host=192.168.1.138 port=3000
client:
gst-launch-0.10 tcpserversrc host=192.168.1.138 port=3000 ! decodebin name=bin bin.src0 ! ffmpegcolorspace ! autovideosink bin.src1 ! audioconvert ! autoaudiosink
2.
server:
gst-launch -v filesrc location=./MPEG2+AC3-1920x1080-24fps-Stealth.2.ts ! rtpmp2tpay ! udpsink host=192.168.1.138 port=5555

gst-launch filesrc location=./ ! mpegtsdemux name=demux demux. ! rtpgstpay ! udpsink host=192.168.1.138 port=5555

gst-launch -v filesrc location=./MPEG2+AC3-1920x1080-24fps-Stealth.2.ts ! mpegtsdemux name=demux demux. ! mpegtsmux name=mux mux.! rtpmp2tpay ! udpsink host=192.168.1.138 port=5555         (vlc can work)

setp:

client:
gst-launch tee tee. udpsrc uri=udp://192.168.1.138:5000 port=5000 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)RAW, sampling=(string)YCbCr-4:2:0, depth=(string)8, width=(string)1280, height=(string)720, colorimetry=(string)SMPTE240M, payload=(int)96, ssrc=(uint)3790395806, clock-base=(uint)3034901065, seqnum-base=(uint)40885" ! rtpvrawdepay ! ffmpegcolorspace ! videoscale ! autovideosink
tee. udpsrc uri=udp://192.168.1.138:5001 port=5001 caps="application/x-rtp, media=(string)application, clock-rate=(int)90000, encoding-name=(string)X-GST, caps=(string)YXVkaW8veC1yYXctaW50LCByYXRlPShpbnQpNDgwMDAsIGNoYW5uZWxzPShpbnQpMiwgc2lnbmVkPShib29sZWFuKXRydWUsIGVuZGlhbm5lc3M9KGludCkxMjM0LCB3aWR0aD0oaW50KTE2LCBkZXB0aD0oaW50KTE2, payload=(int)96, ssrc=(uint)1702556053, clock-base=(uint)58127330, seqnum-base=(uint)56952" ! rtpgstdepay ! audioconvert ! audioresample ! autoaudiosink

gst-launch-0.10 udpsrc uri=udp://192.168.1.138:5555 port=5555 !  rtpmp2tdepay ! decodebin name=bin bin.src0 ! ffmpegcolorspace ! autovideosink bin.src1 ! audioconvert ! autoaudiosink

gst-laucn udpsrc uri=upd://192.168.1.138:5555 port=5555 ! rtpmp2tdepay ! mpegvideoparse ! ffdec_mpegvideo ! ffmpegcolorspace ! videoscale ! autovideosink


ogg:
gst-launch filesrc location=./How\ fast.ogg ! oggdemux name=demux  demux. ! queue  ! theoradec ! ffmpegcolorspace ! videoscale ! autovideosink demux. ! queue !  vorbisdec ! audioconvert ! audioresample ! autoaudiosink
server:
gst-launch -v filesrc location= ! oggdemux name=demux demux. ! rtpvorbispay ! udpsink host=192.168.1.138 port=5000 demux. ! rtptheorapay ! udpsink host=192.168.1.138 port=5001
client:
gst-launch tee tee. udpsrc uri=udp://192.168.1.138:5000 port=5001 caps="" ! rtptheoradepay ! theoradec ! ffmpegcolorspace ! videoscale ! autovideosink
tee. udpsrc uri=udp://192.168.1.138:5001 port=5000 caps="" ! rtpvorbisdepay ! vorbisdec ! audioconvert ! audioresample ! autoaudiosink

阅读(2434) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~