After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 706285 - Add webp image format support
Add webp image format support
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal enhancement
: 1.2.0
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-08-19 08:33 UTC by sreerenj
Modified: 2013-12-23 14:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add WebP image decoder plugin (20.64 KB, patch)
2013-08-24 08:11 UTC, sreerenj
committed Details | Review
webpdec: Add PTS using framerate based interpolation. (2.70 KB, patch)
2013-08-24 08:12 UTC, sreerenj
needs-work Details | Review

Description sreerenj 2013-08-19 08:33:41 UTC
I have some WIP stuffs on webpimage format support in my personal repository. Only added the decoder at the moment.
https://github.com/sreerenjb/gst-webp
Comment 1 Sebastian Dröge (slomo) 2013-08-19 09:24:47 UTC
Are you planning to submit patches against gst-plugins-bad?
Comment 2 sreerenj 2013-08-19 09:29:55 UTC
I was thinking to add encoder+muxer and then a patch against plugins-bad but too busy with other stuffs now :( . So if anyone interested then it is always welcome to add the encoder+muxer to this or I will do it later(once i get time).
Comment 3 Sebastian Dröge (slomo) 2013-08-19 09:50:33 UTC
Ok, so what's the point of this bug report then? :)
Comment 4 sreerenj 2013-08-19 09:54:23 UTC
"Just wanted to update that a gstreamer element for webp decoding is available and please don't duplicate the decoder work " Is that an enough explanation for creating a bug for this ? :)
Comment 5 Sebastian Dröge (slomo) 2013-08-19 11:14:06 UTC
Yeah, but without any concrete plans to merge it this is rather useless nonetheless :) Maybe try to provide a patch that merges that decoder element only into -bad and then we can get rid of this bug report, and later encoder and other things can be added.

What kind of muxer/demuxer is necessary here btw?
Comment 6 sreerenj 2013-08-19 11:19:29 UTC
(In reply to comment #5)
> Yeah, but without any concrete plans to merge it this is rather useless
> nonetheless :) Maybe try to provide a patch that merges that decoder element
> only into -bad and then we can get rid of this bug report, and later encoder
> and other things can be added.
> 
> What kind of muxer/demuxer is necessary here btw?

Yup. Make sense :) I will provide a patch to gst-plugins-bad/ext with only the decoder later this week. Is that okay?

WebP has an experimental api to add metas to webp image.
https://developers.google.com/speed/webp/docs/riff_container?csw=1
Comment 7 Sebastian Dröge (slomo) 2013-08-19 11:36:03 UTC
RIFF *shudder*

Is webp valid without the RIFF header? If possible I would put this all into the encoder and decoder instead, it doesn't seem worth additional elements.
Comment 8 sreerenj 2013-08-19 11:41:26 UTC
No. WebP should always start with a RIFF header :). Ya, it could be possible to put all stuffs into ecoder/decoder i guess. But for now i can provide only the decoder in my repository. Is that okay?
Comment 9 Sebastian Dröge (slomo) 2013-08-19 11:58:24 UTC
of course :)
Comment 10 sreerenj 2013-08-24 08:11:52 UTC
Created attachment 252984 [details] [review]
Add WebP image decoder plugin
Comment 11 sreerenj 2013-08-24 08:12:32 UTC
Created attachment 252985 [details] [review]
webpdec: Add PTS using framerate based interpolation.
Comment 12 Sebastian Dröge (slomo) 2013-08-26 08:17:45 UTC
Review of attachment 252985 [details] [review]:

::: ext/webp/gstwebpdec.c
@@ +467,3 @@
+  duration = gst_webp_dec_get_frame_duration (webpdec);
+  if (GST_CLOCK_TIME_IS_VALID (duration)) {
+    webpdec->pts += duration;

You accumulate rounding errors here, count the frames and calculate nframes / fps.
Comment 13 Sebastian Dröge (slomo) 2013-08-26 08:24:14 UTC
Comment on attachment 252984 [details] [review]
Add WebP image decoder plugin

commit f7db01b0e17b3831796c7d70f49af5214d46b1c7
Author: Sebastian Dröge <slomo@circular-chaos.org>
Date:   Mon Aug 26 10:22:06 2013 +0200

    webpdec: Some cleanup and minor fixes

commit 499d515a9f7211d61155ff312023d00cf93c0c40
Author: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
Date:   Sat Aug 24 00:46:38 2013 +0300

    webp: Add WebP image decoder plugin
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706285
Comment 14 Tim-Philipp Müller 2013-08-26 10:18:54 UTC
Shouldn't this interpolation be done in the video decoder base class? (The lack of that is causing bugs with jpegdec etc. as well IIRC).
Comment 15 Sebastian Dröge (slomo) 2013-12-23 14:16:56 UTC
Yes, and there are a few bugs about that already. Let's close this for the WebP support and track the other bug there