[FFmpeg-devel] [PATCH 13/14] tools: add XLSTs script to generate matroska semantic files

Steve Lhomme robux4 at ycbcr.xyz
Sun Mar 22 14:09:27 EET 2020



> On 22 Mar 2020, at 11:34, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
> 
> Am So., 22. März 2020 um 10:02 Uhr schrieb Steve Lhomme <robUx4 at ycbcr.xyz>:
>> 
>> From: Steve Lhomme <robux4 at ycbcr.xyz>
>> 
>> Usage:
>> xsltproc -o matroska_ids.h schema_2_lavf_h.xsl ebml_matroska.xml
>> xsltproc -o matroskasem.c schema_2_lavf_sem_c.xsl ebml_matroska.xml
>> 
>> The ebml_matroska.xml file comes from
>> https://github.com/cellar-wg/matroska-specification/blob/master/ebml_matroska.xml
>> With an extra TagDefault_Bug element to parse an old invalid tag ID.
> 
>> tools/ebml_matroska.xml       | 1344 +++++++++++++++++++++++++++++++++
> 
> I would have expected that this file is not part of the FFmpeg source code.

I'm ok with that, although the original file is modified to add a bogus element still supported by lavf. If at some point the files are generated (before building or making a source package) the file should be down and patched to generate the files.

It seems FFmpeg doesn't have generated source files yet so I'm not sure what is the best/recommended way.

> 
>> tools/schema_2_lavf_h.xsl     |  741 ++++++++++++++++++
>> tools/schema_2_lavf_sem_c.xsl | 1163 ++++++++++++++++++++++++++++
>> 3 files changed, 3248 insertions(+)
>> create mode 100644 tools/ebml_matroska.xml
>> create mode 100644 tools/schema_2_lavf_h.xsl
>> create mode 100644 tools/schema_2_lavf_sem_c.xsl
> 
> Carl Eugen
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".



More information about the ffmpeg-devel mailing list