[MPlayer-users] Capturing from composite using a bktr card on OpenBSD

Edd Barrett vext01 at gmail.com
Mon Jan 9 22:40:19 CET 2012


Hi,

On 9 January 2012 20:43, Reimar Döffinger <Reimar.Doeffinger at gmx.de> wrote:
> On Mon, Jan 09, 2012 at 08:32:29PM +0000, Edd Barrett wrote:
>> Hi,
>>
>> On 9 January 2012 20:18, Reimar Döffinger <Reimar.Doeffinger at gmx.de> wrote:
>> > On Mon, Jan 09, 2012 at 03:58:23PM +0000, Edd Barrett wrote:
>> >> Hi,
>> >>
>> >> I am using mplayer in combination with a bktr card to play my old sega
>> >> megadrive. It works, but something is not quite right:
>> >>  - odd "scanlines" across picture.
>> >>  - colours are really intense and psychedelic.
>> >>
>> >> I am no expert in video, colour spaces, timings etc, so I can't
>> >> provide any decent insight as to why this happens, but I can provide a
>> >> couple of screenshots:
>> >>
>> >> http://imgur.com/a/7YqqP
>> >>
>> >> The first screenshot is supposed to have a blue background IIRC.
>> >
>> > How does that blue with the wrong colour compare to the blue that has
>> > the correct colour in the capture?
>>
>> A false green which should be blue is a blocky flickery green.
>
> Sorry, I meant what the "correct" blue value looks like compared to the
> blue that gets through correctly.
>
>> > How do you connect the capture card?
>>
>> I am using a sega megadrive composite cable; this exact one:
>> http://www.amazon.co.uk/Sega-Megadrive-II-cable-lead/dp/B00206LKR4/ref=sr_1_1?ie=UTF8&qid=1326140774&sr=8-1
>>
>> I plug this into the composite (input 0) of my bktr card, which is a:
>> bktr0 at pci3 dev 2 function 0 "Brooktree BT878" rev 0x02: apic 8 int 18
>> bktr0: Card has no configuration EEPROM. Cannot determine card make.
>> bktr0: IMS TV Turbo, Philips FR1236 NTSC FM tuner.
>>
>> Here it has guessed(?) that the card is NTSC, I think this is the
>> problem. The bktr(4) manual page has a kernel option "option
>> BKTR_OVERRIDE_CARD=nnn" which I can force to PAL perhaps?
>
> No idea about that, and I would have thought that getting that wrong
> would have more "serious" effects.
> Either way make sure to try -tv norm=PAL or similar stuff.
> And maybe adding -v will make MPlayer print some more useful
> information.

OK, annoyingly that switch is compile time, so i had to rebuild the
kernel. silly. Maybe I will fix that some time to be a runtime switch.

Anyway, after this, blues are fine! Now reds suck!
http://imgur.com/NFZ33

% mplayer -v -tv driver=bsdbt848:norm=PAL:saturation=0 -vf pp=lb tv://
MPlayer SVN-r33060 (C) 2000-2011 MPlayer Team
CPU vendor name: GenuineIntel  max cpuid level: 13
CPU: Intel(R) Core(TM)2 Duo CPU     E8400  @ 3.00GHz (Family: 6,
Model: 23, Stepping: 10)
extended cpuid-level: 8
extended cache-info: 402686016
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSSE3: 1
Compiled with runtime CPU detection.
get_path('codecs.conf') -> '/home/edd/.mplayer/codecs.conf'
Reading /home/edd/.mplayer/codecs.conf: Can't open
'/home/edd/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: Can't open
'/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/edd/.mplayer/fonts'
Configuration: --confdir=/etc/mplayer --mandir=/usr/local/man
--extra-cflags=-I/usr/local/include -I/usr/local/include/libpng
--extra-ldflags=-L/usr/local/lib --extra-libs-mplayer=-lrtunes
-lcrypto --disable-alsa --disable-arts --disable-esd
--disable-ossaudio --disable-sunaudio --disable-vidix --disable-select
--disable-libcdio --disable-libmpeg2-internal --disable-pulse
--disable-gui --disable-ffmpeg_a --enable-menu
--with-sdl-config=/usr/local/bin/sdl-config --disable-smb
--disable-liblzo --disable-nas --disable-caca --disable-langinfo
--disable-mad --disable-openal --disable-libdca --disable-liba52
--disable-libmpeg2 --disable-toolame --disable-win32dll --disable-ggi
--disable-libopencore_amrnb --disable-libopencore_amrwb
--disable-libopenjpeg --disable-mpg123 --disable-librtmp
--disable-faac --disable-faac-lavc --disable-faad --disable-theora
--disable-xvid --disable-xvid-lavc --disable-tremor
--disable-tremor-internal --enable-runtime-cpudetection
--disable-ssse3 --disable-aa --disable-jack
CommandLine: '-v' '-tv' 'driver=bsdbt848:norm=PAL:saturation=0' '-vf'
'pp=lb' 'tv://'
Using nanosleep() timing
get_path('input.conf') -> '/home/edd/.mplayer/input.conf'
Can't open input config file /home/edd/.mplayer/input.conf: No such
file or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 92 binds
get_path('.conf') -> '/home/edd/.mplayer/.conf'

Playing tv://.
get_path('sub/') -> '/home/edd/.mplayer/sub/'
STREAM: [tv] tv://
STREAM: Description: TV Input
STREAM: Author: Benjamin Zores, Albeu
STREAM: Comment:
TV file format detected.
Selected driver: bsdbt848
 name: Brooktree848 Support
 author: Charles Henrich
 comment: in development
Selected norm : PAL
Selected channel list: europe-east (including 133 channels)
Current frequency: 0 (0.000)
==> Found video stream: 0
START
[V] filefmt:9  fourcc:0x59565955  size:768x576  fps:25.000  ftime:=0.0400
get_path('sub/') -> '/home/edd/.mplayer/sub/'
X11 opening display: :0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0" => local display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
[VO_XV] Using Xv Adapter #0 (Intel(R) Textured Video)
[xv common] Drawing no colorkey.
[xv common] Maximum source image dimensions: 2048x2048
Opening video filter: [pp=lb]
[vo] query(Planar YV12) -> 3
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 768 x 576 (preferred colorspace: Packed UYVY)
[PP] Using external postprocessing filter, max q = 6.
Trying filter chain: pp vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale pp vo
VDec: using Packed UYVY as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (768x576->768x576,flags=0,'MPlayer',0x59565955)
[swscaler @ 0x20708c000] using unscaled uyvy422 -> yuv420p special converter
REQ: flags=0xC37  req=0x0
REQ: flags=0x437  req=0x0
VO: [xv] 768x576 => 768x576 Planar YV12
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x30323449 (I420) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x434d5658 (XVMC) planar
using Xvideo port 78 for hw scaling
Selected video codec: [rawuyvy] vfm: raw (RAW UYVY)
==========================================================================
Audio: no sound
Freeing 0 unused audio chunks.
Starting playback...
*** [scale] Exporting mp_image_t, 768x576x16bpp YUV packed, 884736 bytes
*** [pp] Allocating mp_image_t, 768x576x12bpp YUV planar, 663552 bytes
*** [vo] Allocating mp_image_t, 768x576x12bpp YUV planar, 663552 bytes
Unicode font: 5179 glyphs.
Unicode font: 5179 glyphs.
V:   0.0  57/ 57 ??% ??% ??,?% 0 0

Cheers

-- 
Best Regards
Edd Barrett

http://www.theunixzoo.co.uk


More information about the MPlayer-users mailing list