FIX for graphics/fxtv

2006-10-18 Thread Antoine Jacoutot

Hi.

I'm resposting this fix since I never got any feedback from the 
maintainer.


- use RAW format for the intermediate audio file (fixes a no sound
  issue)
- add graphics/netpbm to RUN_DEPENDS (pretty much useless otherwise)

Looks ok?

--
AntoineIndex: fxtv//Makefile
===
RCS file: /cvs/ports/graphics/fxtv/Makefile,v
retrieving revision 1.33
diff -u -r1.33 Makefile
--- fxtv//Makefile  2 Aug 2006 10:10:35 -   1.33
+++ fxtv//Makefile  18 Oct 2006 10:47:28 -
@@ -4,7 +4,7 @@
 
 COMMENT=   Display and capture for Brooktree-based cards
 DISTNAME=  fxtv-1.03
-PKGNAME=   ${DISTNAME}p0
+PKGNAME=   ${DISTNAME}p1
 
 CATEGORIES=graphics
 HOMEPAGE=  http://people.freebsd.org/~rhh/fxtv/
@@ -21,7 +21,8 @@
:mpg321-*:audio/mpg321 \
:mp3encode-*:audio/mp3encode \
:mpeg_encode-=1.5:graphics/mpeg_encode \
-   :mplex-=1.1:graphics/mplex
+   :mplex-=1.1:graphics/mplex \
+   :netpbm-*:graphics/netpbm
 
 MAINTAINER=Wilbern Cobb [EMAIL PROTECTED]
 
Index: fxtv//patches/patch-fxtv_cnvt_sh
===
RCS file: /cvs/ports/graphics/fxtv/patches/patch-fxtv_cnvt_sh,v
retrieving revision 1.3
diff -u -r1.3 patch-fxtv_cnvt_sh
--- fxtv//patches/patch-fxtv_cnvt_sh3 Jan 2004 14:23:24 -   1.3
+++ fxtv//patches/patch-fxtv_cnvt_sh18 Oct 2006 10:47:28 -
@@ -1,6 +1,6 @@
 $OpenBSD: patch-fxtv_cnvt_sh,v 1.3 2004/01/03 14:23:24 espie Exp $
 fxtv_cnvt.sh.orig  Mon Feb 12 17:18:40 2001
-+++ fxtv_cnvt.sh   Wed Aug 15 13:47:57 2001
+--- fxtv_cnvt.sh.orig  Mon Feb 12 22:18:40 2001
 fxtv_cnvt.sh   Wed Oct 18 12:38:30 2006
 @@ -40,12 +40,12 @@
  
  # Default to $PATH
@@ -79,6 +79,17 @@
  
  MPEG_ENC_PARAM_STR_INP_STDIN=\
  'INPUT_DIR stdin'
+@@ -181,8 +181,8 @@ GenAudioPipe() {
+ 
+# Do we need an intermediate file?
+if [ $mpeg_enc = YES ]; then
+-  out_soxfn=$out_fnbase.aiff
+-  out_soxfmt=AIFF
++  out_soxfn=$out_fnbase.raw
++  out_soxfmt=RAW
+else
+   out_soxfn=$GAout_fn
+   out_soxfmt=$out_fmt
 @@ -344,12 +344,8 @@ vars='$AV_RAW_FILES $AV_TARGET $TARGET_F
  set -- $vars
  missing_var=NO


Re: FIX for graphics/fxtv

2006-10-18 Thread Didier Wiroth
Antoine Jacoutot wrote:
 Hi.
 
 I'm resposting this fix since I never got any feedback from the maintainer.
 
 - use RAW format for the intermediate audio file (fixes a no sound
   issue)
 - add graphics/netpbm to RUN_DEPENDS (pretty much useless otherwise)
 
 Looks ok?
 
COOL ... That sounds really good.
I've recently installed a   Leadtek Winfast TV 2000 but I had no luck
getting sound ... image was good, but no sound.
I tried every imaginable mixerctl combinations but no sound.
I'll try this tonight!

Didier



Re: FIX for graphics/fxtv

2006-10-18 Thread Antoine Jacoutot

On Wed, 18 Oct 2006, Didier Wiroth wrote:

COOL ... That sounds really good.
I've recently installed a   Leadtek Winfast TV 2000 but I had no luck
getting sound ... image was good, but no sound.
I tried every imaginable mixerctl combinations but no sound.
I'll try this tonight!


Cool, let me know.

Cheers!

--
Antoine



Re: FIX for graphics/fxtv

2006-10-18 Thread Antoine Jacoutot

On Wed, 18 Oct 2006, Didier Wiroth wrote:

Cool, let me know.

Sh*t !!!;-(
Still no sound for me.


No sound where?
While watching the video/audio output? If so, my fix was just meant to 
correct sound on the recorded material... but of course, audio output is 
supposed to work first ;)


--
Antoine



Re: FIX for graphics/fxtv

2006-10-18 Thread Didier Wiroth
 Cool, let me know.
Sh*t !!!;-( 
Still no sound for me.

Didier



Re: FIX for graphics/fxtv

2006-10-18 Thread Didier Wiroth
... but of course, audio  output is  supposed to work first ;)

Yes, audio output does not work.
I have a leatek winfast tv 2000 xp rm, tv tuner, with a cable pal 
connection.
The tv tuner has an audio connector, it is connected to the motherboard via the 
cd connector.
Result ... no sound.

In case someone has an idea, here my dmesg + 'mixerctl -a':


OpenBSD 4.0 (BROOKTREE_TV) #0: Tue Aug 29 20:16:51 CEST 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/BROOKTREE_TV
cpu0: Intel(R) Pentium(R) 4 CPU 2.80GHz (GenuineIntel 686-class) 2.80 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF
LUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID
real mem  = 2146201600 (2095900K)
avail mem = 1949696000 (1904000K)
using 4256 buffers containing 107413504 bytes (104896K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 06/20/05, BIOS32 rev. 0 @ 0xf0010, SMB
IOS rev. 2.3 @ 0xf04b0 (60 entries)
bios0: ASUSTeK Computer Inc. P4C800-E
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf4df0/224 (12 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82801EB/ER LPC rev 0x00)
pcibios0: PCI bus #3 is the last bus
bios0: ROM list: 0xc/0xd000 0xcd000/0x3400
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82875P Host rev 0x02
ppb0 at pci0 dev 1 function 0 Intel 82875P AGP rev 0x02
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 ATI Radeon 9200 SE Sec rev 0x01
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb1 at pci0 dev 3 function 0 Intel 82875P PCI-CSA rev 0x02
pci2 at ppb1 bus 2
em0 at pci2 dev 1 function 0 Intel PRO/1000CT (82547EI) rev 0x00: irq 5, 
address 00:11:d8:df:2a:0f
uhci0 at pci0 dev 29 function 0 Intel 82801EB/ER USB rev 0x02: irq 10
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 Intel 82801EB/ER USB rev 0x02: irq 5
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 Intel 82801EB/ER USB rev 0x02: irq 5
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3 Intel 82801EB/ER USB rev 0x02: irq 10
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 Intel 82801EB/ER USB2 rev 0x02: irq 11
ehci0: timed out waiting for BIOS
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: Intel EHCI root hub, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
ppb2 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0xc2
pci3 at ppb2 bus 3
VIA VT6306 FireWire rev 0x80 at pci3 dev 3 function 0 not configured
pciide0 at pci3 dev 4 function 0 Promise PDC20378 rev 0x02: DMA
wd0 at pciide0 channel 0 drive 0: SAMSUNG SP1614C
wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd0(pciide0:0:0): using BIOS timings, Ultra-DMA mode 7
pciide0: using irq 11 for native-PCI interrupt
bktr0 at pci3 dev 10 function 0 Brooktree BT878 rev 0x11: irq 11
bktr0: Leadtek Winfast TV 2000, Philips PAL tuner.
Brooktree BT878 Audio rev 0x11 at pci3 dev 10 function 1 not configured
ichpcib0 at pci0 dev 31 function 0 Intel 82801EB/ER LPC rev 0x02
pciide1 at pci0 dev 31 function 2 Intel 82801EB SATA rev 0x02: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
wd1 at pciide1 channel 1 drive 0: SAMSUNG SP1614C
wd1: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd2 at pciide1 channel 1 drive 1: SAMSUNG SP1614C
wd2: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd1(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 5
wd2(pciide1:1:1): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 Intel 82801EB/ER SMBus rev 0x02: irq 11
iic0 at ichiic0
lm1 at iic0 addr 0x2f: W83791SD
auich0 at pci0 dev 31 function 5 Intel 82801EB/ER AC97 rev 0x02: irq 11, ICH5 
AC97
ac97: codec id 0x41445375 (Analog Devices AD1985)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auich0
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
lm0 at isa0 port 0x290/8: W83627THF
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 

Re: FIX for graphics/fxtv

2006-10-18 Thread Antoine Jacoutot

On Wed, 18 Oct 2006, Didier Wiroth wrote:

... but of course, audio  output is  supposed to work first ;)


Yes, audio output does not work.


I mean audio output from your video card.
Watch out for the record.source and unmute everything just to be sure. 
Also you could try another connector. Anyway, this does not look related 
to this particular port, it seems like a configuration problem or 
something.


--
Antoine