How to forward muxed video-audio to tcp sink

Bart Koppe bk at a-bort.org
Fri May 9 14:16:33 PDT 2014


Hi,

At first I got tcpserversink working with mpegtsmux.

gst-launch-1.0 v4l2src device=/dev/video1 !
video/x-h264,width=1280,height=720,framerate=30/1 ! h264parse ! \
muxout. \
pulsesrc device="alsa_input.pci-0000_00_1b.0.analog-stereo" \
! queue ! audioconvert ! voaacenc bitrate=65536 ! \
muxout. \
mpegtsmux name=muxout ! queue ! tcpserversink host=192.168.2.13 port=5000

client: cvlc tcp://192.168.2.13:5000

I played the stream (video+audio) for quite long. When I got back I wanted
to start including tee for hdd saving. But then I found out the audio
piping was not working anymore. Only if I use matroskamux (because i used
it earlier) and save to disk i get audio, but then only for a bit.  But
mpegtsmux with tcpservsink gicves no audio anymore.

I'm expecting some faulty syntax from me?

vlc says:
[0x7f3b08001d58] ts demux error: MPEG-4 descriptor not found
[0x7f3b08e23a48] packetizer_mpeg4audio packetizer: AAC channels: 1
samplerate: 44100
[0x7f3b08001d58] ts demux error: libdvbpsi (PSI decoder): TS discontinuity
(received 10, expected 1) for PID 0
[0x7f3b08001d58] ts demux error: libdvbpsi (PSI decoder): TS discontinuity
(received 10, expected 1) for PID 32
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"

Thanks!
Bart



On Fri, May 9, 2014 at 3:52 PM, Dušan Poizl <poizl at maindata.sk> wrote:

>  matroska is not suitable for streaming. it is intended that you can seek
> in file when you open it. much better option is using RTP or MPEG-TS. so
> try replace matroskamux/demux with mpegtsmux and tsdemux.
>
> Dňa 09.05.2014 15:31, Bart Koppe wrote / napísal(a):
>
>  Hi,
>  Just still stuck how I can forward the matroskamux to tcpserversink on
> its own, any advise here? How to make it stream in stead of saving it to a
> file? (once I get there I will use tee to do both)
>  Thanks,
> Bart
>
>
>
> On Fri, May 9, 2014 at 2:18 AM, Luis de Bethencourt <
> luis at debethencourt.com> wrote:
>
>> Hi,
>>
>>  You want to split the data with a tee just before filesink.
>>
>>  So the data out of the matroskamux is split into two, one split going
>> to filesink and the other to tcpserversink.
>>
>>  You have an example of how to use tee here:
>>
>> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-plugins/html/gstreamer-plugins-tee.html
>>
>>  Luis
>>
>>
>>  On 8 May 2014 11:08, Bart Koppe <bk at a-bort.org> wrote:
>>
>>>     Hi,
>>>  I've been experimenting with gstreamer for a while now and got quite
>>> far for my level of experience :)
>>>  So now I can capture video and sound muxed together from my C920 to a
>>> file!
>>>
>>> gst-launch-1.0 v4l2src device=/dev/video1 !
>>> video/x-h264,width=1280,height=720,framerate=30/1 ! h264parse ! \
>>> muxout. \
>>> pulsesrc
>>> device="alsa_input.usb-046d_HD_Pro_Webcam_C920_F1894590-02-C920.analog-stereo"
>>> \
>>> ! queue ! audioconvert ! voaacenc bitrate=65536 ! \
>>> muxout. \
>>> matroskamux name=muxout streamable=true ! \
>>> filesink location=muxed-long.mp4
>>>
>>>  As a next step I would like to also stream the muxed audio+video
>>> directly to tcpserversink.
>>>  Any tips how to forward the mux to tcp? (and still capture)
>>>
>>>  Thanks!
>>> Bart
>>>
>>>
>>> --
>>> /\/\/\---------------------------------|
>>> Bart Koppe
>>>
>>>  _______________________________________________
>>> gstreamer-devel mailing list
>>> gstreamer-devel at lists.freedesktop.org
>>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>>
>>>
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>>
>
>
> --
> /\/\/\---------------------------------|
> Bart Koppe
> mediakunstenaar | http://bartkoppe.net
>
>
> _______________________________________________
> gstreamer-devel mailing listgstreamer-devel at lists.freedesktop.orghttp://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>


-- 
/\/\/\---------------------------------|
Bart Koppe
mediakunstenaar | http://bartkoppe.net
bk at a-bort.org
tel +3640704051
[aim/msn/skype bartkoppe]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140509/04914964/attachment.html>


More information about the gstreamer-devel mailing list