2016-04-06 20 views
1

bir proje üzerinde çalışıyorum ve benHATA: sözdizimi hatası

gst-launch-1.0 -e \ 
    videomixer name=mix \ 
     sink_0::xpos=0 sink_0::ypos=0 sink_0::alpha=0 \ 
     sink_1::xpos=640 sink_1::ypos=0 sink_1::alpha=1 \ 
     sink_2::xpos=0 sink_2::ypos=0 sink_2::alpha=1 \ 
    ! glshader location=distortion.frag ! glimagesink sync=false \ 
    videotestsrc pattern="black" \ 
     ! video/x-raw,width=1280,height=720 \ 
     ! mix.sink_0 \ 
    rtpbin name=rtpbinleft latency=250 ntp-sync=true do-retransmission=0 \ 
    udpsrc caps=application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264 port=5000 ! rtpbinleft.recv_rtp_sink_0 \ 
     rtpbinleft. ! rtph264depay ! h264parse ! avdec_h264 ! videoscale add-borders=false ! video/x-raw,width=640,height=720 ! mix.sink_1 \ 
    udpsrc port=5001 ! rtpbinleft.recv_rtcp_sink_0 \ 
     rtpbinleft.send_rtcp_src_0 ! udpsink port=5005 host=192.168.0.17 sync=false async=false \ 
    rtpbin name=rtpbinright latency=250 ntp-sync=true do-retransmission=0 \ 
    udpsrc caps=application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264 port=6000 ! rtpbinright.recv_rtp_sink_0 \ 
     rtpbinright. ! rtph264depay ! h264parse ! avdec_h264 ! videoscale add-borders=false ! video/x-raw,width=640,height=720 ! mix.sink_2 \ 
    udpsrc port=6001 ! rtpbinright.recv_rtcp_sink_0 \ 
     rtpbinright.send_rtcp_src_0 ! udpsink port=6005 host=192.168.0.18 sync=false async=false 

o akışlarına bu evin gerekiyordu bu işi yapmak ve bir varil bozulma uygulamak gerekir: Boru hattı inşa edilemedi. https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=65700&start=25

Neredeyse her şeyi denedim ama daima

ERROR: pipeline could not be constructed: syntax error. 

Herhangi bir yardım başarısız ve de ki: İşte tuto nedir?

cevap

0

Görünüşe göre sadece rtpbin öğelerinin kapak değerlerinde bulunan tırnak tırnaklarını unutmuşsunuzdur. Bir komut satırında aşağıdaki gibi yapmalısınız:

rtpbin caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264" 

alıntılar dışında hepsi '(string)', '(int)' gst başlatılacak şekilde mantıklı değildir.