[mythtv] mythvideo: can see the myth theme when playing a video16:9

Pascal Favre Pascal.Favre at gmx.net
Mon Aug 15 22:01:40 UTC 2005

Thanks Keith for your great explanation.

The following works great on a PAL television:
-vf scale=720:-2,expand=720:576:::0

To test the xv driver I upgraded from 0.3.6u to 0.3.7d (0.10.5).
I just want to mention that I had to remove the -zoom or else the movie gets very jerky.
This bottered me all the time when I tried the xv driver previously. But now it works great.

Also I had to specify the -fs when using the xv driver or else the picture is moved 6-8pix to the left and I see the myth theme on 
the right.
Now it centers correctly. With the x11 driver it didn't make a difference.

Before I used to vo_fullscreen to toggle from fullscreen to the original size, especially for lower-res movies. Is there a 
possibility to disable/activate the filters on the fly ?


++ mplayer -vo xv -alang de -cache 8192 -ao sdl -framedrop -quiet -fs -vf scale=720:-2,expand=720:576:::0 abc.vob
MPlayer 1.0pre7-SUSE-9.3-i686-Packman-3.3.5 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 7)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.

Can't init input joystick
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such device
Setting up LIRC support...
Playing abc.vob.
MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  9800.0 kbps (1225.0 kbyte/s)
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
AC3: 5.1 (3f+2r+lfe)  48000 Hz  384.0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
vo: X11 running at 720x576 with depth 24 and 32 bpp (":1" => local display)
Opening video filter: [expand w=720 h=576 osd=0]
Expand: 720 x 576, -1 ; -1  (-1=autodetect) osd: 0
Opening video filter: [scale w=720 h=-2]
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG-1 or 2 (libmpeg2))
Checking audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
AF_pre: 48000Hz/2ch/s16le
[AO SDL] Samplerate: 48000Hz Channels: Stereo Format s16le
AO: [sdl] 48000Hz 2ch s16le (2 bps)
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
Starting playback...
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 7 -> 6
SwScaler: reducing / aligning filtersize 7 -> 6

SwScaler: BICUBIC scaler, from Planar YV12 to Planar YV12 using MMX2
VO: [xv] 720x576 => 721x576 Planar YV12  [fs] [zoom]

Exiting... (Quit)


----- Original Message ----- 
From: "Keith C" <mythtv at keithandjill.com>
To: "Development of mythtv" <mythtv-dev at mythtv.org>
Sent: Monday, August 15, 2005 6:36 PM
Subject: Re: [mythtv] mythvideo: can see the myth theme when playing a video16:9

>> In Mythvideo when I play 16:9 DVD-VOBs with the following command:
>> mplayer -vo x11 -alang de -cache 8192 -ao sdl -really-quiet -fs -
>> zoom "$1"
>> I see the myth theme at the top and bottom of the screen.
> I prefer to put all my options in the ~/.mplayer/config file and then
> leaving the MythVideo player call at "mplayer %s".  Makes it far
> easier to keep cleaned up.
> My guess here is that the "-vo x11" is at fault.  The x11 video out
> might not work as well as the xv out that most of us use.
> And now, I give up one of my most precious secrets, how to get
> mplayer to scale video to fit inside an over-scanned output.  You
> could easily modify this line to scale video to fit inside whatever
> window size you want :
> vf = pp=de,scale=1170:-2,expand=1280:720:26::0
> This is a video filter:
>     pp=de - denoise filter (i've always had it, assuming it was good)
>     scale=1170:-2 - this scales the original video to 1170 pixels
> wide (what actually fits in my over-scanned tv screen), and the -2
> scales the vertical size to keep the original aspect ratio
>     expand=1280:720:26::0 - this puts black borders around the video
> to fit the 1280x720 screen size and positions the newly scaled video
> at 26 pixels in from the left and centers the vertical.
> I have noticed a bit of a change in the playback quality/speed, but
> it's still very watchable.  A better solution for me would likely be
> to force the xserver to only use the visible part of the screen, but
> I'm not good enough at modelines to get that working.
> Keith C


mythtv-dev mailing list
mythtv-dev at mythtv.org

More information about the mythtv-dev mailing list