projects
/
videoscripts
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
dc85d9b65135a7f71260167fe6f8913c1553ff2f
[videoscripts/.git]
/
remove_bad_header
1
#!/bin/bash
2
3
echo "-> Removing bad header on $*"
4
5
ffmpeg -ss 2 -i $* -map 0 -acodec copy -vcodec copy new.$*
6
7
if [[ $? == 0 ]]; then
8
mv new.$* $*
9
else
10
echo "-E- Unable to remove the bad header"
11
rm new.$*
12
fi
13