I think from the title it is already clear what and how I'm going to do. I want to make a NVR on the basis of an old broken android smartphone. #### A small background. I have already made several versions of the video surveillance system for my house. Something worked, something not. In the course of experiments, I returned to the classic version - DVR + cameras. But here there were some nuances that I would like to eliminate. Current task is simple - at regular intervals take pictures from the ip camera, save them on the memory card and send to ftp server. Then, on the server, using the utility motiontrack, determine the presence of movements and when they are detected, send pictures via email. <center> </center> But I have a video recorder from an unnamed Chinese manufacturer what can't send pictures to the ftp or on email - only videos. Unfortunately I did not find the firmware able to fix it, so instead of the DVR I used the old PC running linux. Using old PC is good solution except for one - power consumption. I noticed daily energy consumption and came to the conclusion that video surveillance with my devices would eat about $10 per month. It seems to be cheap, but my income for the last months rarely exceed $200, so even such a sum will be significant. And it's not include spending on the internet. In addition, when using a DVR or a PC, you need to take care of uninterrupted power supply - the equipment works in the village, where outages are by no means rare. This requires ups, but I do not have it. But I have a few old android smartphones with broken screens that can be useful for my task.  Unfortunately, I did not find any application that would allow me to capture pictures from the rtsp stream of the ip camera and at the same time might be installed and configured from the console, so I decided to implement something of my own. #### Building FFMPEG As you can see from the header - my decision is the console version of ffmpeg for the android. Of course, I did not immediately come to this option. I'm not an android developer, so I was very worried about how I will implement the rtsp client. Considering options integration ffmpeg into my application, I came across one excellent project https://github.com/Khang-NT/ffmpeg-binary-android. Its author made a script for configuring and compiling ffmpeg, thanks to which even the child will be able to build FFmpeg executable binary for Android. It is enough to perform a few simple steps: 1. Download Android NDK r15 (I have old droids of version 4) https://developer.android.com/ndk/downloads/older_releases 2. Correct some params in build script ./build_ffmpeg.sh for your own needs. In parameter --enable-protocol='file,pipe' add rtp ( --enable-protocol='file,pipe,rtp') next in parameter --enable-demuxer add rtsp (--enable-demuxer='rtsp,aac...)  3. Run the build script, installing the missing dependencies by the way. ./build_ffmpeg.sh arm lite /absolute path/build_scripts/build_dir /absolute path/build_scripts/final/arm After about 20 minutes I got a ready-made binary. Copied it to the phone using adb - `adb push ./ffmpeg /storage/sdcard1/ffmpeg` And then, using a simple command `adb shell '/storage/sdcard1/ffmpeg -i "rtsp://192.168.1.38:554/onvif1" -y -vframes 1 /storage/sdcard1/cam.jpg' ` made I shot from camera. Everything worked out.  Next goal is to build th whole project - write some scripts and make some hardware manipulations with phone, but about this in the following parts.
author | astrizak |
---|---|
permlink | making-nvr-from-old-broken-android-smartphone-concept-and-first-steps |
category | diy |
json_metadata | {"tags":["diy","steemmakers","life","androidnvr"],"image":["https://cdn.steemitimages.com/DQmPkwMjsjE2TerfYfjf5feUb1fgCMPXXWN4jQwVE2X54An/2.jpg","https://cdn.steemitimages.com/DQma6VgSU7ykZdJodmYxjDz7iQvHYuV5ciM7Tdar54VRfZ7/IMG_20180718_003840.jpg","https://cdn.steemitimages.com/DQmNnuJpGz6T7cTMyjh1edrixjqGPsAsYw5aMRdoEdJSRFc/1.jpg","https://cdn.steemitimages.com/DQmZNTaJbXrCDp2LJ6jYnKUAJS51kdCrNDN3SxJhSWZTYSJ/cam.jpg"],"links":["https://github.com/Khang-NT/ffmpeg-binary-android","https://developer.android.com/ndk/downloads/older_releases"],"app":"steemit/0.1","format":"markdown"} |
created | 2018-07-17 23:35:51 |
last_update | 2018-07-17 23:35:51 |
depth | 0 |
children | 2 |
last_payout | 2018-07-24 23:35:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 4.749 HBD |
curator_payout_value | 0.890 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 3,940 |
author_reputation | 37,412,340,899,882 |
root_title | "Making nvr from old broken android smartphone. Concept and first steps" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 65,047,858 |
net_rshares | 2,696,566,313,679 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
stephen.king989 | 0 | 154,392,219,095 | 100% | ||
skylineking88 | 0 | 2,950,641,193 | 100% | ||
ana-maria | 0 | 128,593,659,893 | 100% | ||
sidwaterman | 0 | 8,061,972,831 | 100% | ||
brendenweber | 0 | 7,467,383,579 | 100% | ||
askari | 0 | 181,505,739,686 | 100% | ||
adayat523 | 0 | 3,803,726,583 | 100% | ||
shaunmza | 0 | 16,171,533,014 | 90% | ||
samhamou | 0 | 7,225,536,456 | 100% | ||
pbock | 0 | 9,212,246,943 | 100% | ||
elevator09 | 0 | 126,945,815,607 | 100% | ||
thatsweeneyguy | 0 | 9,554,755,847 | 100% | ||
cody.maynard68 | 0 | 4,337,467,060 | 100% | ||
minnowsupport | 0 | 47,295,347,476 | 0.6% | ||
boucaron | 0 | 0 | 100% | ||
momar | 0 | 357,663,384,441 | 100% | ||
katteasis | 0 | 78,425,335,138 | 100% | ||
jnart | 0 | 19,559,196,372 | 100% | ||
jefpatat | 0 | 53,973,472,690 | 100% | ||
whitecollar | 0 | 3,876,012,470 | 100% | ||
landonator | 0 | 4,512,429,852 | 50% | ||
err0rist | 0 | 4,820,603,479 | 100% | ||
therealwolf | 0 | 444,397,209,403 | 40% | ||
podanrj | 0 | 10,992,697,734 | 100% | ||
makerhacks | 0 | 85,925,029,208 | 50% | ||
thomas10 | 0 | 5,639,239,885 | 100% | ||
irfandemire2084 | 0 | 5,669,260,323 | 100% | ||
astrizak | 0 | 1,257,809,404 | 100% | ||
photolander | 0 | 3,239,221,472 | 100% | ||
liverehab | 0 | 5,297,027,078 | 100% | ||
tcpaikano | 0 | 2,802,938,270 | 100% | ||
drmake | 0 | 110,434,480,147 | 100% | ||
beauknows | 0 | 26,186,496,368 | 100% | ||
omeratagun | 0 | 19,564,169,458 | 100% | ||
lostinhappiness | 0 | 17,107,165,220 | 100% | ||
steemmakers | 0 | 33,731,486,597 | 100% | ||
engrbrain1 | 0 | 23,798,600,139 | 100% | ||
zharadum | 0 | 15,843,326,440 | 100% | ||
ottto | 0 | 3,799,794,463 | 100% | ||
fromhell2sky | 0 | 25,201,170,976 | 100% | ||
gleb-jeglov | 0 | 4,138,145,726 | 100% | ||
knfitaly | 0 | 6,107,827,639 | 35% | ||
salvadorcrg | 0 | 545,216,634 | 50% | ||
kaking | 0 | 258,508,378 | 50% | ||
kwlvarun | 0 | 4,544,080,275 | 100% | ||
techchat | 0 | 7,053,735,938 | 100% | ||
robali123 | 0 | 2,004,111,397 | 50% | ||
outofperspective | 0 | 2,695,773,003 | 100% | ||
poetrybyjeremy | 0 | 4,503,785,475 | 100% | ||
mp42b | 0 | 603,181,660 | 100% | ||
flash4yard | 0 | 1,673,994,674 | 100% | ||
longphibtc11 | 0 | 8,985,457,848 | 100% | ||
nathankaye | 0 | 26,867,279,283 | 100% | ||
rativiv | 0 | 4,259,031,258 | 10% | ||
garywood-c | 0 | 3,338,353,297 | 100% | ||
dmxmaster | 0 | 590,753,280 | 100% | ||
thesteemhouse | 0 | 2,984,304,846 | 100% | ||
vaughndemont | 0 | 21,006,232,650 | 100% | ||
rasor | 0 | 4,167,805,305 | 100% | ||
ramsesreyes | 0 | 2,886,194,502 | 100% | ||
docsweettooth | 0 | 412,328,160,264 | 100% | ||
aro.steem | 0 | 6,236,859,236 | 100% | ||
electricswine | 0 | 1,540,084,768 | 50% | ||
apoloo2 | 0 | 13,152,432,564 | 100% | ||
cisiagil | 0 | 7,320,331,869 | 100% | ||
stuttgart | 0 | 70,330,059,819 | 100% | ||
microoo | 0 | 573,223,655 | 50% | ||
endlesstopics | 0 | 4,635,786,146 | 100% |
<p>Congratulations! This post has been upvoted from the communal account, @minnowsupport, by astrizak from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, theprophet0, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows. Please find us at the <a href="https://discord.gg/HYj4yvw"> Peace, Abundance, and Liberty Network (PALnet) Discord Channel</a>. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.</p> <p>If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=minnowsupport&vesting_shares=102530.639667%20VESTS">50SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=minnowsupport&vesting_shares=205303.639667%20VESTS">100SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=minnowsupport&vesting_shares=514303.639667%20VESTS">250SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=minnowsupport&vesting_shares=1025303.639667%20VESTS">500SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=minnowsupport&vesting_shares=2053030.639667%20VESTS">1000SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=minnowsupport&vesting_shares=10253030.639667%20VESTS">5000SP</a>. <br><strong>Be sure to leave at least 50SP undelegated on your account.</strong></p>
author | minnowsupport |
---|---|
permlink | re-making-nvr-from-old-broken-android-smartphone-concept-and-first-steps-20180723t132046z |
category | diy |
json_metadata | "{"app": "beem/0.19.48"}" |
created | 2018-07-23 13:20:45 |
last_update | 2018-07-23 13:20:45 |
depth | 1 |
children | 0 |
last_payout | 2018-07-30 13:20:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,704 |
author_reputation | 148,902,805,319,183 |
root_title | "Making nvr from old broken android smartphone. Concept and first steps" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 65,696,874 |
net_rshares | 0 |
<div class='pull-right'><center><a href='http://www.steemmakers.com'><img src='https://www.steemmakers.com/img/comment_logo_makers.png' /></a></center></div><b>Congratulations</b> This post has been upvoted by SteemMakers. We are a community-based project that aims to support makers and DIYers on the blockchain in every way possible. <br/><br/>Join our <a href='https://discord.gg/EFGbRuW'>Discord Channel</a> to connect with us and nominate your own or somebody else's posts in our review channel.<br/><br/><b>Help us to reward you for making it !</b> Join <a href='https://www.steemmakers.com/#/Trail'>our voting trail</a> or <a href='https://www.steemmakers.com/#/Delegation'>delegate steem power</a> to the community account. <br/><br/>Your post is also presented on the community website <a href='http://www.steemmakers.com'>www.steemmakers.com</a> where you can find other selected content. <br/><br/>If you like our work, please consider upvoting this comment to support the growth of our community. Thank you.
author | steemmakers |
---|---|
permlink | re-astrizak-making-nvr-from-old-broken-android-smartphone-concept-and-first-steps-20180723t091942418z |
category | diy |
json_metadata | "" |
created | 2018-07-23 09:19:33 |
last_update | 2018-07-23 09:19:33 |
depth | 1 |
children | 0 |
last_payout | 2018-07-30 09:19:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,019 |
author_reputation | 1,907,312,584,548 |
root_title | "Making nvr from old broken android smartphone. Concept and first steps" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 65,675,068 |
net_rshares | 0 |