jhgorse / onevideo

Connected Collaboration: Peer-to-peer video conferencing
GNU Lesser General Public License v2.1
4 stars 0 forks source link

add jpeg capability to avfvideosrc #4

Open jhgorse opened 8 years ago

jhgorse commented 8 years ago

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

jhgorse commented 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.