/***************************************************************************
                          oplug_vcdff.h  -  description
                             -------------------
    begin                : Sun Nov 10 2002
    copyright            : (C) 2002 by mean
    email                : fixounet@free.fr
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
#ifndef ADM_MUXER_ffPS
#define ADM_MUXER_ffPS

#include "ADM_muxer.h"
#include "ADM_coreMuxerFfmpeg.h"
#include "ps_muxer.h"
typedef enum
{
    MUXER_VCD=0,
    MUXER_SVCD=1,
    MUXER_DVD=2,
    MUXER_FREE=3
}psMuxingType;



extern ps_muxer psMuxerConfig;

/**
    \fn class muxerffPS
*/
class muxerffPS : public muxerFFmpeg
{
protected:
        
        bool muxerRescaleVideoTimeDts(uint64_t *time,uint64_t computedDts);
        bool verifyCompatibility(bool nonCompliantOk, uint32_t muxingType,
                                    ADM_videoStream *s,uint32_t nbAudioTrack,ADM_audioStream **a, 
                                    const char **er);
        const char *getContainerName(void) {return "Mpeg PS";};
public:
                muxerffPS();
        virtual ~muxerffPS();
        virtual bool open(const char *file, ADM_videoStream *s,uint32_t nbAudioTrack,ADM_audioStream **a);
        virtual bool save(void) ;
        virtual bool close(void) ;

};

#endif
