Hi everyone,
I am using gstreamer to decode video and audio from udpsrc like this gst-launch-1.0 udpsrc port=5000 ! tsdemux name=demuxer demuxer. ! queue ! h265parse ! omxh265dec ! nvoverlaysink demuxer. ! queue ! faad ! audioconvert ! alsasink device=aux_plug But how can I get media information like video resolution, framerate, bitrate, ... Any suggestion is appreciated. Thank in advance -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Yes it will, as GstElement inherits from GInitiallyUnowned.
If for one reason or another your call to gst_bin_add() fails unreffing the element remains your responsibility. On 11/9/18 2:48 AM, quang_openstack wrote: > Hi everyone, > I am using gstreamer to decode video and audio from udpsrc like this > > gst-launch-1.0 udpsrc port=5000 ! tsdemux name=demuxer demuxer. ! queue ! > h265parse ! omxh265dec ! nvoverlaysink demuxer. ! queue ! faad ! > audioconvert ! alsasink device=aux_plug > > But how can I get media information like video resolution, framerate, > bitrate, ... > Any suggestion is appreciated. > Thank in advance > > > > > -- > Sent from: http://gstreamer-devel.966125.n4.nabble.com/ > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by quang_openstack
Wrong thread I'm sorry :)
On 11/9/18 2:48 AM, quang_openstack wrote: > Hi everyone, > I am using gstreamer to decode video and audio from udpsrc like this > > gst-launch-1.0 udpsrc port=5000 ! tsdemux name=demuxer demuxer. ! queue ! > h265parse ! omxh265dec ! nvoverlaysink demuxer. ! queue ! faad ! > audioconvert ! alsasink device=aux_plug > > But how can I get media information like video resolution, framerate, > bitrate, ... > Any suggestion is appreciated. > Thank in advance > > > > > -- > Sent from: http://gstreamer-devel.966125.n4.nabble.com/ > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
@Mathieu Duponchelle,
No problem :)) Do you have any suggestion for my problem? Thank in advance -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Well you can either use gst-discoverer with a udp:// uri, or see the caps exchanged between the elements by passingĀ -v to gst-launch I would say
On 11/9/18 3:19 AM, quang_openstack wrote: > @Mathieu Duponchelle, > No problem :)) > Do you have any suggestion for my problem? > Thank in advance > > > > -- > Sent from: http://gstreamer-devel.966125.n4.nabble.com/ > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi Mathieu Duponchelle,
I would like to get some example code for this problem Thank. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi, I suggest you take a look at the documentation first :)
On 11/9/18 5:46 AM, quang_openstack wrote: > Hi Mathieu Duponchelle, > I would like to get some example code for this problem > Thank. > > > > -- > Sent from: http://gstreamer-devel.966125.n4.nabble.com/ > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi,
I used pad probe and it successes to get media information. Thank. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |