Page 1 of 1

add support for fm radio via directshow

Posted: 26 Apr 2006 10:20
by mhwlng
Hello,

Currently in dshow.cpp is hardcoded : tv mode.

hr = p_TV->put_Mode( AMTUNER_MODE_TV );

Is it possible to add a command line option to change the mode ?

I would like to use the FM Radio part of my Hauppauge WinTV PVR USB2 Encoder

Also, when I set the FM Radio mode manually, via the tuner dialog box, then vlc only plays the radio for 15 seconds. (I assume, it doesn't like the absence of a video signal ?)
I have not found a setting yet that continues playing the radio..

I don't know if this article is of any use ?

http://www.shspvr.com/graph_build/fm_mp3_recording.html

Thanks,

Marcel

Posted: 02 May 2006 16:38
by mhwlng
in vlc-0.8.6-svn-20060502-0001-win32.exe, the radio now keeps playing ok.

so, I think, that all that is needed now, is an option to set the tuner mode :

which is now hardcoded to : in dshow.cpp

hr = p_TV->put_Mode( AMTUNER_MODE_TV );

these are the possibilites :

AMTUNER_MODE_DEFAULT = 0x0000,
AMTUNER_MODE_TV = 0x0001,
AMTUNER_MODE_FM_RADIO = 0x0002,
AMTUNER_MODE_AM_RADIO = 0x0004,
AMTUNER_MODE_DSS = 0x0008

Would that modification, be possible ?

Thanks,

Marcel

Posted: 02 May 2006 21:55
by dionoea
This changeset hopefully adds configuration options in the VLC preferences for AM TUNER MODE: http://trac.videolan.org/vlc/changeset/15527 . I haven't had the opportunity to test it. Please report if it works. (It should be available in tonight's nightly build)

Posted: 03 May 2006 10:50
by mhwlng
Antoine,

It works great in vlc-0.8.6-svn-20060503-0000-win32.exe

thanks a lot !

Marcel

Posted: 03 May 2006 21:40
by dionoea
Let me know if you have other easy to add options in mind :D

Re: add support for fm radio via directshow

Posted: 21 Sep 2007 06:14
by santosh.s
This change seems to be very old, but did it make it to any release?
I am using latest version 0.8.6c (wxWidgets interface) but the option :dshow-amtuner-mode=2 for FM radio doesn't work.
The tuner card is "Pinnacle PCTV 713x Tuner BDA Analog Capture"