Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#62433 - [ffmpeg] Build against librsvg to get SVG support

Attached to Project: Arch Linux
Opened by Link Mauve (linkmauve) - Monday, 22 April 2019, 14:41 GMT
Last edited by David Runge (dvzrv) - Friday, 17 January 2020, 13:23 GMT
Task Type Feature Request
Category Packages: Extra
Status Assigned
Assigned To Maxime Gauduin (Alucryd)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


ffmpeg can support SVG images through librsvg, it would be useful to enable support for that.

Additional info:
* package version(s)
ffmpeg 1:4.1.3-1
librsvg 2:2.44.13-1

* config and/or log files etc.
Add --enable-librsvg to the ./configure call.

* link to upstream bug report, if any

Steps to reproduce:
% ffplay something.svg
No decoder could be found for codec svg
This task depends upon

Comment by Maxime Gauduin (Alucryd) - Friday, 17 January 2020, 14:12 GMT
Useful for what exactly? ffmpeg is primarily designed to handle video and audio, there are dedicated image viewers for SVG, I don't think we need that kind of bloat.
Comment by Link Mauve (linkmauve) - Saturday, 18 January 2020, 11:08 GMT
Hi, useful for any operation dealing with SVG files, be it embedding them in a video, viewing a sequence of SVGs, or even just a single one.

You already build ffmpeg with PNG, JPEG, PPM, BMP, and many more still image formats which are equally useful to users.

And besides, even if viewers exist for still images, some of them use ffmpeg as their underlying decoding library.
Comment by Martin Sandsmark (sandsmark) - Sunday, 19 January 2020, 13:34 GMT
FWIW; support for raster images (like png, jpg, bmp etc.) makes a lot of sense because "people" often either generates screenshots or similar from ffmpeg or combine frames from other programs to videos.

But I've never seen a sequence of SVG files or video with SVGs embedded, and my first thought was that it would be way to slow to do in realtime. Do you have some example files?
Comment by DrZaius (DrZaius) - Tuesday, 10 March 2020, 17:47 GMT
PNG, JPEG, PPM, BMP encoding/decoding are supported natively by ffmpeg and don't need an external library unlike SVG. I see very few users needing to enable SVG support in ffmpeg, and I would rather not see pango and gdk-pixbuf2 brought in as yet more dependenies for ffmpeg for such a niche request. I recommend this feature request be closed and building ffmpeg yourself with ABS if you need --enable-librsvg.
Comment by Filipp Andjelo (scorp) - Thursday, 19 March 2020, 11:13 GMT
Hi, I'd like also to see this coming. I am playing around with olive video editor since couple of days and it is so unbelievably fast. Though still heavily in development, it is already better usable, then anything else out there. However it uses svg import through ffmpeg. I know,that olive is alpha and s.o., however I really think it will be in the main repository soon, since it is just too good to be ignored. Currently, however, SVG import fails with an error due to this issue.
Comment by Filipp Andjelo (scorp) - Thursday, 19 March 2020, 11:18 GMT
Oh, and regarding the question what this is good for, well SVG overlays (Logos, Arrows, Icons etc.) just look better, than raster images. Since video editing is a lot about scaling, this is quite a common use case, I guess.