Commit 256f575f authored by Steve Lhomme's avatar Steve Lhomme

mkparts: new tool to split concatenated segments (and later create DASH...

mkparts: new tool to split concatenated segments (and later create DASH manifests from different segments)

git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/foundation_src@800 a6f86f6d-0131-4f8e-9e7b-e335508773d5
parent 6f2bee7d
2011-09-xx
version 0.1.0:
- initial version that can split concatenated Matroska segments
mkparts is a command line tool to extract and generate data from multiple "related"
Matroska segments
** LICENSE **
The program is licensed with the BSD license. So you can modify it in any way
you want. However we ask that you generously give back your enhancements
to the community if you think it can help. Contact: slhomme@matroska.org
mkparts depends on libebml2 (BSD) and libmatroska2 (BSD) that themselves
rely on Core-C (BSD) which adds an object API on top of the C language.
** BUILDING **
To build mkparts you have to build coremake first:
You can either run ./configure on Linux/OS X or
- Just compile <root>/corec/tools/coremake/coremake.c with your C compiler.
- run coremake from the root of the source :
* "coremake.exe vs9_win32" to generate the project files for Visual Studio 2008
* "coremake gcc_linux" to generate the project files for GNU make building with gcc
* "coremake gcc_linux_x64" for GNU make building with gcc on Linux 64 bits
* "coremake xcode_uni" to generate the project files for XCode for a universal OS X binary
* look in the coremake folder for all the platforms supported
The Makefile/mkparts.sln will end up in the mkparts folder. You just have to
build from there and it will create mkparts(.exe) under <root>/release/
To delete all the project files run "coremake(.exe) clean" from the root of the sources.
#!/bin/sh
%%BEGIN
SCRIPT
%%END
make -s -C corec/tools/coremake
mv -f corec/tools/coremake/coremake .
coremake_param=`corec/tools/coremake/system_output.sh`
echo "Running ./coremake" $coremake_param
./coremake $coremake_param
echo "Now you can run make -C %(PROJECT_NAME) or gmake -C %(PROJECT_NAME)"
\ No newline at end of file
#define COREMAKE_STATIC
#define COREMAKE_UNICODE
//#define CONFIG_EBML_WRITING
#undef CONFIG_EBML_UNICODE
#define CONFIG_EBML_UNICODE
#define HAVE_EBML2
#define CONFIG_MATROSKA2
#define USE_PRECOMPILED_HEADERS
#define CONFIG_DEBUGCHECKS
#define CONFIG_STDIO
#define CONFIG_FILEPOS_64
#define COREMAKE_CONFIG_HELPER
//#define CONFIG_DEBUG_LEAKS
This diff is collapsed.
CON mkparts
{
PROJECT_NAME "mkparts"
PROJECT_VERSION 0.1.0
PROJECT_VENDOR "Matroska"
USE matroska2
SOURCE mkparts.c
COMPILE src.br
COMPILE configure
COMPILE pkg.sh
}
WORKSPACE mkparts
{
USE mkparts
}
#!/bin/sh
%%BEGIN
SCRIPT
%%END
rm -rf %(PROJECT_NAME)-%(PROJECT_VERSION)
branch src.br
rm -rf %(PROJECT_NAME)-%(PROJECT_VERSION).tar.bz2
tar cvfj %(PROJECT_NAME)-%(PROJECT_VERSION).tar.bz2 %(PROJECT_NAME)-%(PROJECT_VERSION)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment