Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jan 2006 21:38:30 -0800
From:      Jacob Meuser <jakemsr@jakemsr.com>
To:        freebsd-multimedia@freebsd.org
Subject:   Re: ffmpeg doesn't record sound from WinTV.
Message-ID:  <20060119053830.GC17070@puff.jakemsr.gom>
In-Reply-To: <200601190316.49361.frank@barda.agala.net>
References:  <200512240440.46994.frank@barda.agala.net> <200601020356.20081.frank@barda.agala.net> <20060104062448.GB26459@puff.jakemsr.gom> <200601190316.49361.frank@barda.agala.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 19, 2006 at 03:16:48AM +0100, Frank J. Beckmann wrote:
> Hi,
> 
> am Mittwoch, 4. Januar 2006 07:24 schrieb Jacob Meuser:
> > On Mon, Jan 02, 2006 at 03:56:19AM +0100, Frank J. Beckmann wrote:
> > > Moin,
> > >
> > > am Freitag, 30. Dezember 2005 17:55 schrieb Nicolas Blais:
> > > > On December 30, 2005 06:43 am, Jacob Meuser wrote:
> > > > Does it record the video?  If I do this:
> > > > ffmpeg -target ntsc-dvd -vd /dev/bktr -ad /dev/dsp -ac 2 fft.mpeg
> > > >
> > > > I get a dvd-size blue screen with no sound.
> > >
> > > It does record video.
> > >
> > > > But If I do this:
> > > > transcode -i /dev/bktr0 -x
> > > > bktr=norm=ntsc:vsource=tuner:asource=tuner,oss -g 640x480 -y ffmpeg -F
> > > > mpeg4 -p /dev/dsp -o out
> > >
> > > Just tried that (with pal instead of ntsc). That doesn't record sound
> > > either.
> >
> > interesting, because that explicitly both unmutes the audio and sets
> > the input.  there's really not much (if any) more that can be done
> > to enable audio from bktr(4).
> 
> I can't get transcode to record any sound, even if no other program used the 
> tv card before. I don't hear any sound while transcode is recording. Ffmpeg 
> works with Steve's latest patches.
> 
> > hmmm, try adding '-H 0' as well, maybe it messing up /dev/dsp when
> > trying to detect what it is.
> 
> That doesn't help.
> 
> > also try with 'asource=intern' instead of 'asource=tuner'.
> 
> asource=intern stops with an error.
> 
> > if it doesn't work after trying the above, could you please post the
> > exact command and screen output?  I wrote the bktr and oss import
> > modules for transcode, and would be interested in fixing them if
> > needed.
> 
> babylon:~> transcode -i /dev/bktr0 -x 
> bktr=norm=pal:vsource=tuner:asource=tuner,oss -y ffmpeg -F mpeg4 -p /dev/dsp 
> -o /bak/video/test.out -H 0
> transcode v1.0.2 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
> [transcode] V: import frame     | 720x576  1.25:1
> [transcode] V: bits/pixel       | 0.174
> [transcode] V: decoding fps,frc | 25.000,0
> [transcode] V: Y'CbCr           | YV12/I420
> [transcode] A: import format    | 0x2000  AC3          [48000,16,2]
> [transcode] A: export format    | 0x55    MPEG layer-3 [48000,16,2]  128 kbps
> [transcode] V: encoding fps,frc | 25.000,3
> [transcode] A: bytes per frame  | 7680 (7680.000000)
> [transcode] A: adjustment       | 0@1000
> [transcode] V: IA32/AMD64 accel | sse3 (sse3 sse2 sse 3dnowext 3dnow mmxext 
> mmx asm C)
> tc_memcpy: using sse for memcpy
> [transcode] V: video buffer     | 10 @ 720x576
> [import_oss.so] v0.0.1 (2005-05-12) (audio) pcm
> [import_bktr.so] v0.0.2 (2004-10-02) (video) bktr
> [export_ffmpeg.so] v0.3.13 (2004-08-03) (video) FFmpeg0.4.9-pre1b4718 | 
> (audio) MPEG/AC3/PCM
> [export_ffmpeg.so] Using FFMPEG codec 'mpeg4' (FourCC 'DIVX', MPEG4 compliant 
> video).
> [export_ffmpeg.so]: WARNING: Interlacing parameters unknown, use 
> --encode_fields
> [export_ffmpeg.so]: INFO: No profile selected
> [export_ffmpeg.so] Neither './ffmpeg.cfg' nor '~/.transcode/ffmpeg.cfg'
> [export_ffmpeg.so] found. Default settings will be used instead.
> [export_ffmpeg.so]: INFO: Starting 1 thread(s)
> [export_ffmpeg.so]: INFO: Set display aspect ratio to input
> [mpeg4 @ 0x28698330]removing common factors from framerate
> Audio: using new version
> Audio: using lame-3.96.1
> ^Ccoding frames [000000-000474],  24.84 fps, EMT: 0:00:18, ( 0| 0| 0)
> [transcode] (sighandler) SIGINT received
> encoding frames [000000-000475],  24.71 fps, EMT: 0:00:19, ( 1| 0| 0)
> clean up | frame threads | unload modules | cancel signal | internal threads | 
> done
> [transcode] encoded 476 frames (0 dropped, 0 cloned), clip length  19.04 s
> babylon:~> 

hmm, I am stumped.  looks like I will have to find a partition to install
FreeBSD on again (I use OpenBSD, but I did have this working fine with
FreeBSD at one point).  what version of FreeBSD are you using?

> BTW: How can I set the channel with transcode?

you can't.  use bsdbktrtvtune, or whatever it's called, or you could
use fxtv or xawtv or something else.  they shouldn't reset the tuner
after they close.  alternatively, you could install my bsdav package
and use tunerctl http://jakemsr.com/bsdav/

-- 
<jakemsr@jakemsr.com>

> -- 
> Tsch?ss
> Frank
> _______________________________________________
> freebsd-multimedia@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia
> To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe@freebsd.org"
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060119053830.GC17070>