transcoding pipeline for dvbsrc and dashsink

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

transcoding pipeline for dvbsrc and dashsink

vandanachadha

Need to read from dvbsrc which has audio and video content both and transcode the content using aac and x264 into the dashsink

Am trying the following amongst many other tries, but not working:

gst-launch-1.0 dashsink name=dashsink mpd-baseurl=http://localhost/media/kllywq84 mpd-root-path=/var/www/localhost/media/kllywq84 mpd-filename=live.mpd target-duration=5 min-buffer-time=10 minimum-update-period=10 dynamic=true muxer=ts dvbsrc modulation=5 adapter=0 frequency=147000000 delsys=dvb-c-b ! tsdemux name=demux demux. ! queue ! audioresample ! audioconvert ! avenc_aac bitrate = 128000 demux. ! queue ! x264enc bitrate=1200 key-int-max=60 ! video/x-h264,stream-format=byte-stream,profile=main ! dashsink.

Output:
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
/GstPipeline:pipeline0/GstDashSink:dashsink/GstSplitMuxSink:splitmuxsink0/GstFileSink:sink: async = false
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
/GstPipeline:pipeline0/GstDvbSrc:dvbsrc0.GstPad:src: caps = video/mpegts, mpegversion=(int)2, systemstream=(boolean)true
/GstPipeline:pipeline0/GstTSDemux:demux.GstPad:sink: caps = video/mpegts, mpegversion=(int)2, systemstream=(boolean)true
New clock: GstSystemClock
WARNING: from element /GstPipeline:pipeline0/GstTSDemux:demux: Delayed linking failed.
Additional debug info:
subprojects/gstreamer/gst/parse/grammar.y(544): gst_parse_no_more_pads (): /GstPipeline:pipeline0/GstTSDemux:demux:
failed delayed linking some pad of GstTSDemux named demux to some pad of GstQueue named queue0
WARNING: from element /GstPipeline:pipeline0/GstTSDemux:demux: Delayed linking failed.
Additional debug info:
subprojects/gstreamer/gst/parse/grammar.y(544): gst_parse_no_more_pads (): /GstPipeline:pipeline0/GstTSDemux:demux:
failed delayed linking some pad of GstTSDemux named demux to some pad of GstQueue named queue1
ERROR: from element /GstPipeline:pipeline0/GstDvbSrc:dvbsrc0: Internal data stream error.
Additional debug info:
../subprojects/gstreamer/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstDvbSrc:dvbsrc0:
streaming stopped, reason not-linked (-1)


Regards, 
Vandana

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: transcoding pipeline for dvbsrc and dashsink

dabrain34
Hello Vandana,

You need to tell explicitly the name of the dashsink pad to be used by the
transcoding branch.
By example  for a video you'll be using dashsink.video_0 and for audio
dashsink.audio_0.
If you want to add an additional transcoding path, you'll use a pad for
audio named dashsink.audio_1

Can you give a try to this pipeline:

$ gst-launch-1.0 dashsink name=dashsink
mpd-baseurl=http://localhost/media/kllywq84
mpd-root-path=/var/www/localhost/media/kllywq84 mpd-filename=live.mpd
target-duration=5 min-buffer-time=10 minimum-update-period=10 dynamic=true
muxer=ts dvbsrc modulation=5 adapter=0 frequency=147000000 delsys=dvb-c-b !
tsdemux name=demux demux. ! queue ! audioresample ! audioconvert ! avenc_aac
bitrate = 128000 ! dashsink.audio_0 demux. ! queue ! x264enc bitrate=1200
key-int-max=60 ! video/x-h264,stream-format=byte-stream,profile=main !
dashsink.video_0

Regards.

Stéphane



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel