#!/usr/bin/env python2
#
# Quick and dirty ffmpeg command crafter
#
# Outputs the ffmpeg command to encode your raw MPEG2 Video file with h264 into
# a matroska container. You can optionally select start/end time and a specific
# audio tracks (e.g ac3).
#
# Copyright (c) 2014 by ManiacTwister
#
# 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 .
#
import sys, getopt, time, os
try:
from ffprobe import FFProbe
except ImportError:
raise ImportError('Please install the python ffprobe package. E.g with: sudo pip2 install ffprobe')
def printHelp(argv):
print argv[0] + ' -i -o [-s -e -ac