direct ffmpeg output to /tmp

This commit is contained in:
Justin Moore 2015-03-13 06:39:03 -05:00
parent 1838a0d5e8
commit 95da925cf0
2 changed files with 5 additions and 5 deletions

View File

@ -12,9 +12,9 @@ SET_GUI_BIN="zenity"
#MUSICDIR must have trailing forward slash
MUSICDIR="/home/$USER/Music/" #your choice
#You shouldn't need to change this filename but just in case
#You shouldn't need to change these filename but just in case
VIDEOFILE=/tmp/youtube-dl-$RANDOM-$RANDOM.flv
CONVERTED=/tmp
#GUI SETTINGS

View File

@ -26,7 +26,7 @@ if [ ! -f $VIDEOFILE ];then
exit 0;
elif [ -f $VIDEOFILE ];then
${SET_CONV_TOOL} -i $VIDEOFILE -acodec libmp3lame -ac 2 -ab 128k -vn -y "$2" | ${SET_GUI_BIN} --progress --pulsate --title="Converting..." --text="Converting video to mp3.." --auto-close
${SET_CONV_TOOL} -i $VIDEOFILE -acodec libmp3lame -ac 2 -ab 128k -vn -y "${CONVERTED}/$2" | ${SET_GUI_BIN} --progress --pulsate --title="Converting..." --text="Converting video to mp3.." --auto-close
rm ${VIDEOFILE}
else
@ -96,10 +96,10 @@ open()
move()
{
if [ -d ${MUSICDIR} ];then
mv -v "${AUDIOFILENAME}.mp3" ${MUSICDIR}
mv -v "${CONVERTED}/${AUDIOFILENAME}.mp3" ${MUSICDIR}
elif [ ! -d ${MUSICDIR} ];then
mkdir ${MUSICDIR}
mv -v "${AUDIOFILENAME}.mp3" ${MUSICDIR}
mv -v "${CONVERTED}/${AUDIOFILENAME}.mp3" ${MUSICDIR}
fi