From: Scarletdown on
I'm building a Linux system specifically for video capture in prep for
yet another video games review site I want to attempt. She is running
Debian Sid with Enlightenment as her desktop.

I am having a helluva time trying to get things working properly.
First of all, I just installed my old PCTV (bt878 based) TV tuner that
used to work fine for me years ago. On this, I am getting video fine,
but not getting any sound through the card I tried connecting the
speakers directly to the card's line out and also tried running a
patch cable from line out to the sound card's line in and then
connecting the speakers to the sound card. Both configurations
resulted in no sound at all.

Additionally, XAWTV for some reason is not saving my settings when I
exit. Why would that be? Also, captured video when played back
through vlc as well as when played online, is tearing pretty bad
(looks okay when played on the old TV though). It is also running a
little too fast. I recorded at 24fps, thinking that was the NTSC
standard for video. Was that an incorrect guess? Here is a clip,
captured from a Wii game showing the tearing and slightly too fast
playback (don't laugh, this is being done for the amusement of my
young neices and nephews next time I go visit them. :p

http://s4.photobucket.com/albums/y129/Scarletdown/Animations/?action=view&current=DDR-Davy-Crockett.mp4

The tearing is really noticeable when Pluto zips across the stage as
well as halfway through, when the dancers really start shaking it.

In addition to the internal capture card, this system also has two
other devices that should also be able to capture video. The first is
the video card itself, an ATI Rage 128 Pro AGP 4X, which has TV (aka
composite) in as well as what I am guessing is S-Video in (not
positive on that since the port has significantly more than 4 pins
unlike the S-Video ports on my AV switch). The other is an external
ATI TV Wonder USB TVWonder, which has coax, composite, and S-Video
inputs.

When I installed and ran XAWTV after connecting the USB device (before
installing the bt878 card), it crashed with a complaint that there was
no video grabber device found. dmesg showed both the usb capture
device and the PCI bt878 card and lspci showed the video card, but no
mention was made of its TV capture feature. However, I am not certain
if there was supposed to be any separate entries for that.

Anyway, here are the relevant lines from dmesg and the output from lspci

[ 12.442025] Linux video capture interface: v2.00
[ 12.618237] bttv: driver version 0.9.18 loaded
[ 12.618253] bttv: using 8 buffers with 2080k (520 pages) each for capture
[ 12.620236] bttv: Bt8xx card found (0).
[ 12.620333] bttv 0000:00:0b.0: PCI INT A -> Link[LNKD] -> GSI 11
(level, low) -> IRQ 11
[ 12.620373] bttv0: Bt878 (rev 2) at 0000:00:0b.0, irq: 11, latency:
32, mmio: 0xeb005000
[ 12.620534] bttv0: using: *** UNKNOWN/GENERIC *** [card=0,autodetected]
[ 12.620548] IRQ 11/bttv0: IRQF_DISABLED is not guaranteed on shared IRQs
[ 12.620646] bttv0: gpio: en=00000000, out=00000000 in=003fc0ff [init]
[ 12.621924] tveeprom 0-0050: Huh, no eeprom present (err=-6)?
[ 12.621943] bttv0: tuner type unset
[ 12.622745] bttv0: registered device video0
[ 12.623550] bttv0: registered device vbi0

00:00.0 Host bridge: ALi Corporation M1541 (rev 04)
00:01.0 PCI bridge: ALi Corporation M1541 PCI to AGP Controller (rev 04)
00:02.0 USB Controller: ALi Corporation USB 1.1 Controller (rev 03)
00:07.0 ISA bridge: ALi Corporation M1533/M1535/M1543 PCI to ISA
Bridge [Aladdin IV/V/V+] (rev c3)
00:08.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)
00:09.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 78)
00:0a.0 USB Controller: NEC Corporation USB (rev 43)
00:0a.1 USB Controller: NEC Corporation USB (rev 43)
00:0a.2 USB Controller: NEC Corporation USB 2.0 (rev 04)
00:0b.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 02)
00:0b.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 02)
00:0f.0 IDE interface: ALi Corporation M5229 IDE (rev c1)
01:00.0 VGA compatible controller: ATI Technologies Inc Rage 128
PF/PRO AGP 4x TMDS

If I need to provide any further info, just give the word and I will
see what I can dig up. In summary:

1: bt878 card is not putting out any audio.
2: Captured video from XAWTV through the bt878 card tears when viewed
on an LCD monitor but does not seem to tear on an old fashioned CRT
TV.
3: Captured video plays back a little too fast.
4: XAWTV is not recognizing the TV Capture capability of my video card.
5: The external USB TV capture device is not recognized by XAWTV.


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/AANLkTik21joQny-=GuBpyTA7nYmvp52BiZSxmkUz16P-(a)mail.gmail.com
From: Thomas Amm on
Am 08/02/2010 01:25 AM, schrieb Scarletdown:
> I'm building a Linux system specifically for video capture in prep for
> yet another video games review site I want to attempt. She is running
> Debian Sid with Enlightenment as her desktop.
>
> I am having a helluva time trying to get things working properly.
> First of all, I just installed my old PCTV (bt878 based) TV tuner that
> used to work fine for me years ago. On this, I am getting video fine,
> but not getting any sound through the card I tried connecting the
> speakers directly to the card's line out and also tried running a
> patch cable from line out to the sound card's line in and then
> connecting the speakers to the sound card. Both configurations
> resulted in no sound at all.
>
> Additionally, XAWTV for some reason is not saving my settings when I
> exit. Why would that be? Also, captured video when played back
> through vlc as well as when played online, is tearing pretty bad
> (looks okay when played on the old TV though). It is also running a
> little too fast. I recorded at 24fps, thinking that was the NTSC
> standard for video. Was that an incorrect guess? Here is a clip,
> captured from a Wii game showing the tearing and slightly too fast
> playback (don't laugh, this is being done for the amusement of my
> young neices and nephews next time I go visit them. :p
>

Having done exactly what you are describing with A/V output from VJing
machines using a BT878 myself, I'd suppose you:

- just forget XAWTV for capturing
- get mencoder, ffmpeg and probably some H264 stuff like GPAC for web
streaming (debian-multimedia has all you need, unless you build your own
mplayer)
- get mencoder-doc and read the man page - especially the last few lines
with examples about recording from TV input (I don't know your TV norm
or your input signal, so I can't give you advice for specific options)
- use your audio card's line in for audio capturing. There's quite good
advice, how to do that in mplayers man page
- capture in raw or lossless mjpeg format and PCM audio to be able to
encode as H264 or ogg/ogm later for web streaming (HTML5/Flowplayer)
without recompression artefacts

Unfortunately I don't have one of my well-probed scripts at hand right
now, but basically I did some experimenting with input size and cropping
of the captured video to find a format that suited best (beware of
interleaved input signals), captured to MJPEG/PCM and recoded to H264
for web streaming with flowplayer.
There might be some hassle finding the right settings for your audio
hardware to record from line-in. I found alsamixer to be the best tool here,

just my 2 cents,

Tom


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/4C59B5D8.4090805(a)googlemail.com
From: Scarletdown on
On Wed, Aug 4, 2010 at 11:47 AM, Thomas Amm <ed3ltaud(a)googlemail.com> wrote:
>
> Having done exactly what you are describing with A/V output from VJing
> machines using a BT878 myself, I'd suppose you:
>
> - just forget XAWTV for capturing
> - get mencoder, ffmpeg and probably some H264 stuff like GPAC for web
> streaming (debian-multimedia has all you need, unless you build your own
> mplayer)
> - get mencoder-doc and read the man page - especially the last few lines
> with examples about recording from TV input (I don't know your TV norm
> or your input signal, so I can't give you advice for specific options)
> - use your audio card's line in for audio capturing. There's quite good
> advice, how to do that in mplayers man page
> - capture in raw or lossless mjpeg format and PCM audio to be able to
> encode as H264 or ogg/ogm later for web streaming (HTML5/Flowplayer)
> without recompression artefacts
>

I've made some minor progress since I last posted, and am now
tinkering with mencoder (xawtv is rather craptacular for video capture
really).

So far, I can capture video, but still no sound. No matter what I
try, I can not get sound to play through the capture card. So I was
hoping that mencoder could capture the sound through the sound card as
it captures video through the video capture card, But even that does
not seem to be working, and I am at a complete loss as to why it
doesn't work. Here is the command I gave to start the capture:

mencoder -ovc lavc -lavcopts vcodec=mpeg4:\vhq:vbitrate=6000 -oac
mp3lame -lameopts br=256: -ffourcc DIVX -tv
driver=v4l:norm=ntsc:input=1:adevice=/dev/dsp:width=640:height=480 -af
volume=-10 -o /Calypso/Multimedia/Test-09.avi tv://

That produced an avi file that can be played in vlc, but it has no
sound. To top it off, neither of the apps that I wanted to use to
then edit the avi recognize it as a valid avi (avidemux and
Cinelerra). I found the above command from a YouTube tutorial...

http://www.youtube.com/watch?v=dDLtHDvQ7O4

However, I suspect that the tutorial assumes that sound would be
coming from the same source as the video. I suppose I could record
the sound sperately through Audacity, but that seems like a poor and
easily error prone solution, what with trying to get the video and
audio properly synced up.

Any additional suggestions, especially if such suggestions will result
in mencoder capturing sound from the sound card while simultaneously
capturing video from the video capture card?


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/AANLkTi=Ct_OnvPNtBGpvqVYVR=jXLmsE-7pD7LhQdzL+(a)mail.gmail.com