[FFmpeg-soc] Preferred XML library for XSPF playlist parsing (or write one from scratch)?

Diego Biurrun diego at biurrun.de
Fri Jun 12 10:37:31 CEST 2009


On Fri, Jun 12, 2009 at 01:19:35AM -0700, Baptiste Coudurier wrote:
> On 6/12/2009 1:14 AM, Geza Kovacs wrote:
> > 
> > I'm starting work on an XSPF playlist parser, and since XSPF (as well as
> > SMIL and ASX) is an XML format, and FFmpeg doesn't seem to have its own
> > XML parser nor does it link against any existing ones, I'd like to know
> > whether there's any preferred existing XML parser I could use and link
> > against (Expat, libxml2?), or whether I should write my own rudimentary
> > parser from scratch to avoid external dependencies. If it's the latter,
> > should it be put at libavutil/xml.c or libavformat/xml.c?
> 
> If you are motivated, native parser is good to avoid dependencies.
> I think libavformat/xml.c is fine for now.
> 
> Though I think ffmpeg supporting the concatenation/playlist feature
> should really be working before working on this :)

I was just going to say the same thing.  Writing a full XML parser has
the potential to become an arbitrarily complex task.  Remember that most
SoC projects fail to achieve their goals.  You don't want to be one of
them, so focus on the core goals of your project.

Diego


More information about the FFmpeg-soc mailing list