Usando codificação de vídeo RAW com gstreamer & VLC

3

Estou transmitindo vídeo RAW com gstreamer assim:

gst-launch-1.0 -v videotestsrc ! rtpvrawpay ! udpsink host="127.0.0.1" port="5000"

Isso gera os seguintes limites:

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)320, height=(string)240, colorimetry=(string)BT601-5, payload=(int)96, ssrc=(uint)1103043224, timestamp-offset=(uint)1948293153, seqnum-offset=(uint)27904

Eu posso ver esse fluxo com o gstreamer usando:

gst-launch-1.0 udpsrc 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)320, height=(string)240, colorimetry=(string)BT601-5, payload=(int)96, ssrc=(uint)1103043224, timestamp-offset=(uint)1948293153, seqnum-offset=(uint)27904" ! rtpvrawdepay ! videoconvert ! queue ! xvimagesink sync=false

Usando o VLC, criei um arquivo SDL:

v=0
c=IN IP4 127.0.0.1
m=video 5000 RTP/AVP 96
a=rtpmap:96 RAW/90000
a=fmtp:96 media=video; clock-rate=90000; encoding-name=RAW

Mas os erros do VLC com:

core input error: no suitable demux module for 'file/any:///home/.../settings.sdp'

Como posso ter o VLC aceitando o fluxo RAW?

    
por wulfgarpro 27.10.2014 / 01:49

0 respostas