[FFmpeg-devel] [PATCH] Add android_capture indev

Daniel Kučera daniel.kucera at gmail.com
Thu Nov 2 17:20:22 EET 2017


2017-11-02 13:42 GMT+01:00 Felix Matouschek <felix at matouschek.org>:
> Hello,
>
> I've written an indev for Android devices to allow capturing their builtin
> cameras.
> What needs to be done to merge this?
>
> Greetings,
> Felix
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>

Looking forrward to this to be included. Just one note:

+    if (ctx->video_device_number < camera_ids->numCameras) {
+        ctx->camera_id = av_strdup(
+                camera_ids->cameraIds[ctx->video_device_number]);
+    } else {
+        av_log(avctx, AV_LOG_ERROR, "No camera with number %d available.\n",
+                ctx->video_device_number);
+        return AVERROR(ENXIO);
+    }

some devices have cameras which are unlisted - this condition makes
them unusable.


-- 

S pozdravom / Best regards
Daniel Kucera.


More information about the ffmpeg-devel mailing list