Transcoding to multiple image size
Dmitriy Novash
programer at wnet.ua
Thu Apr 20 13:49:19 UTC 2017
Hi all.
I have many TV streams (Mpeg2) in udp multicast.
I want to have stream in H264+AAC in udp multicast with 3 resolutions:
1:1 (original),1:2,1:4. Now I do it with 3 processes of gst-launch, but
for optimization of CPU usage I think I can do it in one process.
After several tries I get 3 videos with 3 resolutions, but i can't get
audio for all threads, only for one.
I'm using gstreamer 1.00+ version:
$ gst-launch-1.0 --version
gst-launch-1.0 version 1.8.3
GStreamer 1.8.3
My configuration:
|gst-launch-||1.0| |udpsrc uri=udp:||//239.50.50.50:1234 ! queue !
tsparse ! queue ! tsdemux name=demux \
demux. ! queue ! mpegvideoparse ! queue ! decodebin ! queue !
deinterlace ! \
tee name=tee1 ! queue ! videoscale method=0 ! videorate ! video/x-raw,
width=640, height=512, framerate=25/1 ! x264enc ! h264parse ! mpegtsmux
name=muxer alignment=7 \
demux. ! queue ! decodebin ! queue ! audioconvert ! audioresample !
queue ! audio/x-raw, rate=48000, channels=1 ! audiorate ! voaacenc
bitrate=32000 ! queue ! aacparse ! queue ! tee name=tee2 ! queue ! muxer. \
muxer. ! rtpmp2tpay ! udpsink host=127.0.0.1 port=1111 \
tee1. ! queue ! videoscale method=0 ! videorate ! video/x-raw,
width=320, height=256, framerate=25/1 ! x264enc ! h264parse ! mpegtsmux
name=muxer1 alignment=7 muxer1. ! rtpmp2tpay ! udpsink host=127.0.0.1
port=1112 \
tee1. ! queue ! videoscale method=0 ! videorate ! video/x-raw,
width=160, height=128, framerate=25/1 ! x264enc ! h264parse ! mpegtsmux
name=muxer2 alignment=7 muxer2. ! rtpmp2tpay ! udpsink host=127.0.0.1
port=1113|
I can't join mpedtsmux and tee.
So I want to decode video, get 3 copies, each copy scale to some
resolution, encode, decode + encode audio and join to each copy of
video, output each copy in udp unicast to some port.
Help, maybe someone have working solution for my task.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170420/fb1d2d4c/attachment.html>
More information about the gstreamer-devel
mailing list