#!/bin/bash # # Singe 2 # Copyright (C) 2006-2020 Scott Duensing # # 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 2 # 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, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # G_L="-------------------------------------------------------------------------------" for V in *.m2v; do F="${V%.*}" echo ${G_L} echo Working on ${F}... echo ${G_L} if [[ -f ${F}.mkv ]]; then rm ${F}.mkv fi ffmpeg -i ${F}.m2v -i ${F}.ogg -c:v libx264 -c:a copy -strict experimental ${F}.mkv done