projects
/
videoscripts
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added some code to correctly chown/chmod the playlists when they are created
[videoscripts/.git]
/
mkv2mp4
diff --git
a/mkv2mp4
b/mkv2mp4
index afbd0a8adb25b95a4f9c410395667421900e5f8d..2d9d873560b4d83701e6d14ae7cc9351e7c0ea26 100755
(executable)
--- a/
mkv2mp4
+++ b/
mkv2mp4
@@
-1,8
+1,14
@@
#!/bin/bash
INPUT=$1
#!/bin/bash
INPUT=$1
-FILENAME=${INPUT%%.*}
-OUTPUT="$FILENAME.mp4"
+OUTPUT_DIR=$2
+
+if [ -z "$OUTPUT_DIR" ]; then
+ OUTPUT_DIR="."
+fi
+
+FILENAME=`basename ${INPUT%%.*}`
+OUTPUT="$OUTPUT_DIR/$FILENAME.mp4"
echo "-> Converting $INPUT to $OUTPUT file"
echo "-> Converting $INPUT to $OUTPUT file"
@@
-11,6
+17,9
@@
if [[ -e "$OUTPUT" ]]; then
exit 1
fi
exit 1
fi
+# 720p
+# HandBrakeCLI -d -b 3000 -q 0.8 -w 1280 -i /naspool/videos/HomeVideos/2011/2011-12-01.000.mkv -o 2011-12-01.mp4
+
ffmpeg -i $INPUT \
-b:v 3000k \
-vcodec libx264 \
ffmpeg -i $INPUT \
-b:v 3000k \
-vcodec libx264 \