Your program does not work if a filename has spaces or other chars in it.
The path to my first test file was: /home/matt/Rocko's Modern Life/Season 1/1x02 - Leap Frogs ~ Bedfellows.avi
I ran it from console and got this output:
Code:
matt@pandora ~ $ video2mp4
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --enable-gpl --enable-pp --enable-pthreads --enable-libogg --e
nable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug --enable-
mp3lame --enable-faad --enable-faac --enable-xvid --enable-x264 --enable-vorbis
libavutil version: 49.0.0
libavcodec version: 51.11.0
libavformat version: 50.5.0
built on Mar 18 2007 16:55:55, gcc: 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-
13ubuntu5)
/home/matt/Rocko's: I/O error occured
Usually that means that input file is truncated and/or corrupted.
Freeware Advanced Audio Coder
FAAC 1.24
Cannot encode several input files to one output file.
/usr/bin/video2mp4: line 7: 7718 Terminated zenity --progress --pe
rcentage 10 --text "Audio is being converted, please wait" --title "Convert Audi
o"
MEncoder 1.0rc1-4.1.2 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) D CPU 3.00GHz (Family: 15, Model: 6, Stepping: 2)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
File not found: '/home/matt/Rocko's'
Failed to open /home/matt/Rocko's.
Cannot open file/device.
Exiting...
/usr/bin/video2mp4: line 12: 7722 Terminated zenity --progress --p
ercentage 30 --text "Video is being converted, please wait" --title "Convert Vid
eo"
Error - 2 input names specified, please check usage
rm: cannot remove `/home/matt/Rocko\'s': No such file or directory
rm: cannot remove `Modern': No such file or directory
rm: cannot remove `Life/Season': No such file or directory
rm: cannot remove `1/1x02': No such file or directory
rm: cannot remove `-': No such file or directory
rm: cannot remove `Leap': No such file or directory
rm: cannot remove `Frogs': No such file or directory
rm: cannot remove `~': No such file or directory
rm: cannot remove `Bedfellows.avi.wav': No such file or directory
rm: cannot remove `/home/matt/Rocko\'s': No such file or directory
rm: cannot remove `Modern': No such file or directory
rm: cannot remove `Life/Season': No such file or directory
rm: cannot remove `1/1x02': No such file or directory
rm: cannot remove `-': No such file or directory
rm: cannot remove `Leap': No such file or directory
rm: cannot remove `Frogs': No such file or directory
rm: cannot remove `~': No such file or directory
rm: cannot remove `Bedfellows.avi.aac': No such file or directory
rm: cannot remove `/home/matt/Rocko\'s': No such file or directory
rm: cannot remove `Modern': No such file or directory
rm: cannot remove `Life/Season': No such file or directory
rm: cannot remove `1/1x02': No such file or directory
rm: cannot remove `-': No such file or directory
rm: cannot remove `Leap': No such file or directory
rm: cannot remove `Frogs': No such file or directory
rm: cannot remove `~': No such file or directory
rm: cannot remove `Bedfellows.avi.h264': No such file or directory
/usr/bin/video2mp4: line 17: 7725 Terminated zenity --progress --p ercentage 80 --text "Video is being muxed, please wait" --title "Mux Video"
But when I ran it copied over on the same file with the path /home/matt/Desktop/hi.avi it worked fine.
So I looked at your script and added a few quotes:
Code:
REMOVED, DOWNLOAD VERSION ABOVE
Thanks for your script!
Note: Using Ubuntu 6.10 Edgy AMD64 KDE