package main
import (
"flag"
"fmt"
"os"
"strings"
"time"
"github.com/livepeer/lpms/ffmpeg"
)
func validRenditions() []string {
valids := make([]string, len(ffmpeg.VideoProfileLookup))
for p := range ffmpeg.VideoProfileLookup {
valids = append(valids, p)
}
return valids
}
func main() {
from := flag.Duration("from", 0, "Skip all frames before that timestamp, from start of the file")
to := flag.Duration("to", 0, "Skip all frames after that timestamp, from start of the file")
flag.Parse()
var err error
args := append([]string{os.Args[0]}, flag.Args()...)
if len(args) <= 3 {
panic("Usage: [-from dur] [-to dur]