Strange Pixels when preview is small for Directshow TV

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
pjsteele
Blank Cone
Blank Cone
Posts: 27
Joined: 20 Mar 2008 15:53

Strange Pixels when preview is small for Directshow TV

Postby pjsteele » 13 May 2008 22:15

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>


VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Strange Pixels when preview is small for Directshow TV

Postby VLC_help » 14 May 2008 14:50

Does this happen with all video output modules (Direct3d, openGL, directx)?

pjsteele
Blank Cone
Blank Cone
Posts: 27
Joined: 20 Mar 2008 15:53

Re: Strange Pixels when preview is small for Directshow TV

Postby pjsteele » 15 May 2008 16:40

It is fine with OpenGL

Thanks!


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 49 guests