my $mkvmerge=`which mkvmerge`; chomp($mkvmerge);
my $ffmpeg=`which ffmpeg`; chomp($ffmpeg);
my $tmpfile = `tempfile`; chomp($tmpfile);
my $chapter_file = $tmpfile;
my $input_file_options = "-S";
my $output_file_options = "--chapters $chapter_file";
my $mkvmerge=`which mkvmerge`; chomp($mkvmerge);
my $ffmpeg=`which ffmpeg`; chomp($ffmpeg);
my $tmpfile = `tempfile`; chomp($tmpfile);
my $chapter_file = $tmpfile;
my $input_file_options = "-S";
my $output_file_options = "--chapters $chapter_file";