#!/usr/bin/env python2.7

"""settings.py: Project settings, preferences, and presets"""

__copyright__ = "Copyright 2017, Josh Wheeler"
__license__ = "GPL-3.0"
__status__ = "Development"

#    radcast: radical podcast automation
#    Copyright (C) 2017 Josh Wheeler
#
#    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 3 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.

presets = {
    '720p x264': {
        'vcodec': 'libx264',
        'b:v': '7500k',
        'preset': 'slow',
        'acodec': 'aac',
        'b:a': '320k',
        'ffmpeg_params': ['movflags=faststart'],
    },

    '1080p x264': {
        'vcodec': 'libx264',
        'b:v': '15000k',
        'preset': 'slow',
        'acodec': 'aac',
        'b:a': '320k',
        'ffmpeg_params': ['movflags=faststart'],
    },

    '720p webm': {
        'vcodec': 'libvpx',
        'b:v': '2.5M',
        'preset': 'slow',
        'acodec': 'libvorbis',
        'b:a': '320k',
        'ffmpeg_params': ['crf=10'],
    },

    '1080p webm': {
        'vcodec': 'libvpx',
        'b:v': '7M',
        'preset': 'slow',
        'acodec': 'libvorbis',
        'b:a': '320k',
        'ffmpeg_params': ['crf=10'],
    },
}

cfg = {
    "mlt_profile": "atsc_720p_2997",
    "preset": "720p x264",
    "fps": 29.97,
    "transition_length": .25,
    "padding": True,
}
