Looking for Suggestions, SW can't change channel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



From: Kevin Yager

I am using an MPEG 1 steam encoder called ffmpeg to encode from a Hauppauge
PVR.   I can run xawtv and it works just fine ( though I need to boot in
windows in order to get sound enabled.. ) I can switch video sources,
change channels and so on.

ffmpeg was set up to use a bttv video card and always got its signal from
composite1.  I succesfully added code so it will set the input source to
Televison, and set the channel before it starts encoding.  I can run this
and it works just fine.

I added more code to allow ffmpeg to change channels WHILE IT IS encoding,
after startup.  This doesn't work so well.  It's flakey, acts as though it
can't change while it is encoding.

I'm using    ioctl(video_fd,VIDIOCSFREQ,&chan) to set the channel, and then
using VIDIOCGFREQ to query it.  It seems to "take" the new
frequency, but the encoder just keeps on grinding away on that old channel,
as if nothing has changed.

Does anyone have any ideas on what I am doing wrong?  Do I need to do
something else in order to let the change take effect?

Any ideas or suggestions on how to troubleshoot this will be appreciated.

Thanks
Kevin

PS: here is some information about the system this is on:

[yager@tesla yager]$ uname -a
Linux tesla 2.4.7-10custom #2 Wed Apr 3 16:59:25 EST 2002 i686 unknown


[root@tesla log]# grep -i bttv mess*
messages.1:Jun  3 11:34:14 tesla kernel: bttv: driver version 0.7.91 loaded
messages.1:Jun  3 11:34:14 tesla kernel: bttv: using 2 buffers with 2080k
(4160k total) for capture
messages.1:Jun  3 11:34:14 tesla kernel: bttv: Host bridge is Intel
Corporation 82820 820 (Camino) Chipset Host Bridge (MCH)
messages.1:Jun  3 11:34:14 tesla kernel: bttv: Bt8xx card found (0).
messages.1:Jun  3 11:34:14 tesla kernel: bttv0: Bt878 (rev 17) at 02:01.0,
irq: 9, latency: 128, mmio: 0xefffe000
messages.1:Jun  3 11:34:14 tesla kernel: bttv0: detected: Hauppauge
WinTV/PVR [card=10], PCI subsystem ID is 0070:4500
messages.1:Jun  3 11:34:14 tesla kernel: bttv0: using: BT878(Hauppauge
(bt878)) [card=10,insmod option]
messages.1:Jun  3 11:34:14 tesla kernel: bttv0: Hauppauge/Voodoo msp34xx:
reset line init [5]
messages.1:Jun  3 11:34:14 tesla kernel: bttv0: i2c attach
[client=MSP3435G-B6,ok]
messages.1:Jun  3 11:34:14 tesla kernel: bttv0: i2c attach [client=Philips
NTSC,ok]
messages.1:Jun  3 11:34:14 tesla kernel: bttv0: Hauppauge eeprom:
model=45231, tuner=Philips FM1236 (2), radio=yes
messages.1:Jun  3 11:34:14 tesla kernel: bttv0: i2c: checking for MSP34xx @
0x80... found
messages.1:Jun  3 11:34:15 tesla kernel: bttv0: i2c: checking for TDA9875 @
0xb0... not found
messages.1:Jun  3 11:34:15 tesla kernel: bttv0: i2c: checking for TDA7432 @
0x8a... not found
messages.1:Jun  3 11:34:15 tesla kernel: bttv0: registered device video0
messages.1:Jun  3 11:34:15 tesla kernel: bttv0: registered device vbi0
messages.1:Jun  3 11:34:15 tesla kernel: bttv0: registered device radio0
messages.1:Jun  3 11:34:15 tesla kernel: bttv0: PLL: 28636363 => 35468950
... ok
messages.1:Jun  3 11:42:22 tesla kernel: bttv0: PLL: switching off
messages.1:Jun  3 11:57:00 tesla kernel: bttv0: irq: SCERR
risc_count=0f3b1810
messages.1:Jun  3 11:57:00 tesla kernel: bttv0: irq: SCERR
risc_count=0f3b1808








[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux