Bug 357614 - Add the ability to export/render as gif
Summary: Add the ability to export/render as gif
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Rendering & Export (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-06 11:23 UTC by xdmx
Modified: 2016-10-20 13:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Low gif quality (8.27 KB, image/png)
2016-10-20 13:50 UTC, xdmx
Details

Note You need to log in before you can comment on or make changes to this bug.
Description xdmx 2016-01-06 11:23:43 UTC
GIF images are very useful when you have to show few steps in a tutorial on a web page (few seconds).

It would be very useful if kdenlive allows to render the video as an animated gif

Reproducible: Always
Comment 1 Jean-Baptiste Mardelle 2016-06-06 21:09:07 UTC
Git commit 585c38b49c17ac9989cc27da833d9ca0c85033c1 by Jean-Baptiste Mardelle.
Committed on 06/06/2016 at 21:08.
Pushed by mardelle into branch 'master'.

Add GIF to default image sequence render profiles

M  +26   -9    src/dialogs/renderwidget.cpp
M  +2    -0    src/dialogs/renderwidget.h

http://commits.kde.org/kdenlive/585c38b49c17ac9989cc27da833d9ca0c85033c1
Comment 2 Jean-Baptiste Mardelle 2016-06-06 21:09:31 UTC
If you are using a not too old FFmpeg version, you can easily render to gif by adding the following render profile:

file extension: gif
parameters: progressive=1 f=gif vcodec=gif an=1 g=1 bf=0

I just added it to git master. However in my tests, webm gave much better/smaller results and works quite well
Comment 3 Wegwerf 2016-06-07 07:58:32 UTC
Often, you may not upload webm content, but uploading animated gifs is allowed. Oh well.
Comment 4 Vincent PINON 2016-06-07 21:45:02 UTC
Git commit 4671d97590ee607c1da395542957068497a94993 by Vincent Pinon, on behalf of Jean-Baptiste Mardelle.
Committed on 07/06/2016 at 21:35.
Pushed by vpinon into branch 'Applications/16.04'.

Add GIF to default image sequence render profiles

M  +26   -9    src/dialogs/renderwidget.cpp
M  +2    -0    src/dialogs/renderwidget.h

http://commits.kde.org/kdenlive/4671d97590ee607c1da395542957068497a94993
Comment 5 Wegwerf 2016-06-13 20:19:59 UTC
xdmx, can you please check and confirm that this bug has been fixed? If yes, I would like to ask you to be so kind as close this bug report as RESOLVED FIXED. Thank you very much!
Comment 6 xdmx 2016-06-14 23:14:28 UTC
Just tried and it seems working, thank you!
Comment 7 xdmx 2016-10-20 13:50:27 UTC
Created attachment 101661 [details]
Low gif quality

Just following up on this, today I've tried to render a gif from a few seconds screencast and unfortunately the gif quality was pretty bad :(

I then tried with this (https://superuser.com/questions/556029/how-do-i-convert-a-video-to-gif-using-ffmpeg-with-reasonable-quality#556031) approach and the result was much better.

I don't know if it's possible to integrate it in a render profile, since it has two steps

Attached the difference to compare (left: kdenlive, right: ffmpeg)