cannot open two videosinks for two programs of mpegts

Alexander Vasiliev a.vasiliev at geoscan.aero
Thu Dec 14 07:13:46 UTC 2017


Hi Peter.

Nevetherless I can open each stream smoothly with one of one program pipeline, when
two streams is going on.

I don't see any problem with udp. PIDs are different for each stream, continuity counters are
different for each PID. So they should be easily separated by tsdemuxer.

But why two tsdemuxers cannot work in one pipeline?

-- 
Best regards,
Alexander Vasiljev


 > Hi Alexander. > UDP is not a magical muxer that can mux two streams 
from two different > sources. You need to mux the two stream in a single 
pipeline. > Regards > Peter MM
On Wed, Dec 13, 2017 at 4:17 PM, Alexander Vasiliev <a.vasiliev at geoscan.aero 
<https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel>
>/wrote: /
>/Hello! />/I have mpegts stream on udp. The stream has two programs inside. I want to />/show both programs in one pipeline. />//>//>/Here are video sources: />//>/gst-launch-1.0 videotestsrc horizontal-speed=1 ! />/'video/x-raw,width=720,height=576' ! timeoverlay ! x264enc bitrate=3500 />/key-int-max=25 byte-stream=true ! muxer.sink_300 mpegtsmux name=muxer />/prog-map=program_map,sink_300=10 ! udpsink host=127.0.0.1 port=3000 -v />//>/gst-launch-1.0 videotestsrc horizontal-speed=1 pattern=18 ! />/'video/x-raw,width=720,height=576' ! timeoverlay ! x264enc bitrate=3500 />/key-int-max=25 byte-stream=true ! muxer.sink_301 mpegtsmux name=muxer />/prog-map=program_map,sink_301=11 ! udpsink host=127.0.0.1 port=3000 -v />//>//>/They can be captured separatly with: />//>/gst-launch-1.0 udpsrc port=3000 ! queue ! tsdemux name=demux />/program-number=10 demux. ! 'video/x-h264' ! queue ! h264parse />/config-interval=1 ! avdec_h264 ! fpsdisplaysink sync=false />//>/gst-launch-1.0 udpsrc port=3000 ! queue ! tsdemux name=demux />/program-number=11 demux. ! 'video/x-h264' ! queue ! h264parse />/config-interval=1 ! avdec_h264 ! fpsdisplaysink sync=false />//>//>/But when i try to capture streams in one pileline i got only one video />/window. Here is a pipeline: />//>/gst-launch-1.0 udpsrc port=3000 ! tee name=t ! tsdemux program-number=11 />/! queue2 ! 'video/x-h264' ! h264parse ! avdec_h264 ! autovideosink />/sync=false async-handling=true async=true t. ! tsdemux program-number=10 ! />/queue2 ! 'video/x-h264' ! h264parse ! avdec_h264 ! autovideosink 
sync=false />/async-handling=true async=true />//>/The output is full of "Redistribute latency...". />//>//>/How can i watch to mpeg-ts programs in one pipeline? />

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20171214/9eac1c86/attachment.html>


More information about the gstreamer-devel mailing list