Download all files from Blackvue dashcam to your Synology over Wifi

To archive all files from your Blackvue cloud-enabled dashcam to your Synology NAS without removing your SD card, simply do the following:

1. Connect your Blackvue dashcam to your local network using its cloud feature.
2. Find the IP of your Blackvue dashcam by checking the dhcp settings from your router, or by using an app like Fing for iPhone (look for network adapter with brand Pittasoft). It might be handy to use a dhcp reservation in your router to make sure the camera always has the same IP.
3. Open a good text editor like Notepad++ (Windows) or TextWrangler (Mac) and paste the code below in a new file.

cd "$(dirname "$0")"
for file in `curl | sed 's/^n://' | sed 's/F.mp4//' | sed 's/R.mp4//' | sed 's/,s:1000000//' | sed $'s/\r//'`; do wget -c$file\F.mp4; wget -c$file\R.mp4; wget -nc$file\F.thm; wget -nc$file\R.thm; wget -nc$file.gps; wget -nc$file.3gf; done

*Please note that the line “for file in” goes all the way to “done”. This needs to be one line!

Update: You can also download the script above here, but you will still need to edit the IP address using a decent texteditor like the ones mentioned above. No Word, Wordpad or any rich text editor.

4. Change the IP in the script to your Blackvue Dashcam IP.

5. Save this file to a (new)share on your Synology and call it

6. Go to Synology DSM, Configuration, Task scheduler

7. Choose “User defined script” and enter
sh /volume1/name_of_your_blackvue_archive_share/
and set the schedule to run every day at a time your Blackvue will be connected to your local network for a while.

The procedure above will let your NAS download all files on the Blackvue dashcam, it will skip files already downloaded, and it will resume partially downloaded .mp4 files.

If you want the Synology NAS to only download the files of that day, use this version of the script in stead:

cd "$(dirname "$0")"
export BVDATE=`date +%Y%m%d`
echo $BVDATE
for file in `curl | sed 's/^n://' | sed 's/F.mp4//' | sed 's/R.mp4//' | sed 's/,s:1000000//' | sed $'s/\r//' | grep $BVDATE`; do wget -c$file\F.mp4; wget -c$file\R.mp4; wget -nc$file\F.thm; wget -nc$file\R.thm; wget -nc$file.gps; wget -nc$file.3gf; done

*Please note that the line “for file in” goes all the way to “done”. This needs to be one line! This version is also included in the download above.

This script also skips all files that are already downloaded, so you can start it multiple times the same day without redownloading all files.

Note: The upload speed of the camera is very slow. In my case, I need one minute to download a one minute file. I take no responsibility for anything. Use at your own risk.

Full credits for the original script to Gadgetblogist

12 responses to “Download all files from Blackvue dashcam to your Synology over Wifi”

  1. Edward says:

    This works great. I’m using Mint Linux 18. I also made adjustments to the script to download “yesterday only” files in case I had no time to download “today only” files. I called it
    The difference in the code is just this:
    export BVDATE=`date -d yesterday +%Y%m%d`

    See full code below

    cd “$(dirname “$0″)”
    export BVDATE=`date -d yesterday +%Y%m%d`
    echo $BVDATE
    for file in `curl | sed ‘s/^n://’ | sed ‘s/F.mp4//’ | sed ‘s/R.mp4//’ | sed ‘s/,s:1000000//’ | sed $’s/\r//’ | grep $BVDATE`; do wget -c http:$


  2. Arno says:

    I implemented this on my QNAP nas. Works great!
    Needed some extra handling to schedule the script in the crontab since QNAP does not have a graphical scheduling option. For who is interested in the crontab command, let me know.
    Now I want to figure out why the download script does does not work (access denied) when I disable the BlackVue’s own AP mode (change wifimode in config.ini). Idea’s are welcome.
    I want to disable the own AP so it automatically connects to my home WiFi once in reach

  3. Edward says:

    Looking for a modification on this script to download “today only from 4:00pm – current time” – not sure how to tweak it now.
    The reason why I wanted this is so if I know something happened commuting home after work (usually after 4:00pm) I can download just that block on files. Better yet, I would love to set a timeframe in the script say from 5:00pm – 5:45pm – any ideas?

  4. Edward says:

    This mod allows one to enter a specific date of which the script will download all files. Date format is always YYYYMMDD


    bold=$(tput bold)
    normal=$(tput sgr0)
    cd “$(dirname “$0″)”
    read userdate
    export BVDATE=`date +$userdate`
    echo ${bold}NOW DOWLOANDING FILES FOR:${normal} $BVDATE
    for file in `curl | sed ‘s/^n://’ | sed ‘s/F.mp4//’ | sed ‘s/R.mp4//’ | sed ‘s/,s:1000000//’ | sed $’s/\r//’ | grep $BVDATE`; do wget -c$file\F.mp4; wget -c$file\R.mp4; wget -nc$file\F.thm; wget -nc$file\R.thm; wget -nc$file.gps; wget -nc$file.3gf; done

    Modify the IP if you need to.


  5. Marc says:

    Works like a charm! Thanks for the good work Bjorn! 🙂

  6. Alex says:

    How can the script to:
    1) create a directory of today’s date
    2) copy all files for today into that newly created directory?

    Many thanks.


  7. Alex says:

    following up on my above post, I’ve tried to make a new directory using the mkdir command (mkdir $BVDATE) and no directory was created but neither was there any error. I’m baffled… Any help is appreciated. thanks.

  8. Aschwin Rutgers says:

    Finally, found something that can work for me! Thanks in advance.
    I also own a DR650-2channel, and want to upload the video`s instantly. The car has wifi and internet, is it possible to upload every frame automatic to NAS?
    I use the system for security instead as of dashcam, so i want every video in the cloud, in case the steal the dashcam.
    Because the wifi of the Blackvue shuts off, and its not clear to me when or how the Blackvue is transporting the video`s to the cloud?
    And can it handle 2 camera systems at the time, i`m planning to buy a one channel system for the rear.

    Best regards,

  9. EDWARD says:

    I have the DR650S-2CH (main cam facing front and 2nd small cam facing rear) and a DR650S-1CH mounted on the front but facing the interior (driver / passenger).
    Currently I manually download files when I know there are videos of interest. Neither cams will automatically upload to the cloud. They don’t do that.
    Our car also has its own WiFi and allows for us to Live View it when so desired.
    To do what you want to do, you would need to have “perhaps” a Raspberry Pi in the vehicle running some sort of “Linux” OS. There you would want to set some kind of cron job to run every 2-3 minutes that would download the files into a dropbox folder that would then, sync with dropbox and you could then, retrieve files from your computer anywhere you have internet. There is a challenge there tho. If the Raspberry Pi is connecting to the camera, it means its not connected to the internet. Solution would be to connect to the same WiFi and hopefully “through the same network” find your camera(s) and download the files as I described.
    I have never done that before and I dont know if that would work actually. I wouldnt know of the top of my head how to set up the Raspberry Pi either.
    What you will have to figure out too is, battery power for both cameras and the Raspberry Pi.
    So have a good power scheme there. Power planning is everything! If your cameras, WiFi hotspot or Raspberry Pi have no power, you have a fancy useless system. Plan to have all batteries charging while the vehicle is running. Also figure out how long they will last when the vehicle shutdown / stops.
    If you have Mac at home you can setup some pretty sick automation that will move files from dropbox automatically all day so you dont have to buy dropbox premium space. Files would safely sit in your computer or NAS at home depending on how you set that automation.

    Good luck.
    I would love to try something like that but I have no time currently to build a raspberry pi and figure out a good script for the cron.


Leave a Reply

Your email address will not be published. Required fields are marked *