Open jhgorse opened 8 years ago
Depending on the camera, it may be better to use Video Toolbox for hardware enc/dec. Built-in FaceTime HD cameras are a PCIe device and AVFoundation only exposes the raw formats. USB cameras may have their own supported formats which can be added avfvideosrc.
For consistency, it may be easiest to use vtenc to support image/jpeg encoding on OS X.
Future optimization may probe deeper into the available webcam.
Add jpeg to AVCaptureVideoDataOutput caps in avfvideosrc in gst-plugins-bad.
gst-launch-1.0 afvideosrc ! image/jpeg ! jpegdec ! videoconvert ! autovideosink or gst-launch-1.0 -v afvideosrc ! image/jpeg ! fakesink silent=false