[MPlayer-users] RE: Re: black screen with ffmpeg + sdl

rpolach at atlas.cz rpolach at atlas.cz
Wed Feb 6 12:52:01 CET 2002


It seems to be problem of sdl, not mplayer,
because even xine and xmms-avi/avifile has this
black screen...

Has anybody the same problem with SDL? (1.2.2, mandrake's 8.1 default)
or using the same and have no problems?

> >   If I play an avi with -vm -vo sdl -vc odivx or ffdivx,
> >   I get black screen with small green rectangle on 
> >   upper-left corner ("Planar YV12" is used)
> >   But if I play it with -vc divx or divx4, 
> >   everything is OK (and "Packed YUY2" is used).
> >   On all cases, sdl was using x11 output.
> >   Is it a problem with SDL? Could it accept YV12?
> >   Some time ago, I was using mplayer 0.50 and I have had
> >   NO problems with this, but may be I was using 
> >   an earlier version of sdl...
> 
> 
> Mandrake 8.1 (kernel 2.4.8-26mdk, X 4.1.0),
> GenuineIntel Celeron (Mendocino) 333MHz 128 KB cache,
> 128MB SDRAM, ATI Rage 128 AGP, SBLive! Value
> 
> Two -v outputs for -vc divx4 AND -vc ffdivx:
> 
> ======= -framedrop -vm -vo sdl -vc divx4 --> OK! =======
> 
> CPU vendor name: GenuineIntel  max cpuid level: 2
> CPU: Intel Celeron A Mendocino/Pentium II Dixon (Type: 6, Stepping: 0)
> CPUflags: Type: 6 MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
> Compiled for x86 CPU with features: MMX
> Reading /root/.mplayer/codecs.conf: can't open '/root/.mplayer/codecs.conf': No such file or directory
> Reading /usr/local/share/mplayer/codecs.conf: 26 audio & 70 video codecs
> CommandLine: '-framedrop' '-v' '-vc' 'divx4' '-vo' 'sdl' '-vm' '/mnt/cdrom2/aaaaa.avi'
> num_filenames: 1
> get_path('font/font.desc') -> '/root/.mplayer/font/font.desc'
> font: can't open file: /root/.mplayer/font/font.desc
> Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206 chars)
> Using Linux's hardware RTC timing (1024Hz)
> Playing /mnt/cdrom2/aaaaa.avi
> get_path('sub/') -> '/root/.mplayer/sub/'
> Not an URL!
> File size is 735295488 bytes
> Detected AVI file format!
> ======= AVI Header =======
> us/frame: 41708  (fps=23.976)
> max bytes/sec: 0
> padding: 0
> MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
> frames  total: 126571   initial: 0
> streams: 2
> Suggested BufferSize: 0
> Size:  512 x 384
> ==> Found video stream: 0
> ======= STREAM Header =======
> Type: vids   FCC: div3 (33766964)
> Flags: 0
> Priority: 0   Language: 0
> InitialFrames: 0
> Rate: 23976/1000 = 23.976
> Start: 0   Len: 126571
> Suggested BufferSize: 70986
> Quality 10000
> Sample size: 0
> found 'bih', 40 bytes of 40
> ======= VIDEO Format ======
>   biSize 40
>   biWidth 512
>   biHeight 384
>   biPlanes 1
>   biBitCount 24
>   biCompression 861292868='DIV3'
>   biSizeImage 589824
> ===========================
> Regenerating keyframe table for DIVX 3 video
> ==> Found audio stream: 1
> ======= STREAM Header =======
> Type: auds   FCC:  (0)
> Flags: 0
> Priority: 0   Language: 0
> InitialFrames: 1
> Rate: 48000/1152 = 41.667
> Start: 0   Len: 219959
> Suggested BufferSize: 384
> Quality -1
> Sample size: 0
> found 'wf', 30 bytes of 20
> ======= WAVE Format =======
> Format Tag: 85 (0x55)
> Channels: 2
> Samplerate: 48000
> avg byte/sec: 15999
> Block align: 1152
> bits/sample: 0
> cbSize: 12
> Software  : Nandub v1.0rc2
> Name      : aaaaa bbbbbb
> Title     : aaaaa bbbbbb
> Author    : cccc
> Copyright : cccc
> Comment   : cccc
> Found movie at 0x280C - 0x2B7F16CA
> Reading INDEX block, 346530 chunks for 126571 frames
> AVI index offset: 10248
> Auto-selected AVI audio ID = 1
> Auto-selected AVI video ID = 0
> AVI: Searching for audio stream (id:1)
> AVI video length=726746743
> VIDEO:  [DIV3]  512x384  24bpp  23.98 fps  1101.3 kbps (134.4 kbyte/s)
> [V] filefmt:3  fourcc:0x33564944  size:512x384  fps:23.98  ftime:=0.0417
> Clip info: 
>  Name: aaaaa bbbbbb
>  Author: cccc
>  Copyright: cccc
>  Comments: cccc
>  Encoder: Nandub v1.0rc2
> Detected audio codec: [mp3] drv:1 (MPEG layer-2, layer-3)
> Initializing audio codec...
> dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer
> mp3lib: Processor ID: 660
> mp3lib: Using Pentium-MMX optimized decore.
> AUDIO: srate=48000  chans=2  bps=2  sfmt=0x10  ratio: 16000->192000
> Forcing video codec: [divx4] drv:7 prio:0 (DivX4Linux (MPEG-4 v2,v3))
> DivX4Linux video codec
> INFO: OpenDivX video codec init OK!
> Movie-Aspect is undefined - no prescaling applied.
> VO: [sdl] 512x384 => 512x384 Packed YUY2 vm 
> VO: Description: SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
> VO: Author: Ryan C. Gordon <icculus at lokigames.com>, Felix Buenemann <atmosfear at users.sourceforge.net>
> video_out->init(512x384->512x384,flags=2,'MPlayer',0x32595559)
> SDL: Using 0x32595559 (YUY2) image format
> SDL: deactivating XScreensaver/DPMS
> SDL: X11 Resolution 1024x768
> SDL: Using driver: x11
> SDL: using hardware-surface
> SDL: setting zoomed fullscreen with modeswitching
> INFO: Video OUT driver init OK!
> AO: [oss] 48000Hz Stereo Signed 16-bit (Little-Endian)
> AO: Description: OSS/ioctl audio output
> AO: Author: A'rpi
> ao2: 48000 Hz  2 chans  Signed 16-bit (Little-Endian)
> audio_setup: using '/dev/dsp' dsp device
> audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: Signed 16-bit (Little-Endian))
> audio_setup: using 2 channels (requested: 2)
> audio_setup: using 48000 Hz samplerate (requested: 48000)
> audio_setup: frags:  16/16  (4096 bytes/frag)  free:  65536
> Start playing...
> Using MMX Optimized OnScreenDisplay
> A:   0.1 V:   0.0 A-V:  0.093 ct:  0.000    1/  1   0%  0%  0.0% 0 0 0%
> ..
> 
> 
> 
> 
> 
> 
> ======= -framedrop -vm -vo sdl -vc ffdivx --> BLACK SCREEN WITH SMALL GREEN RECTANGLE! =======
> 
> CPU vendor name: GenuineIntel  max cpuid level: 2
> CPU: Intel Celeron A Mendocino/Pentium II Dixon (Type: 6, Stepping: 0)
> CPUflags: Type: 6 MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
> Compiled for x86 CPU with features: MMX
> Reading /root/.mplayer/codecs.conf: can't open '/root/.mplayer/codecs.conf': No such file or directory
> Reading /usr/local/share/mplayer/codecs.conf: 26 audio & 70 video codecs
> CommandLine: '-framedrop' '-v' '-vc' 'ffdivx' '-vo' 'sdl' '-vm' '/mnt/cdrom2/aaaaa.avi'
> num_filenames: 1
> get_path('font/font.desc') -> '/root/.mplayer/font/font.desc'
> font: can't open file: /root/.mplayer/font/font.desc
> Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206 chars)
> Using Linux's hardware RTC timing (1024Hz)
> Playing /mnt/cdrom2/aaaaa.avi
> get_path('sub/') -> '/root/.mplayer/sub/'
> Not an URL!
> File size is 735295488 bytes
> Detected AVI file format!
> ======= AVI Header =======
> us/frame: 41708  (fps=23.976)
> max bytes/sec: 0
> padding: 0
> MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
> frames  total: 126571   initial: 0
> streams: 2
> Suggested BufferSize: 0
> Size:  512 x 384
> ==> Found video stream: 0
> ======= STREAM Header =======
> Type: vids   FCC: div3 (33766964)
> Flags: 0
> Priority: 0   Language: 0
> InitialFrames: 0
> Rate: 23976/1000 = 23.976
> Start: 0   Len: 126571
> Suggested BufferSize: 70986
> Quality 10000
> Sample size: 0
> found 'bih', 40 bytes of 40
> ======= VIDEO Format ======
>   biSize 40
>   biWidth 512
>   biHeight 384
>   biPlanes 1
>   biBitCount 24
>   biCompression 861292868='DIV3'
>   biSizeImage 589824
> ===========================
> Regenerating keyframe table for DIVX 3 video
> ==> Found audio stream: 1
> ======= STREAM Header =======
> Type: auds   FCC:  (0)
> Flags: 0
> Priority: 0   Language: 0
> InitialFrames: 1
> Rate: 48000/1152 = 41.667
> Start: 0   Len: 219959
> Suggested BufferSize: 384
> Quality -1
> Sample size: 0
> found 'wf', 30 bytes of 20
> ======= WAVE Format =======
> Format Tag: 85 (0x55)
> Channels: 2
> Samplerate: 48000
> avg byte/sec: 15999
> Block align: 1152
> bits/sample: 0
> cbSize: 12
> Software  : Nandub v1.0rc2
> Name      : aaaaa bbbbbb
> Title     : aaaaa bbbbbb
> Author    : cccc
> Copyright : cccc
> Comment   : cccc
> Found movie at 0x280C - 0x2B7F16CA
> Reading INDEX block, 346530 chunks for 126571 frames
> AVI index offset: 10248
> Auto-selected AVI audio ID = 1
> Auto-selected AVI video ID = 0
> AVI: Searching for audio stream (id:1)
> AVI video length=726746743
> VIDEO:  [DIV3]  512x384  24bpp  23.98 fps  1101.3 kbps (134.4 kbyte/s)
> [V] filefmt:3  fourcc:0x33564944  size:512x384  fps:23.98  ftime:=0.0417
> Clip info: 
>  Name: aaaaa bbbbbb
>  Author: cccc
>  Copyright: cccc
>  Comments: cccc
>  Encoder: Nandub v1.0rc2
> Detected audio codec: [mp3] drv:1 (MPEG layer-2, layer-3)
> Initializing audio codec...
> dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer
> mp3lib: Processor ID: 660
> mp3lib: Using Pentium-MMX optimized decore.
> AUDIO: srate=48000  chans=2  bps=2  sfmt=0x10  ratio: 16000->192000
> Forcing video codec: [ffdivx] drv:5 prio:0 (FFmpeg DivX ;-) (MS MPEG-4 v3))
> FFmpeg's libavcodec video codec
> INFO: libavcodec init OK!
> Movie-Aspect is undefined - no prescaling applied.
> VO: [sdl] 512x384 => 512x384 Planar YV12 vm 
> VO: Description: SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
> VO: Author: Ryan C. Gordon <icculus at lokigames.com>, Felix Buenemann <atmosfear at users.sourceforge.net>
> video_out->init(512x384->512x384,flags=2,'MPlayer',0x32315659)
> SDL: Using 0x32315659 (YV12) image format
> SDL: deactivating XScreensaver/DPMS
> SDL: X11 Resolution 1024x768
> SDL: Using driver: x11
> SDL: using hardware-surface
> SDL: setting zoomed fullscreen with modeswitching
> INFO: Video OUT driver init OK!
> AO: [oss] 48000Hz Stereo Signed 16-bit (Little-Endian)
> AO: Description: OSS/ioctl audio output
> AO: Author: A'rpi
> ao2: 48000 Hz  2 chans  Signed 16-bit (Little-Endian)
> audio_setup: using '/dev/dsp' dsp device
> audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: Signed 16-bit (Little-Endian))
> audio_setup: using 2 channels (requested: 2)
> audio_setup: using 48000 Hz samplerate (requested: 48000)
> audio_setup: frags:  16/16  (4096 bytes/frag)  free:  65536
> Start playing...
> Using MMX Optimized OnScreenDisplay
> A:   0.1 V:   0.0 A-V:  0.077 ct:  0.000    1/  1   0%  0%  0.0% 0 0 0%
> ..
> 
 




More information about the MPlayer-users mailing list