[gpodder-devel] More Detail on the File Conversion Script

  • From: Paul at thegithouse.com (Paul Rudkin)
  • Date: Mon, 04 Aug 2008 07:26:14 +0100

Ooops, my bad.  I should have already created the wiki entry for the
cmd_download_complete etc

I will get onto this in the next day or so!

Sorry, forgot all about it.

Paul

On Sun, 2008-08-03 at 16:29 +0200, Thomas Perl wrote:
> Hello!
> 
> On Aug 3, 2008, at 4:06 AM, Clark Burbidge wrote:
> > I would like to know more about the "File Conversion Script" option in
> > the preferences. I searched the mailing list archive and the wiki but
> > was not able to find anything.
> >
> > When is the "File Conversion Script" called? After download? On  
> > transfer?
> > What files are passed to it?
> 
> The conversion script used to convert files after download is  
> "documented" in this part of the gPodder sources:
> 
> http://repo.or.cz/w/gpodder.git?a=blob;f=src/gpodder/download.py#l185
> 
> The "conversion script" command is used to convert files for sending  
> over bluetooth and is documented here:
> 
> http://repo.or.cz/w/gpodder.git?a=blob;f=src/gpodder/gui.py;h=72eee32b488da48a80582b2c9f6a6e5c84f4f71b;hb=HEAD#l801
> 
> It should accept two filename parameters, one that is the file to be  
> sent and the second that is the converted file that should be written  
> to. If you don't need to convert a file, you should copy the source  
> file to the destination file in the script.
> 
> This only works for sending files via bluetooth, however. For  
> conversion after download, you should use "cmd_download_complete" that  
> is documented in the first link above.
> 
> > My media player does not like .mov, only .avi and I would like to
> > convert any and all podcasts that come in as .mov to avi. I have a
> > command I use to do this manually but need some direction on getting
> > this command into a script that will convert with some level of
> > magical automaticitude. Is the "File Conversion Script" what I want to
> > do or should I cron something? I'd love to see gpodder managed (not
> > synced or redownloaded) the orriginal and converted files so that I
> > don't have to deal with them on the player side or in the random name
> > by which they are stored on my computer by gpodder.
> >
> > The command:
> >
> > mencoder filename.mov -quiet -ovc lavc -lavcopts
> > vcodec=mpeg4:v4mv:mbd=2:trell -vf expand=:::::4/3,scale=320:-3,harddup
> > -oac mp3lame -lameopts fast:preset=medium -ffourcc DX50 -o
> > filename.avi
> 
> It would be very helpful if you could start a Wiki document  
> documenting working conversion or "cmd_download_complete" scripts for  
> specific media players, so others can participate and download known- 
> working scripts ready to be used.
> 
> 
> Thanks,
> Thomas
> 
> _______________________________________________
> gpodder-devel mailing list
> gpodder-devel at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/gpodder-devel
> 



Other related posts: