include ../../config.mak
-TARGET = melt
+TARGET = mlt-process
OBJS = melt.o \
io.o
$(TARGET): $(OBJS)
$(CC) -o $@ $(OBJS) $(LDFLAGS)
+ ln -sf $@ melt
depend: $(SRCS)
$(CC) -MM $(CFLAGS) $^ 1>.depend
uninstall:
rm -f "$(DESTDIR)$(bindir)/$(TARGET)"
+ rm -f "$(DESTDIR)$(bindir)/melt"
ifneq ($(wildcard .depend),)
include .depend
}
else if ( !strcmp( argv[ i ], "-version" ) || !strcmp( argv[ i ], "--version" ) )
{
- fprintf( stderr, "MLT melt " VERSION "\n"
+ fprintf( stderr, "MLT mlt-process " VERSION "\n"
"Copyright (C) 2002-2009 Ushodaya Enterprises Limited\n"
"<http://www.mltframework.org/>\n"
"This is free software; see the source for copying conditions. There is NO\n"
else
{
fprintf( stderr,
-"Usage: melt [options] [producer [name=value]* ]+\n"
+"Usage: mlt-process [options] [producer [name=value]* ]+\n"
"Options:\n"
" -attach filter[:arg] [name=value]* Attach a filter to the output\n"
" -attach-cut filter[:arg] [name=value]* Attach a filter to a cut\n"
}
else if ( resample == NULL )
{
- *channels = codec_context->channels;
+ // TODO: uncomment and remove following line when full multi-channel support is ready
+ // *channels = codec_context->channels;
+ codec_context->request_channels = *channels;
+
*frequency = codec_context->sample_rate;
}