Open leonardoporpora opened 6 years ago
I've been thinking of not using the MediaRecorder for video recording, and instead just capture multiple preview frames and encode them into an MP4.
Using this for example: https://developer.android.com/reference/android/media/MediaCodec
Great idea going the MediaCodec route, much less demanding of the device.
Note: Android 5.1 & below make device sounds despite muting the stream on video capture start/stop. Seems to be related to not using correct method.
I have something working with JCodec now, but it is too slow. I've checked in some code that uses MediaCodec into my branch but not fully working yet.
Try latest 0.2.0 alpha 2 build. Video is improved, though low framerate for now.
@n8fr8,
I've been thinking of not using the MediaRecorder for video recording, and instead just capture multiple preview frames and encode them into an MP4.
In the interest of freedom and openness, I suggest these instead of MP4:
"video/x-vnd.on2.vp8" - VP8 video (i.e. video in .webm)
"video/x-vnd.on2.vp9" - VP9 video (i.e. video in .webm)
and if audio is a separate choice, then "vorbis" would win the Richard Stallman seal of approval.
Sure... it comes down to right now which formats we can easily encode into, and that apps like Signal or Orfox/Tor Browser can play back. We are using JCodec http://jcodec.org/ to do video encoding at the moment. We need to find a way to encode into VP8/9 and WebM in the software, not hardware layer...
This looks like a good place to start: https://github.com/magicsih/AndroidScreenCaster
I'm using haven in my android phone, if video surveillance is enabled no log is recorded on the phone and sent to my Signal device, so if i enable video surveillance Haven doesn't work at all. My phone is a Samsung Galaxy J3 (2016) Version of Android 5.1.1 Kernel version 3.10.65-12057946