First Commit
This commit is contained in:
15
video_convert_scripts/mkv2mp4
Executable file
15
video_convert_scripts/mkv2mp4
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
audiofile=`mktemp`
|
||||
videofile=`mktemp`
|
||||
|
||||
cd "`pwd`"
|
||||
|
||||
avconv -i $1 -vn -acodec pcm_s16le -ac 2 $audiofile.wav &> /dev/null
|
||||
normalize-audio $audiofile.wav &> /dev/null
|
||||
faac -c 48000 -q 100 $audiofile.wav &>/dev/null
|
||||
mkvextract tracks $1 1:$videofile.h264 &> /dev/null
|
||||
MP4Box -fps 23.976 -add $videofile.h264 -add $audiofile.aac ${1%.*}.mp4 &> /dev/null
|
||||
|
||||
# cleanup
|
||||
rm $audiofile $videofile
|
||||
|
||||
Reference in New Issue
Block a user