-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com    Open-PC.com   
Artwork
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


-
- Content .- Fans (49) . 

Audio/Video/Image/Text/ISO Convert

   0.85  

Nautilus Script

marc41marc41
Tailored Software, Inc
-
Marc Brumlik
Tailored Software, Inc
United States of America, Chicago
Last visit 12 hours ago
10 Friends
0 Groups

Other contents
Send a message
Add as friend
More info
--
Audio/Video/Image/Text/ISO Convert
zoom


Audio/Video/Image/Text/ISO Convert
zoom


Audio/Video/Image/Text/ISO Convert
zoom


Downloads:  40736
Submitted:  Nov 4 2008
Updated:  Sep 1 2010
Score: 
score77%77%score
 77% good
bad   good

Description:

Right-click on a file, and this script will decide what conversions are appropriate, ask some questions about what you want, and execute the proper command and options to convert it into something else.

Multimedia: change formats, bitrate, framerate, size, aspect ratio, and more. Also strip audio.
Audio: change formats, bitrate, volume, and more.
Multimedia and Audio: your most-used sets of options can be stored for future use.
Images: change formats, size, jpg compression, rotate, equalize, and more.
Documents: change formats, text-to-speech, text-to-jpg, and more.
Convert multi-image files, like pdf or animated gif, into a series of frames,
pdf to gif creates animaged gif, animated gif to pdf creates multi-page pdf.
Convert various "CD Images" into standard .iso files.

  • Comments welcome, suggestions invited, votes appreciated.


  • There's a lot of description here, but you don't need any of it to make this work.
    Just download and extract. Then do one or more of these with the file "avconvert":
    (1) move (or copy or link) it to ~/.gnome2/nautilus-scripts
    (2) move (or copy or link) it to somewhere in $PATH (eg /usr/local/bin)
    ..(obviously don't move it twice :-)
    (3) do #2, then add it as a nautilus-action (set "paramater" to "%M", check "multiple files")
    (4) add it to Gnome panel/launch-bar (drag/drop or right-click panel Add/Custom-Application)

    ...Depending on 1, 2, 3, and 4 above (you can do any combination of these), you can now:
    (1) right-click on selected icon(s) and choose the script
    (2) from command line: avconvert filename (quote name(s) with spaces, multiple files OK)
    (3) right-click on selected icon(s) and choose "Avconvert"
    (4) click the icon to launch -or- drag-and-drop file(s) on the icon

    To repeat, you can do as many of these as you want. For example: move the file to ~/.gnome2/natuilus-scripts, then link that to /usr/local/bin, then add it as a nautilus-action, then add it to the gnome-panel.


    Much more than a quick shortcut to a common command, this shell script is nearly 2000 lines of code!

  • If you feel inclined not to vote "good", tell me why - I'm still actively developing this.
    If you like it and you're not registered, take the time to sign up and vote....
    After all, I took the time to write this and give it away! :-) :-)


  • The first run will create some files in ~/.config/avconvert. The files "avconvert", "avconvert.lang", and "avconvert.ffopts.custom" may be hand-edited. A default file will be recreated if any file is missing.

    When using Key-In-Options during audio or video conversion, your ffmpeg options can be saved into the menu for future use. When your Key-In options end in a comment (as in "# my conversion"), a line will be automatically added to the 'custom' section of the ffmpeg options menu.

    There's a progress indicator during conversions. In most cases, it estimates that the result file will grow to the size of the source file. This is not always the case, so it may appear stuck near 0% or quickly rise to 98% depending on your conversion. Be patient - behind the scenes, the progress window stays up as long as the result file is growing.

    AUDIO: Converts between various formats (see below).

    VIDEO: Converts between various formats. Can also produce audio-only from a video source. Video size can be scaled by specifying a new width - the new height is calculated based on aspect ratio. A video can also be letterboxed by choosing the aspect ratio of your display device - calculation automatically determines whether to pad on top/bottom or left/right. Videos can also be rotated to compensate for the type of recorder used (this feature is the only one that relies on mencoder). NOTE REGARDING ROTATION - mencoder has some codec limitations, and depending on the source or destination file type, rotation may fail. This will be detected, but without automatically fixing it. The best course of action is to convert the source first, perhaps to AVI, then use THAT file as the source for your rotation and other changes.

    AUDIO AND VIDEO: Can adjust audio volume, sample rate, bitrate. In fact, you can do anything ffmpeg is capable of. Options in default menus offer common operations, but a special KEY-IN function lets you test your own and store them in your own custom file. Further, there's a file of user-submitted options (downloaded separately).

    VIDEO FRAMES: Converts an input video into a series of frames in either jpg or png format. The capture rate can range from 1 to 60 seconds between frames, or 'all'.

    IMAGES: Convert between various formats. Optionally set resolution for output. If outputting jpg, optionally set quality. A single conversion can specify multiple output types and multiple resolutions.

    ISO IMAGES: Why should "images" be limited to "pictures"? Generate an ISO file from source files in the following formats: b5i, bin/cue, csi, daa, mdf, nrg, pdi, uif.

    IMAGE SPECIAL CASES: Converting an animated gif to a format other than gif will produce a separate file for each frame in the source. Converting a pdf to an format other than pdf does the same thing. In both cases the "progress indicator" will suggest that there was an error, but this is only because the files created are not named in accordance with what it expects. Be patient if the source contains many frames, and do not click Cancel to the progress window. Also, conversion of a .psd (or similar) which contains layers will generate multiple images in some formats (eg jpg), or an animation (eg gif), so you may want to flatten them first.

    TEXT to TEXT: Various conversions between TXT, RTF, HTML, M$Office and OpenOffice, with more being added.

    TEXT to SOUND: Produces an audio file from a .txt file. Choose language, gender, pitch and speed.

    TEXT to IMAGE: Produces an image of your .txt file. Choose the output image size, font size, colors, border, and font. Text is automatically rewrapped as needed, based on the requested image width and font size. After wrapping, if the text will not fit on a single image vertically, multiple image pages will be generated.

    GENERAL:
    - The source file is not overwritten. The destination file is named for the source with a new extension.
    - An image conversion will also insert resolution into the destination name.
    - If any conversion would produce the source filename (eg changing image jpg quality only, or audio bitrate only, or same conversion twice), "new" is inserted into destination name or user is prompted to supply a name.

    If you are missing any packages or plug-ins that it relies on, it will try to help. Help and notes are within the script at the very bottom.

    REQUIRES:
    xterm . . . . . . . . used to inform user if zenity not installed, and to auto-fix zenity defaults
    zenity . . . . . . . . for all dialogs
    ffmpeg . . . . . . . everything video and audio
    imagemagick . . image and text-to-image

    CODECS (more is always better):
    amrwb
    faac
    faad2
    ffmpeg-libs
    gpac
    gstreamer-ffmpeg
    gstreamer-plugins-*
    xmms2-avcodec
    xmms2-wma

    OPTIONAL:
    curl . . . . . . . . . . language translation
    links/elinks . . . . language translation
    nautilus-actions . add directly to context menu
    kdegraphics . . . GUI colors in text-to-image
    espeak . . . . . . . text to audio
    faac . . . . . . . . . required for m4a audio
    faad2 . . . . . . . . mpeg-2 and mpeg-4
    antiword . . . . . . M$Office to txt and rtf
    unrtf . . . . . . . . . rtf to txt and html
    odt2txt . . . . . . . OpenOffice to txt and xml
    txt2tags . . . . . . txt to html
    libavcodec-unstripped-52 . avi to .mp4
    AcetoneISO . . . disk images b5i/cdi/mdf/nrg/pdi to ISO.
    nrg2iso, daa2iso, cdd2iso, uif2iso, bchunk . more disk images to ISO
    mencoder . . . . . to rotate videos

    The source file is identified using the system's "file" command as well as some hard-coded extensions. If this fails, the user is asked if the source is image, audio or video.

    Upon startup, "ffmpeg" and "file" are both executed against the source file, and the information gathered is displayed in the initial windows. This is helpful in deciding what choices to make, especially if the source file happens to be of an 'unknown' type.

    The destination is chosen from a list of common and appropriate file extensions, or the user can choose OTHER and key in any valid file extension for the media type.

    For a typical system (eg, mine :-) conversions for the following image, audio and video formats...

    Image formats supported by convert (ImageMagick)
    -- Readable:
    A ART AVI AVS B BMP C CAPTION CIN CMYK CMYKA CR2 CRW CUR CUT DCM DCR DCX DFONT DNG DPX EPDF EPI EPS EPSF EPSI EPT EPT2 EPT3 FAX FITS FRACTAL FTS G G3 GIF GIF87 GRADIENT GRAY ICB ICO ICON IPL JNG JP2 JPC JPEG JPG JPX K LABEL M M2V MAP MAT MIFF MNG MONO MPC MPEG MPG MRW MSL MSVG MTV MVG NEF NULL O ORF OTB OTF PAL PALM PAM PATTERN PBM PCD PCDS PCL PCT PCX PDB PDF PEF PFA PFB PFM PGM PGX PICON PICT PIX PJPEG PLASMA PNG PNG24 PNG32 PNG8 PNM PPM PS PSD PTIF PWP R RAF RAS RGB RGBA RGBO RLA RLE SCR SCT SFW SGI STEGANO SUN SVG SVGZ TEXT TGA TIFF TILE TIM TTC TTF TXT UYVY VDA VICAR VID VIFF VST WBMP WMF WMZ WPG X X3F XBM XC XCF XPM XV XWD Y YCbCr YCbCrA YUV
    -- Writable:
    A ART AVS B BMP BMP2 BMP3 C CIN CIP CLIP CMYK CMYKA CUR DCX DPX EPDF EPI EPS EPS2 EPS3 EPSF EPSI EPT EPT2 EPT3 FAX FITS FTS G G3 GIF GIF87 GRAY HISTOGRAM HTM HTML ICB ICO ICON INFO IPL JNG JP2 JPC JPEG JPG JPX K M M2V MAP MAT MATTE MIFF MNG MONO MPC MPEG MPG MSL MSVG MTV MVG NULL O OTB PAL PALM PAM PBM PCD PCDS PCL PCT PCX PDB PDF PFM PGM PICON PICT PJPEG PNG PNG24 PNG32 PNG8 PNM PPM PREVIEW PS PS2 PS3 PSD PTIF R RAS RGB RGBA RGBO SGI SHTML SUN SVG SVGZ TEXT TGA THUMBNAIL TIFF TXT UIL UYVY VDA VICAR VID VIFF VST WBMP X XBM XPM XV XWD Y YCbCr YCbCrA YUV
    --NOTE that "readable" or "writable" do not necessarily imply "useful" :-Q

    Audio/Video formats supported by ffmpeg
    -- Read/Write:
    3g2 3gp 4xm MTV RoQ aac ac3 adts aiff alaw amr apc ape asf asf_stream au avi avm2 avs bethsoftvid c93 crc daud dsicin dts dv dv1394 dvd dxa ea ea_cdata ffm film_cpk flac flic flv framecrc gif gxf h261 h263 h264 idcin image2 image2pipe ingenient ipmovie libdc1394 lmlm4 m4v matroska mjpeg mm mmf mov mov,mp4,m4a,3gp,3g2,mj2 mp2 mp3 mp4 mpc mpc8 mpeg mpeg1video mpeg2video mpegts mpegtsraw mpegvideo mpjpeg mulaw mxf nsv null nut nuv ogg oss psp psxstr pva rawvideo redir rm rtp rtsp s16be s16le s8 sdp shn siff smk sol svcd swf thp tiertexseq tta txd u16be u16le u8 vc1 vc1test vcd video4linux video4linux2 vmd vob voc wav wc3movie wsaud wsvqa wv x11grab yuv4mpegpipe




    Changelog:

    [ READ ME!! ] After processing, the last part of the output from the actual conversion program used is displayed to confirm proper operation or to help diagnose any problems. If there are problems, you can view the complete output: in /tmp, list the files with "ls -lrt" which will show the newest at the bottom. The files that capture conversion output are named as follows: conversion-program.NNNNN where NNNNN is the PID of the process that ran. For example, you might see "ffmpeg.8512" or "antiword.405". Just view the file and look for the first error listed, which is probably the culprit.

    =====

    0.56 It is now possible to replace originals during a conversion IF:
    1 - converting images
    2 - converting into the source folder
    3 - converting to only one file type
    4 - converting to only one resolution
    If these conditions are all true, you will be prompted before the conversion begins. If you choose YES:
    1 - originals are replaced with the converted files
    2 - the new files will have a different extension if appropriate
    3 - the new file names will not have the resolution inserted

    0.60 You are invited to submit your own custom option sets, which will be added to a "user submissions" config file that will be posted here and available for download!

    0.61 Now recognizes .vob files - just mount your DVD and rip away!

    0.65 When a keyed-in option is used in audio or video conversion, if you add a "comment" (a # followed by text), then that option set will be automatically added to your ~/.config/avconvert/avconvert.ffopts.custom file for future use

    0.72 There are three valid audio sample rates for FLV files (according to ffmpeg). If converting to FLV and no sample rate is specified, and the source file rate is not one of these three, the script now assigns the best match automatically.

    0.73 Image conversion now implements the "normalize" and "equalize" functions of ImageMagick's convert.

    0.81 Videos can now be rotated (requires mencoder). Video-->frames conversion has been improved.

    0.82 Video rotation is now two-pass and higher quality. Added image rotation, adjustments to ffmpeg which better retain original quality, added tests for curl/gawk/elinks(or links) packages, improved file-naming and progress-bar when converting multi-page PDF into GIF images.

    0.83 Fixed 270 degree image-rotate and made adjustments when executed with no $args

    0.84 The script will only complain about PATH if it needs to -- IF executed with no filename arguments

    0.85 When converting multiple files using ffmpeg when notification method is set to quiet, fixed typo which caused 60-second delay between files.




    LicenseGPL
    (Download avconvert here)
    (---)
    (Sample Run: Initial setup)
    (Sample Run: Image Conversion)
    (Sample Run: Video Conversion)
    (Sample Run: Text-to-Image)
    (---)
    (avconvert.ffopts.submissions... SEND ME YOURS!)
    (---)
    (Version 0.81 Greek translation by vagrale13)
    Donate
    Send to a friend
    Subscribe
    Other artwork from marc41



    goto page: prev  ... 9  10  11  12  13  14  15  16  17 

    -
    .

     Error.

     
     by m1k4 on: Jul 11 2010
     

    Hi, i' m sorry but I have a problem :

    "For full functionality, avconvert should be copied or linked to somewhere in your PATH - please fix that."

    I have the "avconvert script" [~/.gnome2/nautilus-scripts]
    and [/usr/local/bin]. But i have the problem :( .

    Do you would help me? Thx u very much.


    Sorry but my poor English.
    Reply to this

    -

     Re: Error.

     
     by m1k4 on: Jul 11 2010
     

    Ah, I've 0.83 version and Ubuntu 10.4. Thx u.


    Reply to this

    -

     Re: Re: Error.

     
     by m1k4 on: Jul 14 2010
     

    Fixed :p


    Reply to this

    -

     A question

     
     by ubuntico on: Jul 15 2010
     

    I not have idea what do you mean with the #3 step.
    Please explain me.


    Reply to this

    -

     Re: A question

     
     by marc41 on: Jul 20 2010
     
    marc41marc41
    Tailored Software, Inc
    -
    Marc Brumlik
    Tailored Software, Inc
    United States of America, Chicago
    Last visit 12 hours ago
    10 Friends
    0 Groups

    Other contents
    Send a message
    Add as friend
    More info
    --

    There are three ways to launch this program using the Gnome GUI (it can also be used from the command line).

    To use the script as a "Nautilus Script", it just needs to be copied or linked to ~/.gnome2/scripts

    To use the script as a drag-and-drop, drag it to one of the launcher panels.

    A "Nautilus Action" is very much like a Nautilus Script. The differences are:
    1 - requires the package "nautilus-actions"
    2 - Each new "action" needs to be configured
    3 - There is much more control in setting up an Action than a Script
    4 - The program pointed to by an "Action" does not need to be in a special place

    If you Google "nautilus actions" you can get more description.

    I hope this is working well for you!

    -- Marc


    Reply to this

    -
    .

     Re: Re: A question

     
     by ubuntico on: Jul 21 2010
     

    I had copied the script on .gnome2/nautilus-scripts, but when I try to convert an image for example, the script send me the next error:

    Must install
    ""
    ""
    "either links or elinks" package first!


    Reply to this

    -

     Re: Re: Re: A question

     
     by marc41 on: Jul 21 2010
     
    marc41marc41
    Tailored Software, Inc
    -
    Marc Brumlik
    Tailored Software, Inc
    United States of America, Chicago
    Last visit 12 hours ago
    10 Friends
    0 Groups

    Other contents
    Send a message
    Add as friend
    More info
    --

    That is not a very clear message and I should change it. What it means is that the "links" or the package "elinks" must be installed on your for this this script to work.

    Just go to your package manager and install either of those.

    I will put a better message in the next release.

    -- Marc


    Reply to this

    -

     Re: Re: Re: A question

     
     by marc41 on: Jul 21 2010
     
    marc41marc41
    Tailored Software, Inc
    -
    Marc Brumlik
    Tailored Software, Inc
    United States of America, Chicago
    Last visit 12 hours ago
    10 Friends
    0 Groups

    Other contents
    Send a message
    Add as friend
    More info
    --

    That is not a very clear message and I should change it. What it means is that the "links" or the package "elinks" must be installed on your for this this script to work.

    Just go to your package manager and install either of those.

    I will put a better message in the next release.

    -- Marc


    Reply to this

    -

     Re: Re: Re: A question

     
     by marc41 on: Jul 21 2010
     
    marc41marc41
    Tailored Software, Inc
    -
    Marc Brumlik
    Tailored Software, Inc
    United States of America, Chicago
    Last visit 12 hours ago
    10 Friends
    0 Groups

    Other contents
    Send a message
    Add as friend
    More info
    --

    That is not a very clear message and I should change it. What it means is that the "links" or the package "elinks" must be installed on your for this this script to work.

    Just go to your package manager and install either of those.

    I will put a better message in the next release.

    -- Marc


    Reply to this

    -

     #3

     
     by m1k4 on: Jul 16 2010
     

    Do not worry. What I meant is that my problem is solved. Sorry about my English so bad and thanks very much :)


    Reply to this

    -

     Video to wmv problem

     
     by szamot83 on: Aug 1 2010
     

    Hello,
    I'm trying to convert video files into wmv (320x240) resolution, but videos won't scale down - output resolution is the same as input.

    In older version of this script every thing works well.
    I'm using Arch Linux.

    Regards


    Reply to this

    -

     Re: Video to wmv problem

     
     by marc41 on: Aug 6 2010
     
    marc41marc41
    Tailored Software, Inc
    -
    Marc Brumlik
    Tailored Software, Inc
    United States of America, Chicago
    Last visit 12 hours ago
    10 Friends
    0 Groups

    Other contents
    Send a message
    Add as friend
    More info
    --

    Hello - sorry for the delay in responding.

    I have just tested this.
    Source file: AVI 620x256
    Conversion: WMV
    Options chosen: w-320

    On my system, this produced a 320x132 MPEG-4 video

    You could look at the text file /tmp/ffmpeg.XXXXX which captures the output during the conversion. See if there are any warnings there.

    What older version of my script were you using? Perhaps that will be a clue.

    What is your source video file type?

    -- Marc


    Reply to this

    goto page: prev  ... 9  10  11  12  13  14  15  16  17 

    Add commentBack




    -
    -
    all messages
    openDesktop.org Facebook App

    Partners
    Place Your Link Here!
    Online Casino
    Tattoo
    Roulette
    Casino online
    Online Poker
    Payday Loans
    Car Rental Avis - Hertz - Europcar
    Wireless broadband
    Concert Tickets

    The best UK online Casinos also can be played from your Gnome-Desktop. For more information on flash casinos that require no download, check OnlineCasinoTest.com

     
     Who we are
    Contact
    More about us
    Frequently Asked Questions
    Register
    Twitter
    Blog
    Explore
    Artwork
    Jobs
    Knowledge
    Events
    People
    Updates on identi.ca
    Updates on Twitter
    Facebook App
    Content RSS   
    Events RSS   

    Participate
    Groups
    Forum
    Add Artwork
    Public API
    About GNOME-Look.org
    Legal Notice
    Spreadshirt Shop
    CafePress Shop
    Advertising
    Sponsor us
    Report Abuse
     

    Copyright 2003-2010 GNOME-Look.org Team  
    All rights reserved. GNOME-Look.org is not liable for any content or goods on this site.
    All contributors are responsible for the lawfulness of their uploads.
    GNOME and the foot logo are trademarks of the GNOME Foundation.