[MPlayer-users] Subtitles colors problem, ffmpeg problem and some questions

salvador salvador at inti.gov.ar
Tue Apr 23 14:58:02 CEST 2002


Hi!

I was using CVS snapshots and now that 0.90 pre1 is out and the site says
to report bugs ...

*******************************************************************************

1) Problem: Wrong subtitle colors.
Description: Subtitles looks just in black, not white or yellow with black
in borders, just black. They are quite hard to read.
In what case: MPEG2 streams extracted from a DVD, NOT if I read the DVD
directly.
Examples of fail:
mplayer -sid 0 MPEG2-file
play_title /dev/dvd 1 1 1 | mplayer -sid 0 -
Example of success: mplayer -sid 0 -dvd 1
BTW: How can I play a stream from stdin?
What system?: Debian GNU/Linux 3.0 (XFree86 4.1.0, gcc 2.95.4, glibc 2.2.5).

              If you need more info, ask me. It looks like a generic error.
Information about the stream:

stderr:
--------------------------------------------------------------------------------

MPlayer 0.90pre1.1-2.95.4 (C) 2000-2002 Arpad Gereoffy (see DOCS!)

CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with features: MMX MMX2 3DNow 3DNowEx SSE
Using Linux's hardware RTC timing (1024Hz)
Can't open input config file /root/.mplayer/input.conf : No such file or
directory
Falling back on default (hardcoded) config
Playing /home/salvador/Jurasic Park III/Pelicula.mpeg2
Can't open IFO file: No such file or directory
Detected MPEG-PS file format!
VIDEO:  MPEG2  720x480  (aspect 3)  29.97 fps  12250.0 kbps (1531.2 kbyte/s)

[V] filefmt:2  fourcc:0x10000002  size:720x480  fps:29.97  ftime:=0.0334
Detected audio codec: [a52] drv:14 (AC3-liba52)
Using SSE optimized IMDCT transform
AC3: 5.1 (3f+2r+lfe)  48000 Hz  448.0 kbit/s
Using MMX optimized resampler
AUDIO: srate=48000  chans=2  bps=2  sfmt=0x10  ratio: 56000->192000
==========================================================================
VDec: vo config request - 720 x 480, Mpeg PES
[PP] Sorry, postprocessing is not available
Couldn't find matching colorspace - retrying with -vop scale...
Sorry, selected video_out device is incompatible with this codec.
VDec: vo config request - 720 x 480, Planar YV12
[PP] Sorry, postprocessing is not available
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 720x480 => 854x480 Planar YV12
Detected video codec: [mpeg12] drv:1 prio:0 (MPEG 1 or 2)
==========================================================================
AO: [oss] 48000Hz Stereo Signed 16-bit (Little-Endian)
Start playing...
--------------------------------------------------------------------------------

stdout:
--------------------------------------------------------------------------------

CPU vendor name: AuthenticAMD  max cpuid level: 1
CPU: Advanced Micro Devices Athlon 4 PM Palomino/Athlon MP
Multiprocessor/Athlon XP eXtreme Performance (Type: 6, Stepping: 2)
extended cpuid-level: 8
Testing OS support for SSE... yes.
Testing OS support for SSE unmasked exceptions... yes.
Tests of OS support for SSE passed.
Reading /root/.mplayer/codecs.conf: can't open '/root/.mplayer/codecs.conf':
No such file or directory
Reading /usr/share/mplayer/codecs.conf: 31 audio & 81 video codecs
font: can't open file: /root/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Not an URL!
header block 1 size: 0
Selecting Audio Decoder: [liba52] AC3-liba52
vo: X11 running at 1024x768 with depth 24 and 32 bits/pixel (":0.0" => local
display)
Opening Video Decoder: [mpegpes] MPEG 1/2 Video passthrough
SwScale: -1 x -1
VDecoder init failed :(
Opening Video Decoder: [libmpeg2] MPEG 1/2 Video decoder v2.0
libmpeg2: Using MMXEXT for IDCT transform
libmpeg2: Using MMXEXT for motion compensation
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 60 for hw scaling
[xv] dcx: 10 dcy: 20 dx: 0 dy: 0 dw: 854 dh: 480
Disabling DPMS
stat: 1
ao2: 48000 Hz  2 chans  Signed 16-bit (Little-Endian)
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: 128/128  (1024 bytes/frag)  free: 131072
[xv] dcx: 10 dcy: 20 dx: 0 dy: 0 dw: 854 dh: 480

*** free_stream() called ***
Successfully enabled DPMS
--------------------------------------------------------------------------------

Another player (a less functional one ;-) defaults to readable colors
(white+black).
This is using mpeg12 video codec.

*******************************************************************************

2) Problem: ffmpeg12 video codec not working for DVD streams.
Description: If I try forcing ffmpeg12 it just crash.
The ffmpeg12 problem seems to be a stack corruption in fast_memcpy:

--------------------------------------------------------------------------------

*** [vo] Exporting mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
[xv] dcx: 10 dcy: 20 dx: 0 dy: 0 dw: 720 dh: 480
A:   2.1 V:   2.1 A-V: -0.002 ct: -0.074   52/ 52  15% 33%  1.8% 0 0 0%
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 3282)]
0x0808db5d in fast_memcpy ()
(gdb) backtrace
#0  0x0808db5d in fast_memcpy ()
#1  0x000001df in ?? ()
Cannot access memory at address 0x2a0
(gdb)
--------------------------------------------------------------------------------

I can reproduce it with all the DVDs I tried.

*******************************************************************************

3) Small problem: stdin stream doesn't support "seek", I think an option
like "stream without seek" could be used. In this case backward seeks are
disabled and forward seeks just works by read-and-discard as many bytes as
needed. Just an idea.

*******************************************************************************

4) Just a question: I can't scale any of my MPEG2 streams. Why? Should it
be implemented as a video filter that I can access from command line?
I was able to achieve it by modifying the sources, just tried:

    sh_video->vfilter=vf_open_filter(sh_video->vfilter,"scale","360:240");
    sh_video->vfilter=append_filters(sh_video->vfilter);

After the expand call. Am I missing something?
Then I added a command line option to set a variable and made it
configurable:

    if(scale_options!=NULL) {

sh_video->vfilter=vf_open_filter(sh_video->vfilter,"scale",scale_options);
       sh_video->vfilter=append_filters(sh_video->vfilter);
    }

I saw many limitations but I was able to scale down the stream as I wanted.

*******************************************************************************

5) Another question: I tried to compress using mencoder in 3 passes. The
first compressed the audio and gave me a good approximation for the bitrate
(aprox. 870 kbits/s), so then I made the pass 1 and pass 2, but I got a
different bit rate, 662.77.
I used the following options:

mencoder Pelicula.mpeg2 -divx4opts br=870:key=250:q=5 -oac copy -o JIII.avi
-scale 512:288

What's wrong? What should I use?
Should I use br=1030 because the audio is aprox. 160 kb/s?

SET

--
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Visit my home page: http://welcome.to/SetSoft or
http://www.geocities.com/SiliconValley/Vista/6552/
Alternative e-mail: set at computer.org set at ieee.org
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013






More information about the MPlayer-users mailing list