Video streaming in the same machine using gstreamer is too slow
Dilip Kumar
dilipkumar at e-consystems.com
Wed Jul 22 22:17:28 PDT 2015
Try to change the "decodebin" element in your server pipeline to explicitly use the hardware accelerated decoder. I.e. "matroskademux ! vpudec "
Because decodebin uses the most preferred decoder first, which could be the software decoder from gstreamer-ffmpeg package if it is present in your device, the pipeline could be slow.
Network cannot be an issue here, since you are using the localhost itself.
Regards,
Dilip Kumar J,
e-con Systems.
www.e-consystems.com
________________________________________
From: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> on behalf of suspension <manusha1980 at gmail.com>
Sent: 20 July 2015 22:12:49
To: gstreamer-devel at lists.freedesktop.org
Subject: Video streaming in the same machine using gstreamer is too slow
I am trying to setup video streaming on IMX6 SOC based platform. Following
gstreamer chain which I created to see if hardware decoding and encoding
works fine. Here I decode video, then encode it, and then send it through
rtpmp4vpay. This stream gets consumed by rtpmp4vdepay and sent through a
decoder to the video sink. I dont have any UDP sink/sources in this chain. I
created this chain to verify if hardware encoding/decoding works properly.
/gst-launch filesrc
location=/media/lacie/The.Dictator.2012.UNRATED.480p.BluRay.x264-mSD.mkv !
matroskademux ! vpudec ! vpuenc ! rtpmp4vpay mtu=1400 pt=96 ssrc=0
timestamp-offset=0 seqnum-offset=0 send-config=true !rtpmp4vdepay ! vpudec !
fpsdisplaysink/
If I split this chain to two - A server chain with a UDP sink and a client
chain with a UDPSource, the play becomes very slow.
Server chain:
/gst-launch filesrc location=<movie>.mkv ! decodebin ! vpuenc ! rtpmp4vpay
mtu=50000 pt=96 ssrc=0 timestamp-offset=0 seqnum-offset=0 send-config=true !
udpsink host=localhost port=5000/
Client chain:
/gst-launch udpsrc uri=udp://0.0.0.0:5000 caps="application/x-rtp,
media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP4V-ES,
profile-level-id=(string)1,
config=(string)000001b001000001b58913000001000000012000c48d88007d0a041e1463000001b24c61766335322e3132332e30,
payload=(int)96, ssrc=(uint)298758266, clock-base=(uint)3097828288,
seqnum-base=(uint)63478" ! rtpmp4vdepay ! vpudec ! autovideosink/
Can this be a network issue?
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Video-streaming-in-the-same-machine-using-gstreamer-is-too-slow-tp4672759.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list