Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Video surveillance doesn't work and influences the whole app #295

Open
leonardoporpora opened this issue May 20, 2018 · 8 comments
Open

Comments

@leonardoporpora
Copy link

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

@leonardoporpora leonardoporpora changed the title [BUG] Video surveillance doesn't work [BUG] Video surveillance doesn't work and influences the whole app May 20, 2018
@lukeswitz lukeswitz mentioned this issue May 20, 2018
@n8fr8 n8fr8 added this to the Current Sprint milestone Jul 2, 2018
@n8fr8
Copy link
Member

n8fr8 commented Jul 2, 2018

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.

@n8fr8
Copy link
Member

n8fr8 commented Jul 2, 2018

@lukeswitz
Copy link
Collaborator

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.

n8fr8 added a commit that referenced this issue Jul 3, 2018
- uses the https://github.com/siralam/CameraViewPlus library to make the camera usage more reliable, and support Camera2
- integrates RenderScript support to move to better performance on some image conversion functions
- improves display and performance of detection display overlay
@n8fr8
Copy link
Member

n8fr8 commented Jul 3, 2018

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.

@n8fr8
Copy link
Member

n8fr8 commented Jul 6, 2018

Try latest 0.2.0 alpha 2 build. Video is improved, though low framerate for now.

@ghost
Copy link

ghost commented Aug 6, 2018

@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.

@n8fr8
Copy link
Member

n8fr8 commented Aug 6, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants