streaming between VLC and gstreamer

modelvincent vincent.decaux at oxytronic.fr
Fri Jul 10 06:14:56 PDT 2015


Hello, 

I'm trying to stream a directshow source from a PC to an embedded system
under linux (Angstrom) using Gstreamer to display this stream.


>From VLC, I stream using RTSP with a transcoding (H264/mp3) with the
following command:
vlc "dshow://" :dshow-vdev="TW6802 PCI, Analog Capture (#01)" 
:dshow-adev="TW6802 PCI, Analog WaveIn (#01)" :dshow-chroma="YUY2"
:dshow-audio-channels=1 :dshow-audio-samplerate=48000
:dshow-audio-bitspersample=16
:sout=#transcode{vcodec=h264,vb=0,scale=0,acodec=mp3,ab=128,channels=2,samplerate=48000}:rtp{sdp=rtsp://:5544/}
:no-sout-rtp-sap :no-sout-standard-sap :sout-all :ttl=1 :sout-keep


And I would like to display it on gstreamer using the following command:
gst-launch playbin2 uri="rtsp://192.168.4.40:5544"
video-sink=nv_omx_videosink

It's working but I have a latency of at least 3 to 4 seconds, and the audio
is in advance for about 300ms before video.

If I use the following command:
gst-launch rtspsrc location="rtsp://192.168.4.40:5544/" latency=100 !
gstrtpjitterbuffer ! decodebin ! nv_omx_videosink
I have only the video (normal due to the command line) with about 1 second
of latency. (and the command line is working about 1 time on 3, i don't know
why?)

If I open a second terminal with the following command line: 
gst-launch rtspsrc location="rtsp://192.168.4.40:5544/" latency=100 !
gstrtpjitterbuffer ! decodebin ! autoaudiosink
It's working with the 1 second latency but with a delta between audio and
video for about 200ms...

Is there a better way to stream my directshow between windows and my linux
gstreamer with the low latency possible?

For information, the only gstreamer available on my linux is gstreamer-0.10.

Thanks in advance, 

Best regards

Vincent DECAUX



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/streaming-between-VLC-and-gstreamer-tp4672619.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list