/*****************************************************************************
 *
 *  ffmpeg.h -- FFmpeg interface.
 *
 *  Copyright (C) 2010 Starbuck <starbuck@labdv.com>
 *  All rights reserved.
 *
 *  This file is part of the JobManager module of the DVDx 4 application.
 *
 *  GNU Lesser General Public License Usage
 *  This file may be used under the terms of the GNU Lesser General
 *  Public License version 2.1 as published by the Free Software
 *  Foundation and appearing in the file LICENSE.LGPL included in the
 *  packaging of this file.  Please review the following information to
 *  ensure the GNU Lesser General Public License version 2.1 requirements
 *  will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
 *
 *  GNU General Public License Usage
 *  Alternatively, this file may be used under the terms of the GNU
 *  General Public License version 3.0 as published by the Free Software
 *  Foundation and appearing in the file LICENSE.GPL included in the
 *  packaging of this file.  Please review the following information to
 *  ensure the GNU General Public License version 3.0 requirements will be
 *  met: http://www.gnu.org/copyleft/gpl.html.
 *
 *****************************************************************************/

#ifndef FFMPEG_H
#define FFMPEG_H

#include "transcoder.h"
#include <QObject>

class FFmpeg : public Transcoder
{
	Q_OBJECT

public:
	FFmpeg();
	//~FFmpeg();

	bool getCommandSplit(QString *cmd, QStringList *args, QString *err,
			const QString &inputFile, const QString &outputFile, const QString &position, qint64 size=0);

	void interfaceReset();
	bool interfaceStart(const QString &path="", const QString &libPath="");  // IProcessor interface

signals:
	void interfaceFailed();  // IProcessor interface
	void interfaceReady();  // IProcessor interface

protected:
	void parseEncoderCodecs(QString *cmdOutput);
	void parseEncoderFormats(QString *cmdOutput);
	void parseInterfaceVersion(QString *cmdOutput);

protected:
};

#endif
