sound for cx88 analog capture

Dieter freebsd at sopwith.solgatos.com
Tue Jan 6 05:19:01 UTC 2009


> The node number of the dsp* entry will correspond to the number for
> the pcm* entry, so /dev/dsp1 should be it.

This would be good info to add to the wiki, assuming it isn't
already hiding there somewhere already.

> Can you try capturing just
> the audio:
> 
> cx88 -d /dev/cx88audio0 -x
> /usr/local/share/examples/cx88/cx88.xml.sample -c USA:42
> 
> while simultaneously doing a 'cat /dev/dsp1 > /dev/dsp0'?
> 
> That will be basically the same thing that's happening for the audio
> part of the combined video/audio capture.

Sound comes out the nforce jack, so it appears the cx88 audio is working.
I guess I didn't bungle the /dev entry after all.

> > ffmpeg says:
> >
> > Input #0, oss, from '/dev/dsp1':
> >   Duration: N/A, start: 1230593138.586555, bitrate: N/A
> >   Stream #0.0, 1/1000000: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
> > Input #1, rawvideo, from '/tmp/vpipe':
> >   Duration: N/A, bitrate: N/A
> >   Stream #1.0, 1001/30000: Video: rawvideo, yuv422p, 640x480, 1001/30000, 29.97 fps(r)
> > Output #0, dv, to '/var/tmp/analog.dv':
> >   Stream #0.0, 1/90000: Video: dvvideo, yuv411p, 720x480, 1001/30000, q=2-31, 200 kb/s, 29.97 fps(c)
> >   Stream #0.1, 1/90000: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
> > Stream mapping:
> >   Stream #1.0 -> #0.0
> >   Stream #0.0 -> #0.1
> > Press [q] to stop encoding
> > frame=  494 fps= 30 q=0.0 size=   57773kB time=16.5 bitrate=28755.7kbits/s dup=0 drop=0
> 
> ffmpeg seems to think it captured the audio--could it have something
> to do with the dv format?  Can you try using the MPEG format like the
> example on the wiki?

The custom ffmpeg binary I usually use doesn't support -f oss so I was trying
to use the one from ports.  I tried my normal mpeg2ts (from atsc) to dv script
except with the ports version of ffmpeg and got no sound.

So, it looks like cx88 is fine, I didn't use the wrong /dev entry, and the ports
version of ffmpeg is broken.  Why am I not surprised...

One more question, I don't see anything about how to switch the input from
RF to s-video or composite.


More information about the freebsd-multimedia mailing list