Page 1 of 1

Strange Pixels when preview is small for Directshow TV

Posted: 13 May 2008 22:15
by pjsteele
When I shrink the output window smaller than the Direct show size I get weird "static" Attached is an example.

Image

I am using the activeX cointrol but this happens in the player too. Should I do something different when viewing> i.e. Set the video output size first?

Attached is the javascript used to render the above file


<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Sample</title>
</head>
<body id="bdyMain" style="margin:0; height:100%; width:100%" background="#000000">

<object id="objVLC" style="width:100%; height:100%"
classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"
codebase="http://downloads.videolan.org/pub/video ... /axvlc.cab" >
<param name="Src" value="" />
<param name="ShowDisplay" value="True" />
<param name="AutoLoop" value="False" />
<param name="AutoPlay" value="False" />
</object>

<script language="javascript" type="text/javascript">

// Pass an array of parameters to the VLC control
var options = new Array;
options[0] = ":dshow-vdev=PCTV USB2 2821 Capture";
options[1] = ":dshow-adev=PCTV USB2 2821 Audio";
options[2] = ":dshow-size=640x480";
options[3] = ":dshow-tuner-channel=31";
options[4] = ":dshow-tuner-country=1";
options[5] = ":dshow-tuner-input=1";

// Create a custom aspect ratio to fill the entire screen
var height = document.getElementById("bdyMain").offsetHeight
var width = document.getElementById("bdyMain").offsetWidth
options[6] = ":aspect-ratio=" + width + ":" + height;

document.getElementById("objVLC").playlist.add("dshow://", "TV", options);
document.getElementById("objVLC").playlist.play();

</script>
</body>
</html>


Re: Strange Pixels when preview is small for Directshow TV

Posted: 14 May 2008 14:50
by VLC_help
Does this happen with all video output modules (Direct3d, openGL, directx)?

Re: Strange Pixels when preview is small for Directshow TV

Posted: 15 May 2008 16:40
by pjsteele
It is fine with OpenGL

Thanks!