Avi Writer Error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Avi Writer Error

ERIC
Hi All,
I have a small macro converting tif stack to avi files.
It works only when the in and out folders are in the directory C:
I suspect that avi writer does't like my directory : C:/User/Eric
Denarier and reads only C:/User/Eric (see enclosed picture)
It also has a problem with whitespaces in file names and other
Characters as in DOS.
It is not really convenient because I have to move my folders into C:
Do you know any alternative ?


Here is the macro

Ouvrerep=getDirectory("Choose folder In");
SauveRep=getDirectory("Choose folder Out");

liste=getFileList(Ouvrerep);

for (k=0;k<liste.length;k++){
       open(Ouvrerep+liste[k]);
       title = getTitle();
       run("AVI... ", "compression=JPEG frame=500
save="+SauveRep+title+".avi");
       close();
       }




--

Eric Denarier
Grenoble Institut des Neurosciences
Inserm U836
Chemin Fortuné Ferrini
38700 La Tronche
France


Tél :33 (0)4 56 52 05 38
Fax :33 (0)4 56 52 06 57

http://neurosciences.ujf-grenoble.fr/


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

AviWriterError.JPG (45K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Avi Writer Error

ctrueden
Hi Eric,

> It also has a problem with whitespaces in file names

Try enclosing your file path in square brackets:

      run("AVI... ", "compression=JPEG frame=500
save=["+SauveRep+title+".avi]");

HTH,
Curtis


On Fri, Jan 31, 2014 at 11:09 AM, Eric Denarier <
[hidden email]> wrote:

> Hi All,
> I have a small macro converting tif stack to avi files.
> It works only when the in and out folders are in the directory C:
> I suspect that avi writer does't like my directory : C:/User/Eric Denarier
> and reads only C:/User/Eric (see enclosed picture)
> It also has a problem with whitespaces in file names and other Characters
> as in DOS.
> It is not really convenient because I have to move my folders into C:
> Do you know any alternative ?
>
>
> Here is the macro
>
> Ouvrerep=getDirectory("Choose folder In");
> SauveRep=getDirectory("Choose folder Out");
>
> liste=getFileList(Ouvrerep);
>
> for (k=0;k<liste.length;k++){
>       open(Ouvrerep+liste[k]);
>       title = getTitle();
>       run("AVI... ", "compression=JPEG frame=500
> save="+SauveRep+title+".avi");
>       close();
>       }
>
>
>
>
> --
>
> Eric Denarier
> Grenoble Institut des Neurosciences
> Inserm U836
> Chemin Fortuné Ferrini
> 38700 La Tronche
> France
>
>
> Tél :33 (0)4 56 52 05 38
> Fax :33 (0)4 56 52 06 57
>
> http://neurosciences.ujf-grenoble.fr/
>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Avi Writer Error

ERIC
That's far better !!!!!
Thanks a lot !!!!

Eric Denarier
Grenoble Institut des Neurosciences
Inserm U836
Chemin Fortuné Ferrini
38700 La Tronche
France


Tél :33 (0)4 56 52 05 38
Fax :33 (0)4 56 52 06 57

http://neurosciences.ujf-grenoble.fr/

Le 31/01/2014 18:13, Curtis Rueden a écrit :

> Hi Eric,
>
>> It also has a problem with whitespaces in file names
> Try enclosing your file path in square brackets:
>
>        run("AVI... ", "compression=JPEG frame=500
> save=["+SauveRep+title+".avi]");
>
> HTH,
> Curtis
>
>
> On Fri, Jan 31, 2014 at 11:09 AM, Eric Denarier <
> [hidden email]> wrote:
>
>> Hi All,
>> I have a small macro converting tif stack to avi files.
>> It works only when the in and out folders are in the directory C:
>> I suspect that avi writer does't like my directory : C:/User/Eric Denarier
>> and reads only C:/User/Eric (see enclosed picture)
>> It also has a problem with whitespaces in file names and other Characters
>> as in DOS.
>> It is not really convenient because I have to move my folders into C:
>> Do you know any alternative ?
>>
>>
>> Here is the macro
>>
>> Ouvrerep=getDirectory("Choose folder In");
>> SauveRep=getDirectory("Choose folder Out");
>>
>> liste=getFileList(Ouvrerep);
>>
>> for (k=0;k<liste.length;k++){
>>        open(Ouvrerep+liste[k]);
>>        title = getTitle();
>>        run("AVI... ", "compression=JPEG frame=500
>> save="+SauveRep+title+".avi");
>>        close();
>>        }
>>
>>
>>
>>
>> --
>>
>> Eric Denarier
>> Grenoble Institut des Neurosciences
>> Inserm U836
>> Chemin Fortuné Ferrini
>> 38700 La Tronche
>> France
>>
>>
>> Tél :33 (0)4 56 52 05 38
>> Fax :33 (0)4 56 52 06 57
>>
>> http://neurosciences.ujf-grenoble.fr/
>>
>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html