decode video files (ffmpeg)
This commit is contained in:
parent
311617cefb
commit
a0a0fdd37a
@ -1,6 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
decodeFile() {
|
decodeFile() {
|
||||||
case "$mimetype" in
|
case "$mimetype" in
|
||||||
|
'video/'*)
|
||||||
|
extractAudio
|
||||||
|
sox_needed=1
|
||||||
|
;;
|
||||||
'audio/mpeg')
|
'audio/mpeg')
|
||||||
if [[ ${destinationformat[$destination]} = mp3 ]] \
|
if [[ ${destinationformat[$destination]} = mp3 ]] \
|
||||||
&& checkCopy
|
&& checkCopy
|
||||||
|
|||||||
6
lib/video/extractaudio
Normal file
6
lib/video/extractaudio
Normal 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")
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user