ffmpeg doesn't record sound from WinTV.

Jacob Meuser jakemsr at jakemsr.com
Thu Dec 29 20:24:08 PST 2005


On Thu, Dec 29, 2005 at 01:39:21PM +0100, Frank J. Beckmann wrote:
> Moin,
> 
> am Donnerstag, 29. Dezember 2005 11:02 schrieb Steve O'Hara-Smith:
> > On Sat, 24 Dec 2005 04:40:45 +0100
> >
> > "Frank J. Beckmann" <frank at barda.agala.net> wrote:
> > > Hi,
> > >
> > > I can't record sound from my Hauppage WinTV with ffmpeg. The audio out of
> > > the tvcard is connected to the line in of the soundcard. I can record
> > > sound with moTV (XawTV) but not with ffmpeg. ffmpeg records sound if I
> > > choose another input device like the cd in. It looks like ffmpeg is
> > > forgetting to the the tvcard to send it's sound to the audio card. ffmpeg
> > > tells me that it records the sound, but all it gets is silence.
> > >
> > > ffmpeg -target dvd -vd /dev/bktr -ac 2 -tvstd PAL /var/tmp/fft.mpeg
> >
> > 	Post the early output of this command please.
> 
> ffmpeg version 0.4.9-pre1, build 4718, Copyright (c) 2000-2004 Fabrice Bellard
>   built on Dec 26 2005 21:29:11, gcc: 3.4.4 [FreeBSD] 20050518
> Assuming PAL for target.
> File '/var/tmp/fft.mpeg' already exists. Overwrite ? [y/N] y
> Input #0, video4linux, from '':
>   Duration: N/A, bitrate: N/A
>   Stream #0.0: Video: rawvideo, yuv422, 720x576, 25.00 fps
> Input #1, audio_device, from '':
>   Duration: N/A, bitrate: N/A
>   Stream #1.0: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
> Output #0, vob, to '/var/tmp/fft.mpeg':
>   Stream #0.0: Video: mpeg2video, 720x576, 25.00 fps, q=2-31, 6000 kb/s
>   Stream #0.1: Audio: ac3, 48000 Hz, stereo, 448 kb/s
> Stream mapping:
>   Stream #0.0 -> #0.0
>   Stream #1.0 -> #0.1
> Press [q] to stop encoding
> 
> I also tried:
> 
> ffmpeg -target dvd -ad /dev/dsp -vd /dev/bktr -ac 2 -tvstd 
> PAL /var/tmp/fft.mpeg

/dev/dsp is the default anyway.

> ffmpeg version 0.4.9-pre1, build 4718, Copyright (c) 2000-2004 Fabrice Bellard
>   built on Dec 26 2005 21:29:11, gcc: 3.4.4 [FreeBSD] 20050518
> Assuming PAL for target.
> File '/var/tmp/fft.mpeg' already exists. Overwrite ? [y/N] y
> Input #0, video4linux, from '':
>   Duration: N/A, bitrate: N/A
>   Stream #0.0: Video: rawvideo, yuv422, 720x576, 25.00 fps
> Input #1, audio_device, from '':
>   Duration: N/A, bitrate: N/A
>   Stream #1.0: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
> Output #0, vob, to '/var/tmp/fft.mpeg':
>   Stream #0.0: Video: mpeg2video, 720x576, 25.00 fps, q=2-31, 6000 kb/s
>   Stream #0.1: Audio: ac3, 48000 Hz, stereo, 448 kb/s
> Stream mapping:
>   Stream #0.0 -> #0.0
>   Stream #1.0 -> #0.1
> Press [q] to stop encoding
> 
> But that didn't help.
> 
> moTV, XawTV and fxtv are able to record sound, ffmpeg and nupplevideo are not. 
> ffmpeg records sound from outher devices. So I guess that it doesn't tell the 
                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> TV card to send the audio stream to it's line out. ffmpeg has the only really 
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

no, bktr(4) always does that.  it is only possible to select the inputs.
all outputs are enabled when the tuner is unmuted (which happens by default
when the tuner is open()'d).

do you hear audio when you run the above ffmpeg command?  if so, then the
problem is solely with the audio grabbing, not bktr.  make sure your mixer
is set right.  ffmpeg doesn't set the mixer, while the programs that work
for you all do set the mixer, IIRC.

> acceptable video recording quality of the programs that I tested.

yes, it is the best encoder, IMO.

-- 
<jakemsr at jakemsr.com>


> > 	PS. sorry for the delayed reply Xmas, kids and all that.
> 
> Don't mind. I'm on vacation till next year. :-)
> -- 
> Tsch?ss
> Frank
> _______________________________________________
> freebsd-multimedia at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia
> To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe at freebsd.org"
> 


More information about the freebsd-multimedia mailing list