DSPRelated.com
Forums

extracting frames from divx(dx50) compressed avi file

Started by Akif CEYLAN May 25, 2005
Hi,
When i try to show some frames from test file with aviread command i
have 'Segmentation violation' error and i didn't solve the problem.
can any one help ?
thanks for all your help

mov=aviread('file.avi',2);
imshow(mov.cdata); ----------------------------------
--
Segmentation violation detected at Wed May 25 16:28:27 2005
----------------------------------
--

Configuration:
MATLAB Version: 7.0.0.19920 (R14)
Operating System: Microsoft Windows 2000
Window System: Version 5.0 (Build 2195: Service Pack 4)
Processor ID: x86 Family 15 Model 2 Stepping 4, GenuineIntel
Virtual Machine: Java 1.4.2 with Sun Microsystems Inc. Java
HotSpot(TM) Client VM
(mixed mode)
Default Charset: ibm-5348_P100-1997

Register State:
EAX = 00d7c73d EBX = 00000160
ECX = 00d43da8 EDX = 00007259
ESI = 00000000 EDI = 00018c00
EBP = 00cdcb2c ESP = 00cdc100
EIP = 2cf91ee2 FLG = 00210287

Stack Trace:
[0] GTCODEC.DLL:0x2cf91ee2(0x1cf8a008, 0x00d67030, 0x00d43da8, 352)
[1] GTCODEC.DLL:0x2cf96efd

This error was detected while a MEX-file was running. If the
MEX-file
is not an official MathWorks function, please examine its source code
for errors. Please consult the External Interfaces Guide for
information
on debugging MEX-files.

If it is an official MathWorks function, please
follow these steps in reporting this problem to The MathWorks so
that we have the best chance of correcting it:

1. Send this crash report to segv@segv... for automated
analysis.
For your convenience, this information has been recorded in:
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\matlab_crash_dump.2092

2. Also, if the problem is reproducible, send the crash report to
support@supp... along with:
- A specific list of steps that will reproduce the problem
- Any M, MEX, MDL or other files required to reproduce the
problem
- Any error messages displayed to the command window
A technical support engineer will contact you with further
information.

Thank you for your assistance. Please save your workspace and
restart
MATLAB before continuing your work.

Error in ==> aviread at 65
X = readavi(info.Filename,index-1);


Hi Akif,
And also u can use frame2im for converting your frames to image...

Erg ACAR >From: "Sachde" <suchday@such...>
>To: <matlab@matl...>,"Akif CEYLAN"
><ceylan@ceyl...>
>Subject: Re: [matlab] extracting frames from divx(dx50) compressed avi file
>Date: Sun, 29 May 2005 12:00:50 +0530 >imshow is for showing one pic and ur cdata contains all images. Thus to
>view
>movie frame base use movie(mov).
>cdata contails all images.
>image(mov.cdata) will give image view. but u will get only last image as
>others are overlaped.
>
>u can get images by :
>mov(frame_id).cdata and it's colormap als as mov(frame_id).cdata.
>
>To get first image : >a = aviread('COUNT8.AVI');
>h= a(1).cdata;
>image(h);
>
>now, to get how many frames do ur movie contains can be get by aviinfo
>command.
>
>get in touch if u working in divx / MPEG4 side as i m in also working in
>same side.
>
>cya
>
>Viral Sachde
>
>----- Original Message -----
>From: "Akif CEYLAN" <ceylan@ceyl...>
>To: <matlab@matl...>
>Sent: Wednesday, May 25, 2005 7:39 PM
>Subject: [matlab] extracting frames from divx(dx50) compressed avi file > > Hi,
> > When i try to show some frames from test file with aviread command i
> > have 'Segmentation violation' error and i didn't solve the problem.
> > can any one help ?
> > thanks for all your help
> >
> > mov=aviread('file.avi',2);
> > imshow(mov.cdata);
> >
> >
> > ----------------------------------
> > --
> > Segmentation violation detected at Wed May 25 16:28:27 2005
> > ----------------------------------
> > --
> >
> > Configuration:
> > MATLAB Version: 7.0.0.19920 (R14)
> > Operating System: Microsoft Windows 2000
> > Window System: Version 5.0 (Build 2195: Service Pack 4)
> > Processor ID: x86 Family 15 Model 2 Stepping 4, GenuineIntel
> > Virtual Machine: Java 1.4.2 with Sun Microsystems Inc. Java
> > HotSpot(TM) Client VM
> > (mixed mode)
> > Default Charset: ibm-5348_P100-1997
> >
> > Register State:
> > EAX = 00d7c73d EBX = 00000160
> > ECX = 00d43da8 EDX = 00007259
> > ESI = 00000000 EDI = 00018c00
> > EBP = 00cdcb2c ESP = 00cdc100
> > EIP = 2cf91ee2 FLG = 00210287
> >
> > Stack Trace:
> > [0] GTCODEC.DLL:0x2cf91ee2(0x1cf8a008, 0x00d67030, 0x00d43da8, 352)
> > [1] GTCODEC.DLL:0x2cf96efd
> >
> > This error was detected while a MEX-file was running. If the
> > MEX-file
> > is not an official MathWorks function, please examine its source code
> > for errors. Please consult the External Interfaces Guide for
> > information
> > on debugging MEX-files.
> >
> > If it is an official MathWorks function, please
> > follow these steps in reporting this problem to The MathWorks so
> > that we have the best chance of correcting it:
> >
> > 1. Send this crash report to segv@segv... for automated
> > analysis.
> > For your convenience, this information has been recorded in:
> > C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\matlab_crash_dump.2092
> >
> > 2. Also, if the problem is reproducible, send the crash report to
> > support@supp... along with:
> > - A specific list of steps that will reproduce the problem
> > - Any M, MEX, MDL or other files required to reproduce the
> > problem
> > - Any error messages displayed to the command window
> > A technical support engineer will contact you with further
> > information.
> >
> > Thank you for your assistance. Please save your workspace and
> > restart
> > MATLAB before continuing your work.
> >
> > Error in ==> aviread at 65
> > X = readavi(info.Filename,index-1);
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>

_________________________________________________________________
Siz siz olun MSN'den hava durumunu renmeden evden kmayin!
http://www.msn.com.tr/havadurumu/


thx for all your comments but main problem 'Segmentation violation' error
goin on and still i can't solve this problem. i try same code at another
machine that have similar configuration with mine, it works? same codecs
installed same matlab version used but i have same error on mine machine
'Segmentation violation'. i notice this error to mathworks discussion list
but no anwer came yet.

----- Original Message -----
From: "Sachde" <suchday@such...>
To: <matlab@matl...>; "Akif CEYLAN"
<ceylan@ceyl...>
Sent: Sunday, May 29, 2005 9:30 AM
Subject: Re: [matlab] extracting frames from divx(dx50) compressed avi file >
> imshow is for showing one pic and ur cdata contains all images. Thus to
view
> movie frame base use movie(mov).
> cdata contails all images.
> image(mov.cdata) will give image view. but u will get only last image as
> others are overlaped.
>
> u can get images by :
> mov(frame_id).cdata and it's colormap als as mov(frame_id).cdata.
>
> To get first image : > a = aviread('COUNT8.AVI');
> h= a(1).cdata;
> image(h);
>
> now, to get how many frames do ur movie contains can be get by aviinfo
> command.
>
> get in touch if u working in divx / MPEG4 side as i m in also working in
> same side.
>
> cya
>
> Viral Sachde
>
> ----- Original Message -----
> From: "Akif CEYLAN" <ceylan@ceyl...>
> To: <matlab@matl...>
> Sent: Wednesday, May 25, 2005 7:39 PM
> Subject: [matlab] extracting frames from divx(dx50) compressed avi file > > Hi,
> > When i try to show some frames from test file with aviread command i
> > have 'Segmentation violation' error and i didn't solve the problem.
> > can any one help ?
> > thanks for all your help
> >
> > mov=aviread('file.avi',2);
> > imshow(mov.cdata);
> >
> >
> > ----------------------------------
> > --
> > Segmentation violation detected at Wed May 25 16:28:27 2005
> > ----------------------------------
> > --
> >
> > Configuration:
> > MATLAB Version: 7.0.0.19920 (R14)
> > Operating System: Microsoft Windows 2000
> > Window System: Version 5.0 (Build 2195: Service Pack 4)
> > Processor ID: x86 Family 15 Model 2 Stepping 4, GenuineIntel
> > Virtual Machine: Java 1.4.2 with Sun Microsystems Inc. Java
> > HotSpot(TM) Client VM
> > (mixed mode)
> > Default Charset: ibm-5348_P100-1997
> >
> > Register State:
> > EAX = 00d7c73d EBX = 00000160
> > ECX = 00d43da8 EDX = 00007259
> > ESI = 00000000 EDI = 00018c00
> > EBP = 00cdcb2c ESP = 00cdc100
> > EIP = 2cf91ee2 FLG = 00210287
> >
> > Stack Trace:
> > [0] GTCODEC.DLL:0x2cf91ee2(0x1cf8a008, 0x00d67030, 0x00d43da8, 352)
> > [1] GTCODEC.DLL:0x2cf96efd
> >
> > This error was detected while a MEX-file was running. If the
> > MEX-file
> > is not an official MathWorks function, please examine its source code
> > for errors. Please consult the External Interfaces Guide for
> > information
> > on debugging MEX-files.
> >
> > If it is an official MathWorks function, please
> > follow these steps in reporting this problem to The MathWorks so
> > that we have the best chance of correcting it:
> >
> > 1. Send this crash report to segv@segv... for automated
> > analysis.
> > For your convenience, this information has been recorded in:
> > C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\matlab_crash_dump.2092
> >
> > 2. Also, if the problem is reproducible, send the crash report to
> > support@supp... along with:
> > - A specific list of steps that will reproduce the problem
> > - Any M, MEX, MDL or other files required to reproduce the
> > problem
> > - Any error messages displayed to the command window
> > A technical support engineer will contact you with further
> > information.
> >
> > Thank you for your assistance. Please save your workspace and
> > restart
> > MATLAB before continuing your work.
> >
> > Error in ==> aviread at 65
> > X = readavi(info.Filename,index-1);
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>