[MPlayer-dev-eng] DV AVI handling in mplayer

Albina Veratrina olonho at hotmail.com
Fri Jan 3 11:19:54 CET 2003


I captured some video from my new shining Canon ZR50MC and tried to view it 
with MPlayer, and to my bitter disappointment it wasn't able to replay or 
encode it.

mplayer -v -v says something like this:

List_end=0x7ECC  pos=0xAC  chunksize=0x20  next=0xCC
CHUNK indx  len=32248
list_end=0x7ECC  pos=0xD4  chunksize=0x7DF8  next=0x7ECC
LIST odml  len=260
list_end=0x7FD8
CHUNK dmlh  len=248
list_end=0x7FD8  pos=0x7EE0  chunksize=0xF8  next=0x7FD8
CHUNK JUNK  len=20
list_end=0x7FD8  pos=0x7FE0  chunksize=0x14  next=0x7FF4
Broken chunk?  chunksize=20  (id=JUNK)
CHUNK JUNK  len=20
list_end=0x0  pos=0x7FE0  chunksize=0x14  next=0x7FF4
LIST movi  len=1069621252
list_end=0x3FC1A000
Found movie at 0x8000 - 0x3FC1A000
CACHE2_SEEK: 0x0 <= 0x0 (0x8000) <= 0x8000
Unknown chunk: ix00 (30307869)
Unknown chunk: 00__ (5F5F3030)
Unknown chunk: 00__ (5F5F3030)


So after investigation I found following (I'm not video expert by any mean, 
so if I'll say anything stupid, ignore it):
In DV files audio and video streams could be stored together, as described
here: 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dx8_c/directx_cpp/htm/typesofdvavifiles.asp

What it means in stream handling:
In void read_avi_header(demuxer_t *demuxer,int index_mode) I put debug 
printouts
to case ckidSTREAMFORMAT: {      // read 'strf'
      printf("last_fccType=%x streamtypeVIDEO=%x streamtypeAUDIO=%x\n",
	     last_fccType,
	     streamtypeVIDEO,
	     streamtypeAUDIO);
and here's what I've seen:
last_fccType=73766169[iavs] streamtypeVIDEO=73646976[vids] 
streamtypeAUDIO=7364756[auds]
But current MPlayer code just couldn't handle cases where last_fccType isn't 
one of
audio or video streams, so it fails miserably.
Could you guys somehow fix it?

  Nikolay.


_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail



More information about the MPlayer-dev-eng mailing list