Switch between 2 Tv Tuner

2014-02-04
2014-02-10
  • Mariam Louis
    Mariam Louis
    2014-02-04

    Dear Sir
    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

     
  • Eric
    Eric
    2014-02-04

    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.

     
  • Mariam Louis
    Mariam Louis
    2014-02-05

    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...

    Thanks

     
    • Eric
      Eric
      2014-02-06

      Can you tell us what kind of hardware you use ?
      Video capture has nothing to do with live tv broadcast capture...

       
  • Eric
    Eric
    2014-02-06

    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...

     
  • Mariam Louis
    Mariam Louis
    2014-02-06

    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

     
    • Eric
      Eric
      2014-02-07

      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();
      }
      else
      {
      hr = (graphBuilderTuner1 as IMediaControl).Pause();
      hr = (graphBuilderTuner2 as IMediaControl).Run();
      }

       
  • Mariam Louis
    Mariam Louis
    2014-02-09

    I use one IGraphBuilder graphBuilderTuner = null; for 2 USb Tv Tuner
    is it cause problem of black screen??

     
    • Eric
      Eric
      2014-02-10

      I don't know. But it's not a very wise choice to use only one graph for two capture devices...