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 331420 - No PDF/PostScript/SVG encoder in GStreamer yet.
No PDF/PostScript/SVG encoder in GStreamer yet.
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other All
: Normal enhancement
: 0.10.16
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-02-16 14:57 UTC by Lutz Mueller
Modified: 2009-07-17 11:44 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
gstcairorender.c (13.21 KB, text/plain)
2006-02-16 14:58 UTC, Lutz Mueller
  Details
gstcairorender.h (1.54 KB, text/plain)
2006-02-16 14:58 UTC, Lutz Mueller
  Details
Patch to hook up gstcairorender.[c,h] (1.34 KB, patch)
2006-02-16 14:59 UTC, Lutz Mueller
none Details | Review
Patch to hook up gstcairorender.[c,h] (1.39 KB, patch)
2006-06-16 21:54 UTC, Lutz Mueller
none Details | Review
gstcairorender.h (1.35 KB, text/plain)
2006-06-16 21:54 UTC, Lutz Mueller
  Details
gstcairorender.c (11.92 KB, text/plain)
2006-06-16 21:56 UTC, Lutz Mueller
  Details
gstcairorender.c (12.22 KB, text/plain)
2006-06-26 06:12 UTC, Lutz Mueller
  Details
Patch to hook up gstcairorender.[c,h] (1.42 KB, patch)
2009-06-06 14:48 UTC, Lutz Mueller
committed Details | Review
gstcairorender.c (11.86 KB, text/plain)
2009-06-06 14:48 UTC, Lutz Mueller
  Details
gstcairorender.h (1.37 KB, text/plain)
2009-06-06 14:49 UTC, Lutz Mueller
  Details

Description Lutz Mueller 2006-02-16 14:57:38 UTC
CAIRO can render in PDF/PostScript/SVG/PNG format. Why not use that feature?
We're linking against cairo anyways (gst-plugins-good/ext/cairo). Patch to follow.
Comment 1 Lutz Mueller 2006-02-16 14:58:18 UTC
Created attachment 59495 [details]
gstcairorender.c
Comment 2 Lutz Mueller 2006-02-16 14:58:52 UTC
Created attachment 59496 [details]
gstcairorender.h
Comment 3 Lutz Mueller 2006-02-16 14:59:27 UTC
Created attachment 59497 [details] [review]
Patch to hook up gstcairorender.[c,h]
Comment 4 Lutz Mueller 2006-02-16 15:01:56 UTC
To test pdf/postscript/png/svg generation, do something like

gst-launch filesrc location=test.png ! image/png ! cairorender format=application/x-pdf ! filesink location=test.pdf

I don't understand why the filesrc doesn't do typefind and set the caps itself. But that's another problem.

The format property needs to disappear. However, specifying the format between
the cairorender and the filesink doesn't work:

cairorender ! application/x-pdf ! filesrc

I could not figure out how to access the desired caps from within the gstcairorender. Please let me know if you know how to implement above solution.
Comment 5 Edward Hervey 2006-02-16 15:28:24 UTC
The reason why filesrc doesn't do the typefinding... is because it's not meant to :) Use the typefind element just after it.
Comment 6 Lutz Mueller 2006-02-16 15:57:35 UTC
Then I don't understand why I was requested to add typefind code to the bz2dec plugin which got recently added to gst-plugins-bad/ext/bz2?
Comment 7 Lutz Mueller 2006-06-16 21:54:01 UTC
Created attachment 67508 [details] [review]
Patch to hook up gstcairorender.[c,h]
Comment 8 Lutz Mueller 2006-06-16 21:54:46 UTC
Created attachment 67509 [details]
gstcairorender.h
Comment 9 Lutz Mueller 2006-06-16 21:56:51 UTC
Created attachment 67510 [details]
gstcairorender.c

I got it (loop/chain/typefind/negotiation...). I've updated new patches and files.
Comment 10 Lutz Mueller 2006-06-26 06:12:32 UTC
Created attachment 68010 [details]
gstcairorender.c

Updated patch. Can be tested with this pipeline: videotestsrc ! cairorender ! pngdec ! ffmpegcolorspace ! xvimagesink (i.e. cairorender acting like pngenc).
Comment 11 Lutz Mueller 2009-06-06 14:48:17 UTC
Created attachment 136054 [details] [review]
Patch to hook up gstcairorender.[c,h]
Comment 12 Lutz Mueller 2009-06-06 14:48:47 UTC
Created attachment 136055 [details]
gstcairorender.c
Comment 13 Lutz Mueller 2009-06-06 14:49:07 UTC
Created attachment 136056 [details]
gstcairorender.h
Comment 14 Sebastian Dröge (slomo) 2009-07-17 06:40:07 UTC
I've committed your patch and now I'm fixing some bugs, do some cleanup and fix the FIXMEs you had :) Should be ready for 0.10.16.
Comment 15 Sebastian Dröge (slomo) 2009-07-17 11:44:37 UTC
This is committed now, please test my changes :)