-
Notifications
You must be signed in to change notification settings - Fork 154
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
Access Video Files Over FTP #13
Comments
@jinx10000 |
@shadow-1 Or is it only possible through Telnet? I can see it in telnet since you pointed it out. I want to set up a script to copy mp4's and push to my own cloud server. Not sure how to do this through Telnet. |
@jinx10000 Are you sure you can't see any files within Can you post a few screenshots of what you see through telnet and ftp? |
@shadow-1 |
@jinx10000 Try a dedicated ftp program file FileZilla. You will be able to browse to |
@shadow-1 Thank you very much for all your efforts with this. I returned the camera at one point because of its lack of ftp support. This makes it worth having. |
@jinx10000 So I think you will need to look into a third party ftp tool. For scripting purposes, a command line tool which doesn't require user intervention is probably best. FileZilla is a very nice tool. However it is a program with a graphical interface which doesn't suit automated scripts. |
@shadow-1 Thank you again for all your help. |
@shadow-1 |
@jinx10000 To check this. Run the command |
The date using that command is correct. The time stamp on the videos is one month ago. Very strange. I'll figure something else out. Right now, I delete everything older than 7 days in the place I was going to put it. It was deleting them as fast as I was downloading them from the camera. Took me a bit to realize what was going on. I was watching it download and then finding an empty folder... I'll just move it and make that folder delete after one month and 7 days... Or something similar. Thanks for your help with this. Really appreciate it. |
@jinx10000 Like I said, I don't normally use this feature. However I enabled it just to check and I can confirm that on my camera the timestamp in FileZilla appears to be spot on. |
Very strange. I'll have to play with it more. The folders had the right date name, the date function has the right date, yours has the right date. Weird stuff. I'm not home now but i will play with it more Wednesday when i get home. The only thing I can think of is I may have plugged it in very shortly before each video I caught. I don't have it on when I'm home. The motion freaks out my son for some reason. |
This issue is definitely on my side and specific to the PC. I pulled another computer out and all the dates look good in winscp ... I removed Filezilla and winscp but the problem still remains. I'm going to clear anything related in registry and by searching file structure. Not sure what could cause this... I'm also using an older version of winscp on the other computer. May try that but this seems to be something shared between Filezilla and winscp. Maybe some crazy setting I changed when playing with sync... |
Looks like WinSCP up to 5.5.6 preserves timestamp correctly (gmt) . It is one month ahead up to 5.7.7 and one month behind on 5.8.x up to current. Not sure if that's just me. |
@jinx10000 Perhaps there is a setting in WinSCP to change the way the date/time is displayed? You also said that the same issue occurs in FileZilla? I tested on WinSCP 5.9.2 which I already had on my computer and the timestamp is correct. |
I tried filezilla on a different PC and the dates are still off. I checked the timezone information and everything is correct on both. |
@shadow-1 Either way, last question and I'm good to close the issue. It's working with an older version of WinScp and doing everything I need. I'm really just curious at this point. I do have an unrelated question that is not an issue. I don't have a lot of experience with bash or Linux. However, as i said I'm pretty good at finding ways to make things work. Would it be possible to write a script that searches for mp4 files and offloads to another location, from the camera side? Easy, moderate, difficult, extremely difficult for someone with experience? To be clear, I'm not asking you to write it. Just curious if it's possible before I start doing the research. |
@shadow-1 |
@jinx10000 So you would like the camera to send the files to your router? Or would you prefer your router to fetch the files from the camera? Either way the script you will write will almost be identical. To do this on the camera itself would probably be a little more difficult as I only included a ftp server and no ftp client with the firmware. So with the current firmware, you would have to cross-compile a ftp client. This would probably be moderately difficult. I also haven't tried to setup cron jobs on the camera (scheduled tasks). It may not be enabled in the firmware at the moment. I can probably help you with this as it would be quite easy for me to enable these features by recompiling busybox and packaging it in a custom firmware. To run the script on the router may be easier than on the camera depending upon on your router. Your router may already come with a ftp client and if you have a router that is capable of running a custom firmware such as Tomato, DD-WRT, Gargoyle etc. There are probably already packages or addons you can install without compiling anything, so you would only need to write a script and schedule it to run regularly. |
@shadow-1 I have an RT-AC68U running ASUSWRT-Merlin. I believe it's loosely based on tomato. I never even thought about trying it from the router to the camera... I know it has a ftp server but i don't think it has a client. But you are absolutely right. Someone has probably already compiled an ftp client for it. I'll look into it from that side to start. Thank you! |
@jinx10000 So it looks like a ftp client has already been compiled for the rt-ac68u. I would say it would be easier to write a script on your router to fetch the files from the camera on a periodic basis rather than the other way around. |
@shadow-1 I saw one of the ftp clients on optware (ftpcopy) may make it easier. Description: A simple FTP client written to copy files or directories (recursively) from a FTP server. There is also an ftp sync option available via the gui that I had never noticed before, but from what I read it doesn't support anonymous logins. I haven't had time to try anything yet though. I have written and/or edited a few basic scripts for the router so I have a general idea of what will be needed. It's kind of weird that I didn't think about this honestly. Thanks again for all of your help and good luck with RTSP. That will be a nice addition if it works out. |
@jinx10000
|
@shadow-1 Was trying to set rclone up to push it straight to Google Drive for added security but the memory on the rt-ac68u doesn't seem to be enough to run it so that step still happens on the PC. I'll probably just end up hiding a second router with a drive plugged in to store the video in a more secure local location in case a thief is smart and grabs the cameras, router, drives and PCs. Accidentally clicked fork. Wasn't intentional. Don't have any intention of trying to create a fork of this... Again. Thanks for all your help. |
Hi there. Without any trouble and thanks to the good step-by-step instruction I installed the yi-hack-v3 on my Dome 1080p. But now I have a problem to access with ftp to the cam. |
@DJay79 |
@DJay79 @jinx10000 Raspberry Pi has by far the best community support in my opinion which makes it a good choice. |
True. That's a good idea. I actually have a raspberry pie resetting my modem, router, and security cameras as needed. Plan on having it reboot or reset power on the computer as well when it goes down. Love it but still learning my way around it. I have another one I plan on using to control some other stuff and I'm pretty sure I can hide it better than the first one... It probably will make a great secondary device to push backups to Google Drive and maybe even save a second copy on a hard drive in a better hidden place... Didn't think of that. I may need a second router at some point either way though because of the number of devices I have.... Have 25+ connected all the time. Figured it might be good to split the load. |
Thank you guys. With now knowing what to do with Telnet I was able to set a password with command |
@jinx10000 @DJay79 |
In anybody interested, this is utility to automatically download (if necessary compress) files from camera. |
hi @shadow-1 , i'm using YI DOME 1080p , May you make it can backup to Mi Router Gen3 Hard Disk . |
Hi, first of all, thanks to the author for the excellent work done on Yi_hack_V3! But, please help me by answering a couple of questions! Is it possible to change the FTP port, in the settings of the 1080p Yi Home camera? In what way could I take files from cameras via ftp, if the cameras on another network from the PC on which they need to be stored? Unfortunately I had almost no experience with FTP before, but I think it is quite possible to understand. |
My preferred configuration would to have the camera reach out via sftp and push new files from any sub-directory in /tmp/sd/record this way the camera can push files to a remote server regardless of the network it is currently connected to. I'm working on setting up dropbear for the secure connection, any advice on how to get this configured or links to resources would be awesome! |
How can you access video files over FTP?
SD Card does not appear to be mounted in the FTP server.
However, I can see the files when pulling the SD Card and looking in a card reader.
The text was updated successfully, but these errors were encountered: