3 Replies Latest reply on Oct 28, 2015 6:36 AM by shabaz

    Raspberry pi2 Recording to the memory card and synchronizing video data to the cloud

    vinaykushwah24

      Dear sir ,

       

       

      I am doing a project in which i have to record the video in car  moving car and that video have  to synchronise to cloud parallel. and my question is, if we are continuous recording video then  only a one video will be recorded or  multiple video will be recorded for certain length, synchronize (Means how) and also in which formate it will upload to cloud  and also is it possible to live stream from  that cloud ?

      i am following this link

       

      Car DVR with Raspberry Pi 2 and Pi Camera Board

        • Re: Raspberry pi2 Recording to the memory card and synchronizing video data to the cloud
          shabaz

          Hi Vinay,

           

          We need more information.

          Here is what is needed: - Can you post a diagram (click on "insert Image icon when you reply) showing your end goal (security for taxis? tracking of goods in transport? etc) and

          your requirements (image resolution, preferred communications networks, bandwidth needed, frame rate) and your current high level design (what hardware, what infrastructure, what networks you're

          planning to use. Also some text (e.g. a couple of hundred words at least) describing it sufficiently for a novice to your project to understand.

           

          Without this, we have no idea what to suggest without random guesses which gets you nowhere.

            • Re: Raspberry pi2 Recording to the memory card and synchronizing video data to the cloud
              vinaykushwah24

              Recording using pi

               

              Dear shabaz,

               

              First of all thank you so much for your  quick response

              i am explaining my project. i am assuming i have 3g connection. i am using raspberry pi and usb camera. the camera is recording recording in sd card 16gb samsung. now i want to transfer that video to cloud. parallel but my primary concern is i want to record video of moving car(dash board camera like) for 1 hour  that means  only 1 hour after that it must refreshed the local  video....after that i want to install google  drive or dropbox in raspberry pi to synchronize that folder....so further i can do process at receiving end.



              I am using hardware

              1.Raspberry pi and raspian os running with high speed internet

              2. USB camera


              Waiting for reply.....


              my mail id is vinaykushwah24@gmail.com

                • Re: Raspberry pi2 Recording to the memory card and synchronizing video data to the cloud
                  shabaz

                  Hi Vinay,

                   

                  3G is a bit limiting to transfer HD video (720p) in real time - it may work for a while but expect picture freezes due to no quality of service.

                  Personally, here is what I would do;

                  1. Record your video in (say) 60-second chunks to disk (e.g. USB stick). You'll end up with 60 of them over the hour (1440 in a day).

                  You can write a script to clear out the old ones after (say) 24 hours.

                  2. Extract a frame or multiple frames from each 60-second chunk. This can be done in near-real-time, i.e. with a lag of 60 seconds as each

                  60-second video is dumped to disk. You could extract (say) a frame every 10 seconds, total of 6 frames per file.

                  3. Upload those frames (e.g. 6 frames every minute) to a server in a cloud.

                  4. Present the information in a timeline to allow the users and hence the cloud application to be able to retrieve full 60-second chunk(s) as

                  required - guessing they won't want _all_ the chunks for example when there is complete inactivity apparent from the individual frames.

                   

                  Regarding the actual mechanism of getting the data into google drive/dropbox I don't know, but it shouldn't be too hard (others will have done it).

                  They may have restrictions however (number of uploads etc). Better to just pay for your own resources in a cloud, e.g. amazon.

                   

                  The above is just an idea. It is very high-level but hopefully you can flesh it out and then seek the appropriate information to turn it into a reality.