Closed qaisbayabani closed 2 years ago
FFmpeg supports a variety of protocols. Just put your URL in ffmpeg_link and see if it works or not.
Or maybe what you're looking for is this line? https://github.com/bytedeco/sample-projects/blob/master/JavaCV-android-example/app/src/main/java/org/bytedeco/javacv_android_example/record/RecordActivity.java#L503
BTW, it's also possible to use FFmpeg or OpenCV to capture video on Android now, see https://github.com/bytedeco/javacv/issues/1692.
((ByteBuffer) yuvImage.image[0].position(0)).put(data); is the line i think i have to understand and i just want single image not video?
That uses the old deprecated Camera Preview API, but yes that's how it's doing it.
FFmpeg supports a variety of protocols. Just put your URL in ffmpeg_link and see if it works or not.
direct stream from android phone cam :) . Is a URL can attain it?
Yes, something like this: https://github.com/bytedeco/javacv/issues/1692#issuecomment-978814766
Its working nice if added with permission nice means 100% correct. but i cant find out that from where recorder is getting the Frames from preview and where is connection between them. thanx in anticipation.
initRecorder()
recorder = new FFmpegFrameRecorder(ffmpeg_link, imageWidth, imageHeight, 1);