git.slaskete.net
/
einar-bin
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Flere retter og bacon
[einar-bin]
/
remux.sh
1
#!/bin/bash
2
for
mkvfile
in
*
.mkv
;
do
3
filename
=
${mkvfile%.mkv}
4
ffmpeg
-i
"
${mkvfile}
"
-c
:
a copy
-c
:
v copy
-map
0
:
0
-map
0
:
1
-map
0
:
2
-map
0
:
3
-map
0
:
4
-movflags
faststart
"
${filename}
.mp4"
5
if
[[
${?}
==
0
]];
then
6
rm
"
${mkvfile}
"
7
fi
8
done