Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

See changelog for 0.54

This feature has been cautiously added as follows:

At the end of the conversion, there will be one final popup question: Do you want to move the source file(s) from this conversion to $HOME/Desktop/avconvert-Trash/xxxxx ?

The "xxxxx" is the PID of this conversion.

Answer CANCEL to leave the source files where they were. Answer OK to MOVE the source files to the specified avconvert-Trash folder.

Once in the "Trash", the entire folder can be deleted at any time. Until that time, the source files from conversions can be retrieved if necessary, but until then they are safely (and neatly) kept in this private Trash folder.

The Trash folder will be (re)created automatically any time you answer OK to that prompt.

I hope this makes everyone who wanted an automatic delete function happy, and at the same time protects everyone from an OOPS that has the potential to lose important source files.

Enjoy! :-)

-- Marc - Aug 23 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

See changelog for 0.54

This feature has been cautiously added as follows:

At the end of the conversion, there will be one final popup question: Do you want to move the source file(s) from this conversion to $HOME/Desktop/avconvert-Trash/xxxxx ?

The "xxxxx" is the PID of this conversion.

Answer CANCEL to leave the source files where they were. Answer OK to MOVE the source files to the specified avconvert-Trash folder.

Once in the "Trash", the entire folder can be deleted at any time. Until that time, the source files from conversions can be retrieved if necessary, but until then they are safely (and neatly) kept in this private Trash folder.

The Trash folder will be (re)created automatically any time you answer OK to that prompt.

I hope this makes everyone who wanted an automatic delete function happy, and at the same time protects everyone from an OOPS that has the potential to lose important source files.

Enjoy! :-)

-- Marc - Aug 23 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

We're working on this -- more news soon... - Aug 23 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

This was suggested once before, but I am hesitant to add a "destructive" option just in case something goes wrong or it is chosen accidentally.

Someone else made a very simple suggestion: after the conversions are completed, all the icons that has been selected are STILL selected. So after your conversions are complete, if you've received no error messages and want the originals gone, just hit the DELETE key.

Another way to do this easily, if your source files are the only contents in a folder, is to have the conversion write the new files to a different folder and then just delete the source when done.

If you REALLY think deleting ought to be automatic, I could add a "Delete all originals" at the end with a "OK" and "Cancel" button. If these other methods are not practical, let me know and I will do that.

-- Marc - Jul 19 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

To make the operation more clear, there is now a called "Leave Unchanged", which is pre-checked as the default. - Jul 14 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

If you do not choose a size from the list, and simply click OK, the the resolution of the new file will be the same as the original. - Jul 11 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

It is now fixed. - Jul 08 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

You are correct - it is a typo in the script. I will correct it. In the meantime, simply select OTHER and key-in "mp4". It does actually work, just got the wrong thing listed in the menu.

Thanks for catching that. Enjoy! - Jul 08 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

I have made some adjustments within avconvert, and 3gp is now supported. You may find that SOME audio birtates and/or SOME video resolutions are unsupported by the conversions, depending on what the source and destination file types are and what codecs you have installed.

The good news, though, is that it does work now, properly converting both to and from the 3gp format!

Let me know how this does on YOUR system. Download version 0.51

-- Marc - Jul 07 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

Be sure you have all the "gstreamer-plugins-*" packages installed, plus "ffmpeg-libs" and "gstreamer-ffmpeg".

If you have these and it still does not work, look in /tmp for files named "ffmpeg.NNNNN" (NNNNN will be a number). This will be the full output of the failed conversion. Look there for error messages. Send the file to me if you do not see the cause.

-- Marc - Jul 05 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

see 0.50

It now handles .rm read/write and .rmvb read-only - Jun 30 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

I had never tried it on .rm or .rmvb files. I have made some adjustments and .rm is now working. I am looking into .rmvb now...

Let me know if this has solved the .rm problem for you. Get version 0.49

-- Marc - Jun 30 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

THANKS SO MUCH! - Jun 27 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

The problem was DRM encumbered files. Works fine otherwise. - Jun 24 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

Trying to reach you by private message. Did you get this working? - Jun 22 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

The NEXT release (currently available for test download) includes a new "quiet mode" which allows only the progress window to pop up beneath other windows. It also changes the completion summary produced by audio and video conversion from a pop-up to a notification icon on the upper panel. See the changelog for details. - May 20 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

The NEXT release (currently available for test download) includes a new "quiet mode" which allows only the progress window to pop up beneath other windows. It also changes the completion summary produced by audio and video conversion from a pop-up to a notification icon on the upper panel. See the changelog for details. - May 20 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

Good idea - I find that annoying too when converting more than one file.

I'm working on a change to the way avconvert modifies /usr/share/zenity/zenity.glade which controls zenity's behavior. The default was for everything to pop-under. avconvert currently modifies this file so everything pops-on-top.

There are no command-line options to control the windows. It seems the solution will be to create two versions of the file, or to modify it on-the-fly, so that different behaviors can be managed.

More news on this later..... - May 19 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

To my knowledge this has never actually happened. Just a technical possibility that's been corrected - May 18 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

Actually, /tmp/espeak.NNN

Sorry... - May 16 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

Version 0.43 now converts from various image formats to ISO. Thanks for the suggestion! - May 15 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

I'm not sure why it would just hang. However, I did just find that in some conversions (like text->sound *IF* the source text file lacked an extension), that the original got overwritten ALSO without an extension. If that's what happened to you, get version 0.44

If that is NOT what happened to you, then look in /tmp for a file named "esound.NNN" (where NNN is a number). The contents of that file will contain any text output from the conversion and should lead you to the cause of the problem.

Let me know what you find!

-- Marc - May 15 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

Just to close this issue:

In PM we discussed that after the conversion, all the source file icons are still selected on the screen, and simply hitting DELETE once the conversion is successfully completed will remove those files. - May 11 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

For some reason, I can not reply to you - I get the message that I should not "spam another user".

If you are sure there is no file in /tmp named ffmpeg* then try running ffmpeg directly to see the messages. cd to the directory with your source file and type:

ffmpeg -i source.wmv newfile.avi

Let me know the results. - May 11 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

For some reason, I can not reply to you - I get the message that I should not "spam another user".

If you are sure there is no file in /tmp named ffmpeg* then try running ffmpeg directly to see the messages. cd to the directory with your source file and type:

ffmpeg -i source.wmv newfile.avi

Let me know the results. - May 11 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

SOLVED!

For the conversion of camera raw images, ImageMagick calls the 'ufraw' program. A recent change to ufraw includes different command-line options. The old options work properly, but using them generates a complaint that that those options are "deprecated". A future version of ImageMagick should fix this permanently.

I have added a test to suppress a message from ufraw if it only relates to deprecated options.

-- Marc - May 11 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

I will check into this. Need to find a .nef file to play with.... - May 10 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

Hmmm.. It is possible to delete the original, though I'd decided not to because first, if something goes wrong, the original is lost, and second, because most conversions lose "something" (resolution, compression, etc) deleting the original would mean the best-quality image was lost.

Also, because the new file often has a slightly different name and/or extension, this gets complicated. And even more so since one original might generate a number of converted images depending on the choices made.

A suggestion might be to simply put the originals in one folder and set the destination to a different folder. After converting, just delete the original.

Or, use the 'thunar' mass-rename utility to batch-rename the new files over the originals.

-- Marc - May 10 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

Check in /tmp for a file named "ffmpeg.NNN" where NNN is some number. The contents of that file should help you determine exactly what is missing or going wrong.

Chances are you're missing a codec (which also suggests I missed listing one). I have tried removing various things and haven't hit on one that breaks wmv->avi yet.

I presently have all the gstreamer-plugins, gstreamer-ffmpeg, w32codecs, and some others installed. The last of these requires a little work -- look here: http://www.ubuntugeek.com/install-mplayer-and-multimedia-codecs-libdvdcss2w32codecsw64codecs-in-ubuntu-804-hardy-heron.html

Let me know what you find in /tmp/ffmpeg.NNN

-- Marc - May 08 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

OK, it's a slow day and a challenge is always fun. Clicking 'Cancel' on the progress window will now kill the current conversion. - May 04 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

Well... That's actually due to a design decision choice on my part.

If the conversion is piped to the progress indicator, then the conversion is killable with a cancel as you suggest. (killing the child process kills the parent).

The zenity progress indicator has two options. The first will show a slider move back and forth as long as changing text is piped to its input. The second shows a %-complete but must be piped a number between 0 and 100.

So the zenity progress will not work at all for programs that do not produce stdout, and at best could give only a vague idea of "busy" for those that do (but not actual progress).

My goal was a %-complete indicator. My solution was to separate the progress indicator from the conversion itself.

In the script, after the options are chosen but before the conversion is started, a separate "watcher" process is launched in the background. This process watches the destination file. It first waits for that file to reach a non-zero size for up to 20 seconds while displaying a back-and-forth indicator (if it never grows, watcher dies). Then watcher switches modes and displays the size of the output file as a percent of the input file (real estimate to completion). The watcher exits when the output file stops growing.

The advantage is a true indication of how long the conversion will take. The disadvantage, as you point out, is that killing the watcher does not kill the process it is monitoring.

I have considered handing the watcher the PID of the avconvert script and from that it could find the PID of the conversion which could then be killed. Since I've not experienced a conversion actually hang, it didn't seem necessary.

So there's the explanation. I'll put this on my "would be interesting to code" list and get it into a future release :-)

-- Marc - May 04 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

Well... That's actually due to a design decision choice on my part.

If the conversion is piped to the progress indicator, then the conversion is killable with a cancel as you suggest. (killing the child process kills the parent).

The zenity progress indicator has two options. The first will show a slider move back and forth as long as changing text is piped to its input. The second shows a %-complete but must be piped a number between 0 and 100.

So the zenity progress will not work at all for programs that do not produce stdout, and at best could give only a vague idea of "busy" for those that do (but not actual progress).

My goal was a %-complete indicator. My solution was to separate the progress indicator from the conversion itself.

In the script, after the options are chosen but before the conversion is started, a separate "watcher" process is launched in the background. This process watches the destination file. It first waits for that file to reach a non-zero size for up to 20 seconds while displaying a back-and-forth indicator (if it never grows, watcher dies). Then watcher switches modes and displays the size of the output file as a percent of the input file (real estimate to completion). The watcher exits when the output file stops growing.

The advantage is a true indication of how long the conversion will take. The disadvantage, as you point out, is that killing the watcher does not kill the process it is monitoring.

I have considered handing the watcher the PID of the avconvert script and from that it could find the PID of the conversion which could then be killed. Since I've not experienced a conversion actually hang, it didn't seem necessary.

So there's the explanation. I'll put this on my "would be interesting to code" list and get it into a future release :-)

-- Marc - May 04 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

Fixed in 0.37

There seems to be a problem with the ImageMagick "identify" command. It is supposed to only analyze a file. I used identify and ffmpeg to gather information on input files and them. This was used if other methods failed to figure out what the file was.

It seems that in the case of certain file types, identify calls mplayer. In the case of an avi, it does the wrong thing, causing mplayer to produce a series of png files from the video instead of simply giving information.

Since I used this only to analyze files which could not otherwise be identified, I have simply removed that step pending finding a better way.

This seems to be a (temporary?) bug in either ImageMagick's identify or in mplayer.

-- Marc - May 03 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

You are right about not creating a file in /tmp. I have fixed that. Re-download and you will get the diagnostic file /tmp/espeak.xxxxx (xxxxx will be a number).

When you run the text->speach conversion, it will not play the sound. It will write to a .wav file. The progress bar is for the file creation.

Did you see avconvert create a new file with the same name as your .txt source but ending in .wav?

When you run espeak directly from the command line, it wants to write to /dev/dsp. It seems you do not have permission. Try the same commands as root. If that works, there are a few ways to fix this.

First, you may not need to fix it at all. If avconvert is properly creating the .waf file, just double-click to play it.

However, if you would like to solve the /dev/dsp issue, try this: first "ls -l /dev/dsp". It is probably owned by root, with some other group ownership, and with 660 (-rw-rw----) permissions. The proper way to make it writable is to add yourself to the group that owns the device. If you are not sure how to do that, send me another message.

-- Marc - May 02 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

WOW - I think you must be the first person to try this :-)

You are correct. I'd added the function and later added a test to check that the espeak package was installed. There was an error in that test. I have corrected it. Please download version 0.36

Thanks for the input - let me know how it works for you!

-- Marc - May 01 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

I've re-uploaded - thanks for the heads-up

Glad you got it working - Apr 15 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments


Hmmm... I was going to say that if an error occurs there would be a file in /tmp you could use to help diagnose the problem, but found that in one of the recent updates I lost that function,

I have fixed it now. Re-download the program. After running it, check in /tmp for a file named "convert" followed by a number. This file will contain any error output from ImageMagick.

If the contents of that file do not steer you in the right direction, contact me again.

-- Marc
- Apr 13 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments


HI - Glad you like it. The alternate directory prompt can be eliminated by adding --no-outdir to the command line.

This was added almost immediately after adding the alternate directory feature. You'll find a reference to this in the text under "Recent changes".

Enjoy!

-- Marc - Apr 13 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

Hello --

I assume you came back and got a working copy -- what do you think??

-- Marc - Mar 31 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

Hello --

I assume you came back and got a working copy -- what do you think??

-- Marc - Mar 31 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

Sorry -- it's fixed now - Mar 17 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

Sorry - I have it fixed now. - Mar 17 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

Also, look at the comment on page 3 "Litle audio converting problem". Could this be the same thing that's happening to you? If so, your answer is there in the responses...

Let me know...

-- Marc - Mar 17 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

Also, look at the comment on page 3 "Litle audio converting problem". Could this be the same thing that's happening to you? If so, your answer is there in the responses...

Let me know...

-- Marc - Mar 17 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

Hi - I just posted version 0.27 which allows you to specify audio bitrate when converting Video -> Audio.

Enjoy! - Mar 17 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

Check this:

Each time avconvert runs, it creates a file in /tmp with the full output from the conversion. It is the last 5 lines of that file that is displayed in the completion dialog.

Look in /tmp for files named "ffmpeg.NNNN" where NNNN is some number (the PID of the process you ran). It should contain full diagnostic output.

Let me know what you find there. Perhaps I should be putting more of that output file into the final dialog than just the last lines to help with diagnostics.

-- Marc - Mar 17 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

Has anybody used the text-to-image function? I used it for a client project where they didn't want anyone to take parts of their web site and modify them (at least not easily). I'd held off on going the reverse direction, reading text from an image and doing OCR, waiting to see if ANYBODY had even tried this first part.

Anyone tried it? Is there a use for OCR from an image? (eg create a document from a fax, from an image caption, or whatever else can be made to work...) - Mar 17 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

Hi - I haven't been back in a while. I agree multiple files would be a good addition and have meant to get back to the script and do that. I assume that converting all source files identically would make sense?

As for the mp3's stripped from a video, you're correct. However, I did include that option when converting an audio source file. Perhaps it ought to be in both, but as the program is presently you could accomplish that through a second conversion (mp3 to mp3 with a bitrate specified). I will look at adding that option to the video->audio convert as well.

Thanks for the input!

-- Marc - Mar 17 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

Hi - I haven't been back in a while. I agree multiple files would be a good addition and have meant to get back to the script and do that. I assume that converting all source files identically would make sense?

As for the mp3's stripped from a video, you're correct. However, I did include that option when converting an audio source file. Perhaps it ought to be in both, but as the program is presently you could accomplish that through a second conversion (mp3 to mp3 with a bitrate specified). I will look at adding that option to the video->audio convert as well.

Thanks for the input!

-- Marc - Mar 17 2009
Audio/Video/Image/Text/ISO Convert

Nautilus Scripts by marc41 383 comments

Hi - it's been a while since I checked this site, so sorry for the delay. Your .flv problem, especially since you can't play them either, is likely that you haven't got the flashplayer installed.

This script will always produce an empty file if it lacks the codecs/libraries it needs.

Because of the number of formats it does know (if libraries are there, as you can see from the list), I did not take the time to produce specific error messages.

Make sure you have all the gstreamer-plugins installed (the good, the bad, and the ugly, as well as any 'extras'), and go to Adobe's site for flashplayer.

Let me know if this does it for you (or if it doesn't)

-- Marc - Mar 17 2009