[MPlayer-users] [BUG] Cannot seek in avi file

Giacomo Comes comes at naic.edu
Tue Oct 5 00:43:08 CEST 2004


I have a problem when I create an avi file in this way:

mencoder -ovc copy -o test.avi dvd://1 -aid 128 -oac lavc -lavcopts acodec=mp2:abitrate=224

When I play the file test.avi with mplayer it plays fine but if I try to
seek mplayer exit with this error:

SEEK: i=10361 (max:10382) dpos=4055520 (wanted:4055520)  %  1.6% 0 0 79%
SEEK: idx=10361  (a:10361 v:10382)  v.skip=15  a.skip=0/0.000
ds_fill_buffer: EOF reached (stream: audio)
ds_fill_buffer: EOF reached (stream: video)  2/4342   0%  0%  0.0% 0 0 0%
EOF code: 1  44.8 A-V:  0.079 ct:  0.011  4342/4342   0%  0%  0.0% 0 0 0%

Uninit audio filters...
[libaf] Removing filter dummy
uninit audio: mp3lib
uninit video: libmpeg2
DEMUXER: freeing demuxer at 0x8951800
vo: uninit ...

Exiting... (End of file)

The problem is related to the copy of the video mpeg stream, not with the
mp2 audio coding. Using this command:

mencoder -ovc copy -o test.avi dvd://1 -aid 128 -oac copy

and playing test.avi I have the following error when I try to seek:

SEEK: i=3746 (max:3766) dpos=8092000 (wanted:8110666)   0%  1.7% 0 0 86%
SEEK: idx=3746  (a:3746 v:3766)  v.skip=19  a.skip=18666/0.000
ds_fill_buffer: EOF reached (stream: audio)
a52: CRC check failed!
ds_fill_buffer: EOF reached (stream: audio)
ds_fill_buffer: EOF reached (stream: video)  7/3477   0%  0%  0.0% 0 0 0%
EOF code: 1  44.8 A-V:  0.045 ct:  0.008  3477/3477   0%  0%  0.0% 0 0 0%

Uninit audio filters...
[libaf] Removing filter dummy
uninit audio: liba52
uninit video: libmpeg2
DEMUXER: freeing demuxer at 0x8951800
vo: uninit ...

Exiting... (End of file)

In both cases I can fix the seek problem with:

mencoder -oac copy -ovc copy -noidx -o new.avi test.avi

Now I can seek in new.avi, but there is a strange effect
(mplayer seek to a non keyframe).

My question is: is this a feature/bug or it's a problem 
of my system?

MPlayer 1.0pre5
SUSE 9.0
gcc 3.3.1
kernel 2.4.21

Thanks for any help/suggestion

Giacomo




More information about the MPlayer-users mailing list