[MPlayer-users] Broken avi streams (?)

Yourself sl4rtyb4rtf4st at yahoo.gr
Mon Nov 4 00:27:06 CET 2002


Hi all. For the last day, i've been downloading a movie from direct
connect. I'm now at 75%. When i try to play the incomplete movie, if
i use the -idx switch, the indexing stops at 47%. Needless to say,
mplayer stops playback at 47%. 

In a desperate attempt to view the remaining movie, i used aviplay,
which started reconstructing the index, and some time later it said that
it found a broken avi stream and that is trying to fix it. After some
more time, it started playing, and indeed played all the 75%. 

I haven't tested what happens if I start playing with mplayer without
recostructing the index. (I guess it will stop again, as mencoder -ovc
copy blah,blah stopped there also).

Is there any way of reconstructing the index in broken avi streams? Jump
to the next key frame, or something? Is there any way of playing the
entire file with mplayer and seek in it?

the mplayer is MPlayer 0.90pre9. I don't think of it as being a bug,
rather a normal behaviour of mplayer which is less tolerant to some
errors. 

Anybody?


software:
-> Slackware 8.0
-> gcc version 2.95.3 20010315 (release)
-> GNU ld version 2.11.90.0.19 (with BFD 2.11.90.0.19)
-> GNU assembler 2.11.90.0.19
-> Linux 2.4.17
-> libc 2.2.3
-> XFree86 Version 4.1.0

hardware:
-> Athlon 800
-> nvidia geforce 3 ti 200
-> nv module 1.0.2802

I've included the 
mencoder -v -ovc copy -oac copy -o /dev/null incomplete.avi
output (i've chopped it a bit, it was 7MB with the position info lines)


-- 
                                     __   ___ 
.--.--.-----.--.--.----.-----.-----.|  |.'  _|
|  |  |  _  |  |  |   _|__ --|  -__||  ||   _|
|___  |_____|_____|__| |_____|_____||__||__|  
|_____|                                       
              
              
---[ Random fortune from definitions collection ]---
              
Creditor, n.:
	A man who has a better memory than a debtor.
-------------- next part --------------
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MEncoder 0.90pre9-2.95.3 (C) 2000-2002 Arpad Gereoffy (see DOCS!)

CPU: Advanced Micro Devices Athlon TB Thunderbird (Family: 6, Stepping: 2)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Reading /home/yourself/.mplayer/codecs.conf: can't open '/home/yourself/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: 38 audio & 110 video codecs
File not found: 'frameno.avi'
get_path('font/font.desc') -> '/home/yourself/.mplayer/font/font.desc'
Font /home/yourself/.mplayer/font/font.desc loaded successfully! (200 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Not an URL!
File size is 576984064 bytes
success: format: 0  data: 0x0 - 0x22641400
Detected AVI file format!
list_end=0x22A6
======= AVI Header =======
us/frame: 41708  (fps=23.976)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames  total: 172466   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  640 x 352
list_end=0x10F4
==> Found video stream: 0
======= STREAM Header =======
Type: vids   FCC: DIV3 (33564944)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 23976/1000 = 23.976
Start: 0   Len: 172466
Suggested BufferSize: 63831
Quality -1
Sample size: 0
found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 640
  biHeight 352
  biPlanes 1
  biBitCount 24
  biCompression 861292868='DIV3'
  biSizeImage 675840
===========================
Regenerating keyframe table for DIVX 3 video
list_end=0x219A
==> Found audio stream: 1
======= STREAM Header =======
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 1
Rate: 15963/1 = 15963.000
Start: 0   Len: 114825242
Suggested BufferSize: 7981
Quality 0
Sample size: 1
found 'wf', 50 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 44100
avg byte/sec: 15963
Block align: 1
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=417
mp3.nFramesPerBlock=1
mp3.nCodecDelay=1393
list_end=0x22A6
Broken chunk?  chunksize=1362  (id=JUNK)
list_end=0x2B8264C8
Found movie at 0x280C - 0x2B8264C8
stream_seek: WARNING! Can't seek to 0x2B8264C8 !
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video length=615130274
VIDEO:  [DIV3]  640x352  24bpp  23.98 fps  684.1 kbps (83.5 kbyte/s)
[V] filefmt:3  fourcc:0x33564944  size:640x352  fps:23.98  ftime:=0.0417
videocodec: framecopy (640x352 24bpp fourcc=33564944)
audiocodec: framecopy (format=55 chans=2 rate=44100 bits=0 bps=15963 sample=1)
Writing AVI header...
XXX initial  v_pts=0.000  a_pos=7981 (0.500) 
Pos:3376.3s  80950f (47%) 759fps Trem:   1min 694mb  A-V:0.042 [683:127] A/Vms 14/0 D/B/S 0/0/0 
stream_seek: WARNING! Can't seek to 0x23F3ED10 !
ds_fill_buffer: EOF reached (stream: audio)  
Pos:3376.5s  80955f (82%) 759fps Trem:   0min 395mb  A-V:0.042 [683:127] A/Vms 14/0 D/B/S 0/0/0 
ds_fill_buffer: EOF reached (stream: audio)  
Pos:3376.6s  80956f (82%) 759fps Trem:   0min 395mb  A-V:0.042 [683:127] A/Vms 14/0 D/B/S 0/0/0 
ds_fill_buffer: EOF reached (stream: audio)  
ds_fill_buffer: EOF reached (stream: video)  

Writing AVI index...
Fixup AVI header...

Video stream:  683.073 kbit/s  (85384 bps)  size: 288304326 bytes  3376.557 secs  80956 frames

Audio stream:  127.704 kbit/s  (15963 bps)  size: 53907255 bytes  3377.013 secs
DEMUXER: freeing demuxer at 0x83574f8  


More information about the MPlayer-users mailing list