Page 1 of 6 123 ... LastLast
Results 1 to 10 of 89

Thread: Video Convertor Nautilus Script

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Beans
    143
    Distro
    Ubuntu

    Video Convertor Nautilus Script

    This is a Nautilus Script that I have been working on since Hoary and I thought that I would post something in the current release How-To forum.
    (The current OS(Gutsy) thread is here: http://ubuntuforums.org/showthread.php?t=62625)

    This script will take multiple video files of the same type (right now: MPG, AVI, MOV, ASF, VOB, WMV), ask you a few questions and covert them into either NTSC/PAL - dvd, svcd or vcd compliant MPEG files by using ffmpeg and mencoder. They can then be used with DVD styler, varsha, etc. to create a dvd video disk.

    Installation:
    -Requirements: zenity (Comes with gnome), ffmpeg (apt-get ffmpeg), mencoder mplayer, transcode, mkvtoolnix
    Code:
    sudo apt-get install ffmpeg mencoder mplayer transcode mkvtoolnix
    -Download the script and place it in the Nautilus scripts folder (/home/YourUserName/.gnome2/nautilus-scripts)
    -Make sure the file is executable
    Code:
    chmod 740 ~/.gnome2/nautilus-scripts/video-convert
    -Select some video files. (This works well on the video files my digital camera makes)
    -Right-Click -> Choose Scripts -> video-convert

    An enhanced ffmpeg with xvid and aac support can be downloaded here...
    http://skulboxx.com/Ubuntu/sbx/
    Attached Files Attached Files
    Last edited by crmanski; January 11th, 2008 at 12:28 AM.

  2. #2
    Join Date
    Sep 2005
    Location
    Trinidad, Caribbean
    Beans
    591
    Distro
    Ubuntu 6.06

    Re: Video Convertor Nautilus Script

    Absolutely wonderful! Have been looking for something like this for a very long time...

    Suggestion: Allow users to create and save custom settings...

    Again great work!

  3. #3
    Join Date
    Apr 2005
    Beans
    143
    Distro
    Ubuntu

    Re: Video Convertor Nautilus Script

    That is an interesting suggestion. What types of settings would you want to create/save? I usually just edit the script and add the settings that I need, especially for the DVD encoding settings and recently as I was learning a bit about mencoder.

  4. #4
    Join Date
    Aug 2005
    Beans
    53

    Re: Video Convertor Nautilus Script

    This is superb - worked first time! Could a progress bar possibly be implemented too? Great work!

  5. #5
    Join Date
    Apr 2005
    Beans
    143
    Distro
    Ubuntu

    Re: Video Convertor Nautilus Script

    Quote Originally Posted by homersbrain
    This is superb - worked first time! Could a progress bar possibly be implemented too? Great work!
    This is still something that isn't working correctly. In the old thread someone had a bit of perl that worked for the first video but not the rest. I just don't have the brains to figure it out
    If someone else more skilled were to figure it out that would be great.

  6. #6
    Join Date
    Oct 2005
    Location
    29 Palms, CA
    Beans
    18
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Video Convertor Nautilus Script

    What about adding support to convert .WMV files as well?

  7. #7
    Join Date
    Sep 2008
    Location
    Sweden
    Beans
    1
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Exclamation Re: Video Convertor Nautilus Script

    Quote Originally Posted by Kung Fu Hamster View Post
    What about adding support to convert .WMV files as well?
    Is it possible to convert .ogg files captured with gtk-recordMyDesktop to AVI with this Script ?
    We are using
    Code:
    #!/bin/bash
    #
    
    mencoder -idx /home/USERNAME/out.ogg -ovc lavc -oac mp3lame -o /home/USERNAME/out.avi
    It makes low quality AVI but we want high quality AVI
    Regards Svendus
    Last edited by Svendus; September 27th, 2008 at 04:28 PM.

  8. #8
    Join Date
    Jan 2007
    Beans
    1

    Smile Re: Video Convertor Nautilus Script

    Excellent.

    If it had a cancel button it would be even better, and a progress bar...

    Just a suggestion.

    Thanks for the script.

  9. #9
    Join Date
    Aug 2005
    Location
    European Union
    Beans
    174
    Distro
    Lubuntu 12.04 Precise Pangolin

    Re: Video Convertor Nautilus Script

    This is the script I use to convert (from terminal) all *.mpg files to .avi (xvid)
    Code:
    #!/bin/bash
    
    for f in $(ls ./ |grep  .mpg |grep -v .avi ) ; do
    xv=`echo "$f" | sed 's/\.\w*$/.avi/'` ;
    ffmpeg -i $f -f avi -vcodec xvid -b 800 -g 300 -bf 2 -acodec mp2 -ab 128 $xv ;
    echo $f converted to $xv ;
    rm $f ;
    done
    This works for me where the script on this thread doesn't. (after selecting convert to xvid it opens the progress bar for a fraction of a second and exits)

  10. #10
    Join Date
    Apr 2005
    Beans
    143
    Distro
    Ubuntu

    Re: Video Convertor Nautilus Script

    Quote Originally Posted by art2003
    This is the script I use to convert (from terminal) all *.mpg files to .avi (xvid)
    Code:
    ffmpeg -i $f -f avi -vcodec xvid -b 800 -g 300 -bf 2 -acodec mp2 -ab 128 $xv ;
    This works for me where the script on this thread doesn't. (after selecting convert to xvid it opens the progress bar for a fraction of a second and exits)
    That ffmpeg line will not work with the standard ffmpeg from the ubuntu repositories. ffmpeg was only compiled with these options on my dapper install...
    --extra-cflags=-fomit-frame-pointer -DRUNTIME_CPUDETECT --build i486-linux-gnu --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable -libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgs m --disable-debug --prefix=/usr
    Did you possibly recompile it as describe in the iPod Video convertor How-To?
    This Script has 4 options: DVD, MPEG4, SVCD and VCD. If you choose MPEG4 and you do not have mencoder installed it will fail.

    If that is not the case then please try from a terminal...
    Code:
    ~/.gnome2/nautilus-scripts/video-convert /path/to/one/of/your/movies.mpg
    ...and post the errors.

Page 1 of 6 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •