media information on decoder

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

media information on decoder

quang_openstack
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
Reply | Threaded
Open this post in threaded view
|

Re: media information on decoder

Mathieu Duponchelle
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
Reply | Threaded
Open this post in threaded view
|

Re: media information on decoder

Mathieu Duponchelle
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
Reply | Threaded
Open this post in threaded view
|

Re: media information on decoder

quang_openstack
@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
Reply | Threaded
Open this post in threaded view
|

Re: media information on decoder

Mathieu Duponchelle
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
Reply | Threaded
Open this post in threaded view
|

Re: media information on decoder

quang_openstack
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
Reply | Threaded
Open this post in threaded view
|

Re: media information on decoder

Mathieu Duponchelle
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
Reply | Threaded
Open this post in threaded view
|

Re: media information on decoder

quang_openstack
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