Opened 8 years ago

Closed 8 years ago

#1946 closed defect (fixed)

enable -cache option will result a wrong ID_CHAPTERS

Reported by: xuzhen666@… Owned by: reimar
Priority: normal Component: ao
Version: HEAD Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Description

when I add -cache option to command line, mplayer will report ID_CHAPTERS=32767

example:
<<<<<<<<<<<<< without -cache >>>>>>>>>>>>

$ mplayer -identify ed.avi
MPlayer SVN-r33801-4.6.1 (C) 2000-2011 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing ed.avi.
AVI file format detected.
ID_VIDEO_ID=0
[aviheader] Video stream found, -vid 0
ID_AUDIO_ID=1
[aviheader] Audio stream found, -aid 1
VIDEO: [VP6F] 512x384 24bpp 30.001 fps 445.2 kbps (54.3 kbyte/s)
Load subtitles in ./
ID_FILENAME=ed.avi
ID_DEMUXER=avi
ID_VIDEO_FORMAT=VP6F
ID_VIDEO_BITRATE=445232
ID_VIDEO_WIDTH=512
ID_VIDEO_HEIGHT=384
ID_VIDEO_FPS=30.001
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=85
ID_AUDIO_BITRATE=122168
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_START_TIME=0.00
ID_LENGTH=131.10
ID_SEEKABLE=1
ID_CHAPTERS=0
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] This driver only supports the 3Dfx Banshee, Voodoo3 and Voodoo 5.
[VO_3DFX] Unable to open /dev/3dfx.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffvp6f] vfm: ffmpeg (FFmpeg VP6 Flash)
==========================================================================
ID_VIDEO_CODEC=ffvp6f
==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatle, 122.2 kbit/4.33% (ratio: 15271->352800)
ID_AUDIO_BITRATE=122168
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
waitpid(): No child processes
AO: [pulse] Init failed: Internal error
Failed to initialize audio driver 'pulse'
AO: [alsa] 48000Hz 2ch floatle (4 bytes per sample)
ID_AUDIO_CODEC=ffmp3float
Starting playback...

<<<<<<<<<<<<< with -cache >>>>>>>>>>>>

$ mplayer -cache 100 -identify ed.avi
MPlayer SVN-r33801-4.6.1 (C) 2000-2011 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing ed.avi.
Cache fill: 0.00% (0 bytes)

AVI file format detected.
ID_VIDEO_ID=0
[aviheader] Video stream found, -vid 0
ID_AUDIO_ID=1
[aviheader] Audio stream found, -aid 1
VIDEO: [VP6F] 512x384 24bpp 30.001 fps 445.2 kbps (54.3 kbyte/s)
Load subtitles in ./
ID_FILENAME=ed.avi
ID_DEMUXER=avi
ID_VIDEO_FORMAT=VP6F
ID_VIDEO_BITRATE=445232
ID_VIDEO_WIDTH=512
ID_VIDEO_HEIGHT=384
ID_VIDEO_FPS=30.001
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=85
ID_AUDIO_BITRATE=122168
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_START_TIME=0.00
ID_LENGTH=131.10
ID_SEEKABLE=1
Cache not responding!
ID_CHAPTERS=32767
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] This driver only supports the 3Dfx Banshee, Voodoo3 and Voodoo 5.
[VO_3DFX] Unable to open /dev/3dfx.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffvp6f] vfm: ffmpeg (FFmpeg VP6 Flash)
==========================================================================
ID_VIDEO_CODEC=ffvp6f
==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatle, 122.2 kbit/4.33% (ratio: 15271->352800)
ID_AUDIO_BITRATE=122168
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
waitpid(): No child processes
AO: [pulse] Init failed: Internal error
Failed to initialize audio driver 'pulse'
AO: [alsa] 48000Hz 2ch floatle (4 bytes per sample)
ID_AUDIO_CODEC=ffmp3float
Starting playback...

Change History (1)

comment:1 Changed 8 years ago by reimar

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in SVN r33802.
Would only happen with files that have no chapters, the value would be correct otherwise.

Note: See TracTickets for help on using tickets.