decode video files (ffmpeg)

This commit is contained in:
Vincent Riquer 2013-04-29 23:35:33 +02:00
parent 311617cefb
commit a0a0fdd37a
2 changed files with 10 additions and 0 deletions

View File

@ -1,6 +1,10 @@
#!/bin/bash
decodeFile() {
case "$mimetype" in
'video/'*)
extractAudio
sox_needed=1
;;
'audio/mpeg')
if [[ ${destinationformat[$destination]} = mp3 ]] \
&& checkCopy

6
lib/video/extractaudio Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
extractAudio() {
tmpfile="${fileid}ffmpeg"
commandline=(${ionice}ffmpeg -v 0 -vn -y)
commandline+=(-i "$sourcepath/$filename" "$tempdir/$tmpfile.wav")
}