Problem with GstDiscoverer on a PNG file

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

Problem with GstDiscoverer on a PNG file

David Ing
When I run the GstDiscoverer on a PNG image file I get GST_DISCOVERER_ERROR.

So basically I can't create a GESUriClipAsset from a PNG file because discovery is failing.

Questions ...
  1. Is discovery supposed to fail for image files?
  2. What is the best way to create a GESClip which displays a PNG image for a period of time?

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

Re: Problem with GstDiscoverer on a PNG file

Mathieu Duponchelle
On 1/23/19 11:05 PM, David Ing wrote:
When I run the GstDiscoverer on a PNG image file I get GST_DISCOVERER_ERROR.

So basically I can't create a GESUriClipAsset from a PNG file because discovery is failing.

Questions ...
  1. Is discovery supposed to fail for image files?

No, do you have a png decoder available (pngdec)?

  1. What is the best way to create a GESClip which displays a PNG image for a period of time?

GESClip() will create a GESImageSource internally, so that's the correct way,
just use set_duration() as usual :)


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

--
Mathieu Duponchelle · https://www.centricular.com

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

Re: Problem with GstDiscoverer on a PNG file

David Ing
Thanks Mathieu ... The problem was that my pngdec plugin was not being picked up.

On Wed, Jan 23, 2019 at 2:30 PM Mathieu Duponchelle <[hidden email]> wrote:
On 1/23/19 11:05 PM, David Ing wrote:
When I run the GstDiscoverer on a PNG image file I get GST_DISCOVERER_ERROR.

So basically I can't create a GESUriClipAsset from a PNG file because discovery is failing.

Questions ...
  1. Is discovery supposed to fail for image files?

No, do you have a png decoder available (pngdec)?

  1. What is the best way to create a GESClip which displays a PNG image for a period of time?

GESClip() will create a GESImageSource internally, so that's the correct way,
just use set_duration() as usual :)


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

--
Mathieu Duponchelle · https://www.centricular.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