From: Chris on
Hello!! :) :)

Do you know how to convert .avi file to .bin (binary) file?

I want to use it in a method "Tracking Cars Using Optical Flow".

Thaank you :) :)
From: us on
"Chris " <chris_sar(a)hotmail.com> wrote in message <hrk8ag$f3a$1(a)fred.mathworks.com>...
> Hello!! :) :)
>
> Do you know how to convert .avi file to .bin (binary) file?
>
> I want to use it in a method "Tracking Cars Using Optical Flow".
>
> Thaank you :) :)

one of the solutions
- a very brief example

fnam='your.avi';
ao=mmreader(fnam);
frm=read(ao);
imagesc(frm(:,:,:,1));
axis image;
% now, you can save each FRM as a binary into another file...

us
From: Chris on
Hellooo!! :) :)

Thank you very much!! Now I can separate the .avi to its image frames..

But how can I make a final .bin file (equal to the initial .avi file) ??
From: Chris on
Hellooo!! :) :)

Thank you very much!! Now I can separate the .avi to its image frames..

But how can I make a final .bin file (equal to the initial .avi file) ??
From: Steven Lord on

"Chris " <chris_sar(a)hotmail.com> wrote in message
news:hrk8ag$f3a$1(a)fred.mathworks.com...
> Hello!! :) :)
>
> Do you know how to convert .avi file to .bin (binary) file?
>
> I want to use it in a method "Tracking Cars Using Optical Flow".
>
> Thaank you :) :)

Well, since as far as I know .bin is not a standard format, I define it to
be exactly the same as the AVI format to make the solution easy.

movefile('myfile.avi', 'myfile.bin')

If you have a specific format in mind when you say ".bin (binary) file",
then you will need to obtain and/or write the functions to write data to and
read data from files in that specific format.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ