We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpVideo Capture,  Movie Playback,  Vision Libraries › switching TV-tunner channels with JMyron
Page Index Toggle Pages: 1
switching TV-tunner channels with JMyron? (Read 1261 times)
switching TV-tunner channels with JMyron?
Feb 28th, 2007, 2:30am
 
Hello, I am using JMyron lib ver 0025 for capturing video under winXp without any serious difficulties.

..I have realized that TV-signal from pc tunner is very interesting source of data for my latest experiment. But there comes a question..

I would like to set-up processing to drive a tuner-card for switching through the tv channels (or even to change the frequencies). Is there any possibility to do this? Or more precisely - is there any painless way to do this? I am afraid that the quicktime capturer* is not capable of doing such like things directly. (and im not such a programmer to understand drivers stuff, etc.)  

I have searched a whole forum and found only description of selecting an alternative source from card.. i mean a composite or s-video. It sounds similar to me, but the discussion is from alpha release and doesnt count with JMyron library at all.

So, if anyone has any thought.. it will really help me!

thanks, kof

--------------------------------------------------------
*- Im not even sure if the 0025 using qt capture?
Re: switching TV-tunner channels with JMyron?
Reply #1 - Feb 28th, 2007, 5:44pm
 
unless there is some sort of industry standard for the implementation of this sort of thing on a tv tuner card, you are probably going to have to go digging around in drivers and such.

i am afraid it's going to be particular to the make and model of the tuner card you are using in your experiment. i could be wrong, though.. for all i know, perhaps tv tuner cards have universalized over the years.
Re: switching TV-tunner channels with JMyron?
Reply #2 - Jul 19th, 2007, 2:33am
 
I'm not sure why you're using JMyron to tackle this, since it doesn't seem like you need to really use any ComputerVision to do things like change the channel or turn the TV on/off.  Unless you're analyzing the contents of each channel to search for a certain TV show or something...

You could possibly eliminate JMyron and use the built in libraries if this is more what you're trying to do.

Here's the reference page for switching your input source:
http://processing.org/reference/libraries/video/Capture_source_.html
Re: switching TV-tunner channels with JMyron?
Reply #3 - Aug 15th, 2007, 4:54am
 
If you switch to using regular Video libraries (as opposed to JMyron), it appears that:

Code:

cam = new Capture(this, width, height, "device name", fps);
cam.source(TUNER);


...might HONOR your tuner software channel settings (sticky channel).  I can't run both due to processing power but I can start one up and change channels then quit, then processing sees the new channel.

If your machine is fast enough to run both concurrently (and they don't conflict each other, perhaps you can change the channel out from under processing.

With JMryon there seems no way to do any of this at this time, and it only picks your first device in the list, and defaults to the composite for me (luckily).
Re: switching TV-tunner channels with JMyron?
Reply #4 - Aug 16th, 2007, 5:15pm
 
i think you should look for a command line utility.
something similar to http://tvremote.sourceforge.net/ (linux only)

an obscure thing i found: the java tv api, dunno if that can work, anyway, here's the link: http://www.sun.com/software/communitysource/javatv/download.xml
Page Index Toggle Pages: 1