<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000">
<DIV 
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000">
<DIV 
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000">
<DIV>Hi!</DIV>
<DIV> </DIV>
<DIV>I hope you are not bothered by the virus. I am br Pio. I come from France 
and discovered gstreamer a few months ago. I use it to stream multiple video 
sources on YoutubeLive. May I say you guys do a great job!</DIV>
<DIV> </DIV>
<DIV>I have few problems I really can’t get through. </DIV>
<DIV> </DIV>
<DIV>I have two live video sources:</DIV>
<DIV> </DIV>
<DIV>-an axis ip camera, which gives me a rtsp flow</DIV>
<DIV>-a videocamera flow going through a hdmi to usb adaptater, and streamed by 
vlc, which gives me a rtsp flow.</DIV>
<DIV> </DIV>
<DIV>I use voctomix to mix the 2 video sources with the audio input of a sound 
card. </DIV>
<DIV> </DIV>
<DIV>Here are the pipelines for the video sources:</DIV>
<DIV> </DIV>
<DIV>gst-launch-1.0 rtspsrc location=$URLCAM latency=2000 ! decodebin 
name=decoder max-size-time=100000000 use-buffering=true low-percent=1 \</DIV>
<DIV>       decoder. ! queue 
min-threshold-time=$DELAY ! videoscale ! videorate ! videoconvert  ! 
video/x-raw,format=UYVY,width=$WIDTH,height=$HEIGHT,framerate=$FRAMERATE/1,pixel-aspect-ratio=1/1 
! queue ! matroskamux name=mux !\</DIV>
<DIV>        tcpclientsink host=localhost 
port=$PORT \</DIV>
<DIV>       audiotestsrc freq=550 !\</DIV>
<DIV>        
audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=48000 ! mux.</DIV>
<DIV> </DIV>
<DIV>And for the audio source:</DIV>
<DIV> </DIV>
<DIV>ffmpeg -y -nostdin \</DIV>
<DIV>    -itsoffset $retard \</DIV>
<DIV>     -loop 1 -i 
"/home/mixer/voctomix/lanceurs/sound.jpg" \</DIV>
<DIV>     -f pulse -i default  \</DIV>
<DIV>    -ac 2 \</DIV>
<DIV>    -vcodec rawvideo -r "$FRAMERATE" \</DIV>
<DIV>    -vf "scale=1280:-1,format=uyvy422" \</DIV>
<DIV>    -acodec pcm_s16le -ar "$AUDIORATE" -af $channel \</DIV>
<DIV>    -map 1:a:0  -map 0:v:0 \</DIV>
<DIV>    -f matroska \</DIV>
<DIV>    tcp://localhost:10003</DIV>
<DIV> </DIV>
<DIV>My first problem is:</DIV>
<DIV> </DIV>
<DIV>- The pipeline of the videocamera randomly renders a partially grey image. 
I have the same problem with some other ip cameras. The problem does not seem to 
come from the network gear, since the ip camera and the videocamera are using 
the same “way”.</DIV>
<DIV>The problem also seem to decrease with the bitrate: the lower the BR is, 
the lower the grey image occurs. </DIV>
<DIV>It also decreases when the preset used to encode the rtsp stream is slower: 
preset = medium, greater chance to get grey than with preset =slow. But when I 
use preset=slow, the pipeline output randomly goes faster of slower: the video 
is slow then suddenly accelerate, and then gets slow again etc.</DIV>
<DIV> </DIV>
<DIV>Here’s what it looks like.</DIV>
<DIV> </DIV>
<DIV><IMG title=grey 
style="BORDER-TOP: 0px; BORDER-RIGHT: 0px; BACKGROUND-IMAGE: none; BORDER-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; BORDER-LEFT: 0px; DISPLAY: inline; PADDING-RIGHT: 0px" 
border=0 alt=grey src="cid:681A5C76FA2C47F1B413182182E383B0@StMaxROC" width=644 
height=358></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>My second problem is :</DIV>
<DIV> </DIV>
<DIV>The audio input is randomly delayed. The offset between video and audio is 
random. One day it is perfectly synchronized, the other, there may be up to 
500-1000ms offset!</DIV>
<DIV> </DIV>
<DIV>In advance, thanks for taking time to answer me. I hope to hear from you 
soon.</DIV>
<DIV> </DIV>
<DIV>Best regards.</DIV>
<DIV> </DIV>
<DIV>br Pio</DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></BODY></HTML>