Video Capture

I'm currently using a MiraBox USB3.0 HD capturing device (HSV323) who declare:

mirabox.png

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 

RodrigoOsorio/HowTo/VideoCapture (last edited 2024-12-16T21:22:37+0000 by MarkLinimon)