mirror of
https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks.git
synced 2025-09-01 12:12:37 +02:00
1
Take a video and upload it to an FTP Server
shinebar1001 edited this page 2018-03-09 22:09:24 +01:00
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