I have connected to my pc 2 TV usb device How to switch to get video of both source
I have reached to switch between 2 sources but I have problem in switching sometimes it gets black screen
Please help me urgently
Can you clarify what you want to do?
How do you switch from the 2 sources? The best way is to have a distinct graph for each tuners...
Also, be warned that USB bus can have too limited bandwith for two tuners, especially with USB 1.0.
I have connected two usb tv tuner to my computer with 2 sources (2 endscopy)
I need to switch between 2 tv tuner to display one video at a time
I have problem in switching sometimes it gets black screen
Please advice what I should do?? what do you mean with distinct graph for each tuners...
Can you tell us what kind of hardware you use ?
Video capture has nothing to do with live tv broadcast capture...
My advise is to build two filter graphs for each tuners and play with the video renderers to only display the video you want.
For example, You can use the VMR9's IVMRWindowlessControl9.SetVideoPosition with an empty destination rectangle to disable the video rendering. You can also pause the filter graph you want to disable. A renderer in a paused graph don't refresh...
I use USB Tv Tuner connected with endoscopy
I define one as a public IGraphBuilder graphBuilder = null;
sorry I can't understand your advice Pls help me with more details
Why not something like that ?
IGraphBuilder graphBuilderTuner1 = null;
IGraphBuilder graphBuilderTuner2 = null;
BuildGraphForTuner1(); // Build a graph using tuner 1 and configure VMR9 on the display control
BuildGraphForTuner2(); // Build a graph using tuner 2 and configure VMR9 on the display control
if (displayTuner1ButNotTuner2 == true)
hr = (graphBuilderTuner1 as IMediaControl).Run();
hr = (graphBuilderTuner2 as IMediaControl).Pause();
hr = (graphBuilderTuner1 as IMediaControl).Pause();
hr = (graphBuilderTuner2 as IMediaControl).Run();
I use one IGraphBuilder graphBuilderTuner = null; for 2 USb Tv Tuner
is it cause problem of black screen??
I don't know. But it's not a very wise choice to use only one graph for two capture devices...