Neue Version V963
git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_video2mp3@5933 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
commit
cf8882380f
29
usr/bin/video2mp3
Executable file
29
usr/bin/video2mp3
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/bash
|
||||
|
||||
export G_BROKEN_FILENAMES=true
|
||||
VIDEO=$1
|
||||
while true; do
|
||||
if [ ! "$VIDEO" ]; then
|
||||
VIDEO=`Xdialog --stdout --title "Please Select Video File to convert" --fselect . 60 250 `
|
||||
if [ ! "$VIDEO" ]; then
|
||||
echo "USAGE: $0 <VideoFile>"
|
||||
exit 10
|
||||
fi
|
||||
fi
|
||||
if [ -f "$VIDEO" ]; then
|
||||
WAVFILE=`echo $VIDEO|sed -e "s/\....$/\.wav/"`
|
||||
MP3FILE=`echo $VIDEO|sed -e "s/\....$/\.mp3/"`
|
||||
DIRNAME=`dirname "$VIDEO"`
|
||||
if [ "$DIRNAME" ]; then
|
||||
cd "$DIRNAME"
|
||||
fi
|
||||
ffmpeg -i "${VIDEO}" "${WAVFILE}"
|
||||
#mplayer -ao pcm:file="${WAVFILE}" -vc null -vo null -hardframedrop -cache 16384 -srate 44100 "${VIDEO}"
|
||||
lame --preset 160 "${WAVFILE}" "${MP3FILE}"
|
||||
rm "${WAVFILE}"
|
||||
normalize "${MP3FILE}"
|
||||
VIDEO=""
|
||||
else
|
||||
exit 10
|
||||
fi
|
||||
done
|
13
usr/share/applications/video2mp3.desktop
Normal file
13
usr/share/applications/video2mp3.desktop
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env xdg-open
|
||||
[Desktop Entry]
|
||||
Name=Video2mp3
|
||||
Name[en_US]=Video2mp3
|
||||
Name[de]=Video2mp3
|
||||
Comment=Convert Videodata to MP3 Music
|
||||
Comment[de]=Extrahiere Audio Daten aus Video Streams und speichere diese als MP3
|
||||
Exec=/usr/bin/video2mp3
|
||||
Type=Application
|
||||
StartupNotify=true
|
||||
Categories=Applications;Qt;AudioVideo;Video;
|
||||
Path=$HOME
|
||||
Icon=/usr/lib/jdk/lib/deploy/java-icon.ico
|
Loading…
Reference in New Issue
Block a user