PDA

View Full Version : BeginnerQ: Open AVI from digital camera - error fourcc M4S2 missing?


fray
20th May 2005, 16:09
Hi,

I try to access a AVI file from a digital photocamera,
the Casio EX Z750. These are MPEG4 files with Wav-Sound.

They play on my WindowsXP in VCL and other media players.

The test script is:
AviSource("c:\casio.avi")

Opening this in Virtualdubmod gives me the error
Avisynth open failure:
AVI Source couldn't locate a decompressor for fourcc M4S2
(<filename> line1)


A sample movie is here
http://www.steves-digicams.com/2005_reviews/ex-z750/samples/cimg0049.avi

Any hints on how I can get the system driver to work in Avisynth?

Wilbert
20th May 2005, 16:28
It's the 'Microsoft ISO MPEG-4 video V1.1'.

Apperently it's not always possible to open such clips in other editing programs.

http://www.stevesforums.com/forums/view_topic.php?id=56969&forum_id=14&jump_to=307528

One of the posts in that link suggested to "That is, if you use "AviC.exe", you'll be able to change the FourCC Description code from M4S2 to DivX". Having done this, you can open it in any editing program.

avic.exe: http://www.divx-digest.com/software/avifourcc.html

I suggest you try this :)

fray
20th May 2005, 17:03
I suggest you try this

Thanks for the speedy reply.
Alas, that didn't work for me.
Error message now complains about DivX..
Seems I have to spend
the weekend googling a bit deeper...

I would like to avoid any conversion before Avisynth
as the video quality is bad enough to begin with, otherwise
I could just convert the clips to MPEG2 before editing them.

Wilbert
20th May 2005, 17:17
Thanks for the speedy reply.
Alas, that didn't work for me.
Error message now complains about DivX.
Of course you need to have DivX installed for that :) (Btw, no conversion takes place as you seem to think, but DivX will decode the video for you instead of this MS codec.)

BUT, instead of the above, simply try

AviSource("c:\casio.avi", fourCC="DX50")

after installing DivX5. That's much easier :) For some dumb reason, i forgot about this option.

Of course you can also install XviD and open the stream with

AviSource("c:\casio.avi", fourCC="XVID")

fray
20th May 2005, 19:54
AviSource("c:\casio.avi", fourCC="DX50")
AviSource("c:\casio.avi", fourCC="XVID")


These two remove the error message, now my screen is green instead :)
I *think* I have DivX5/Xvid installed (I can play both in VCL), but to be sure I'll load a current version and try again later tonite.

Thanks so far.

communist
20th May 2005, 20:19
ffdshow decodes the video fine - just install a recent version and let it handle the decoding. Then instead of AviSource(...) use DirectShowSource(...,fps).

fray
24th May 2005, 19:44
ffdshow decodes the video fine - just install a recent version and let it handle the decoding. Then instead of AviSource(...) use DirectShowSource(...,fps).

This works a bit better. I loaded (FFDSHOW 2005-04-06.)
I can now access the first image and in
virtualdub move the slider to see other single frames.

But nothing else: When I press play in virtualdub or use it
as a frame server to feed an mpeg-encoder I only get the first
frame...

I tried

DirectShowSource("c:\casio.avi",30)

as the source is 30 fps.