Video Capture
I'm currently using a MiraBox USB3.0 HD capturing device (HSV323) who declare:
- /dev/video0 video device
pcm0 MiraBox Video Capture !MiraBox Video Capture (rec) audio device
VIDEO=/dev/video0 AUDIO=/dev/dsp0
Capturing audio and video at low bitrate
ffmpeg -y -f oss -i $AUDIO -f video4linux2 -i $VIDEO -acodec aac -strict -2 -ac 1 -b:a 64k -vcodec libx264 -b:v 300k -r 30 -g 30 capture.mp4
Capturing audio and video Hi quality
ffmpeg -f oss -ac 2 -i $AUDIO -f video4linux2 -i $VIDEO -acodec ac3 -ab 128k -f matroska -s 1280x720 -vcodec libx264 -preset ultrafast -qp 16 capture.mkv
Audio playback with gstreamer
gst-launch-1.0 osssrc device=/dev/dsp1 ! autoaudiosink
Audio playback with VLC
vlc oss:///dev/dsp1