Skip to content

Taking picture from both front and back cameras

Notifications You must be signed in to change notification settings

friendlyarm/Dual-Camera

 
 

Repository files navigation

Dual-Camera

Encoding video of both front and back side cameras in one video file using MediaCodec. This apps purpose is to reduce the workload of video decoding on the processor. The idea of doing this came out from the records of the CCTV cameras on a truck. Since there are many cameras on a truck for security, analyzing this records simultaneously requires a powerful processor or before analyzing, all this records need to be merged into one file with some software.

With this project we show that with using efficient merging technique during the recoding on Android platform there no need to use another software for merging the records after the recording session finished.

The two streams from front and back cameras on an android phone has been merged successfully and at the analying process instead of decoding two video files only one video file can be decoded. Currently the resolution is at the 640 * 480 value for each stream (which makes the resolution of the resulted video 640 * 960) with 30fps frame rate for the merged video. Tested frame rate for 1280 * 720 resolution value is 18fps.

You can download a sample of the mp4 file created using this app from this link.

Currently supported boards

  • RK3399
    NanoPC T4
    NanoPC M4
    NanoPC NEO4
    Som-RK3399

Tested on Android8.1

About

Taking picture from both front and back cameras

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%