[MPlayer-dev-eng] Re: v4l input broken since pre5 (partly fixed...)

Paul Ortyl ortylp at 3miasto.net
Fri Jun 21 14:11:16 CEST 2002


Hi,

The patch included below makes mplayer work with tv input again (after -pre5
changes).

It gives proper output with my bt848 (Zoltrix TV-Max) when 
	-tv on:driver=v4l:outfmt=yuy2
is given...

I tried to check what is actually happening when other "outfmt" values are
used -- there are "bluish people."..  The kernel driver accepts format
setting (no error, and later settings reading gives the proper format ID).  
Maybe v4l accepts it but is not actually reprogrammig the bt848 chip
properly???  I've got no idea...

The tv audio problem -- it also works for me (with -oac pcm) after
reenabling it in tv.c

I'm aware, that these "patches" are only dirty hacks, but they allow the
things to be done!!! (A simple video recorder...)  And many lusers would
appreciate (at least) working tv recording...



diff -ur main.orig/libmpdemux/tv.c main/libmpdemux/tv.c
--- main.orig/libmpdemux/tv.c   Thu May 23 16:53:11 2002
+++ main/libmpdemux/tv.c        Fri Jun 21 13:48:24 2002
@@ -295,6 +295,10 @@

 //    demuxer->seekable = 0;

+   sh_video->bih=malloc(sizeof(BITMAPINFOHEADER));
+   memset(sh_video->bih, 0, sizeof(BITMAPINFOHEADER));
+   sh_video->bih->biCompression=sh_video->format;
+
     /* here comes audio init */

     if (tv_param_noaudio == 0 && funcs->control(tvh->priv,
TVI_CONTROL_IS_AUDIO, 0) == TVI_CONTROL_T$


Regards,

	Paul

-- 
Paul Ortyl <mailto:ortylp at 3miasto.net>
  Technical University of Gdansk, Telecommunications Faculty
--




More information about the MPlayer-dev-eng mailing list