#!/bin/bash # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3 (GPLv3) # as published by the Free Software Foundation. # # 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 . # Copyright 2009 Matt Grill # Website: www.mattgrill.com # Purpose: This script is used to convert JVC TOD videos to MPEG. # It will not overwrite your TOD file, but will produce a mpeg and rename the TOD file to name.tod.done. # Dependencies: ffmpeg # Usage: tod2mpeg # eg. tod2mpeg mod033.tod video="$1" newvideo="${video/%tod/mpg}" ffmpeg -i "$1" -acodec copy -vcodec copy "$newvideo" mv "$video" "$video.done"