6

What's a good C++ library for parsing AMF3?

Lenar
  • 298
  • 3
  • 8

2 Answers2

2

Based on some simple research, libamfx doesn't support AMF3 and amf3cplusplus isn't a complete implementation of the specs, although it may work for your needs. There don't appear to be any pure-C libraries, so the next place to look would be C language extensions.

There is a fully functional AMF implementation in C for PHP (AMFEXT), a C implementation for Python (PyAMF), one for Objective-C (Cocoa-AMF), and one for Ruby (RocketAMF). However, none of these are going to be drop-in solutions.

Your best bet would be to try out amf3cplusplus and see if it does what you want. If it doesn't, RocketAMF is probably going to be the easiest to use as a starting point, in terms of readability and replacing the language-specific code with C++ data structures.

warhammerkid
  • 955
  • 5
  • 6
  • I tried to use amf3cplusplus but it can't parse amf-files I have. I guess there are elements this parser doesn't support. I'll try RocketAMF – Lenar Sep 09 '11 at 15:06
0

I understood that libamfx actualy good. Did you try it ?