1
0
mirror of https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks.git synced 2025-09-25 07:11:30 +02:00

Created Take a video and upload it to an FTP-Server (markdown)

shinebar1001
2018-03-09 22:09:24 +01:00
parent 99f810dd5d
commit ddbc210253

@@ -0,0 +1 @@
```FILE=`date +%Y-%m-%d_%H.%M.mov` && ./avconv -rtsp_transport tcp -y -i rtsp://0.0.0.0:8554/unicast -vcodec copy -c:a aac -strict experimental -t 10 /system/sdcard/DCIM/VideoRecorder/$FILE && /system/sdcard/bin/curl --upload-file /system/sdcard/DCIM/VideoRecorder/$FILE -u username:password ftp://sitename.com/directory/$FILE```