Ring Security Cameras

Browse posts, comment, and join in the discussion about Ring’s indoor and outdoor cameras.
M
How to interpret the timestamp in filename in downloaded files
app-settings
troubleshooting

Hi I had to, one at a time :-(, to download 543 videos, not I need to be able to label to file names correctly. i.e. the downloaded file from Ring: 1272036\_6870141820246961153\_stamp.mp4 How do I translate the filename to a proper yyyyMMddhhmmss name? Thanks

7228

0

10

28-09-2020 07:50:49

Responses (9)

  • D

    I've very recently discovered the filename issue. The day I need 80 videos that I can easily navigate the time each was taken, I find its just a string of numbers... I tried using the desktop app (I have an iMac) as I read this way of downloading files changes the filename to include a timestamp. But... you can only download one video at a time and if you have two videos taken within a minute it will only save one as the file name is the same. This is really annoying

    0

    03-08-2021 02:49:08

    • D

      The Windows 10 app does a excellent job of naming downloaded files [date-and-time]-where-motionORliveview ([2021-10-03T114708]-Upstairs-LiveView), I'm sure it is possible to get the same results from the browser download if the programmers were asked nicely, it really would keep the customer happy. Sadly the Windows 10 App has it days numbered, it's my main app for looking at my ring devices so I do nicely ask for it to be continued.

      0

      06-10-2021 09:16:11

      • E

        this script works fot the new filenames function Convert-RingNameToDate { [CmdletBinding()] param ( [Parameter(Mandatory=$true, Position=0, HelpMessage='Please add a help message here')] [System.Int64] $number ) $bits = [Convert]::ToString($number,2) $MSB = [string]$bits[0..30] -replace(' ','') $Dec = [convert]::ToInt64($MSB,2)+3600 $Epoch = Get-Date -Date "01/01/1970" $DateTime = $Epoch.AddSeconds($Dec) return (Get-date ($DateTime) -Format "[yyyy-MM-ddTHHmmss]") } $Folder = "c:\Ring" $Items = Get-ChildItem $Folder -Filter *.mp4 -Recurse Foreach ($item in $Items){ $result = $item.BaseName.substring(20, 19) $newname = "$(Convert-RingNameToDate($result))-Front Door-Motion.mp4" if (-not (Test-Path "$($item.DirectoryName)\$($newname)") ){ $item | Rename-Item -NewName $newname } }

        0

        26-04-2022 11:54:41

          P

          I found that Ring now uses a couple of different formats for the filenames and so the scripts above do not always work. Sometimes the number of characters in front of the timestamp number varies in length but the timestamp is always the last 19 digits of the filename. So I have edited (some might say butchered) the script to account for this. I also found that it doesn't account for the Daylight Savings time change we have in Australia from October to March). So I have added some comments about the change required to account for this. Here it is; function Convert-RingNameToDate { [CmdletBinding()] param ( [Parameter(Mandatory=$true, Position=0, HelpMessage='Please add a help message here')] [System.Int64] $number ) # #Convert string filename to a number (seconds after Epoch) # $bits = [Convert]::ToString($number,2) $MSB = [string]$bits[0..30] -replace(' ','') $Dec = [convert]::ToInt64($MSB,2) $Epoch = Get-Date -Date "01/01/1970" # # # # # Change AddHours value 10=AET (Apr-Sep) 11=AEST (Oct-Mar) # # # # $DateTime = $Epoch.AddSeconds($Dec).AddHours(10) return (Get-date ($DateTime) -Format "yyyy-MM-dd-HH-mm-ss") } $Folder = "c:\Ring" $Items = Get-ChildItem $Folder -Filter *.mp4 -Recurse Foreach ($item in $Items){ $itemname = $item.Basename # # # # # New coding to remove Ring extra filename text # # # # $length = $itemname.length $itemna = $itemname.Substring($length-19,19) $newname = "$(Convert-RingNameToDate($itemna)).mp4" if (-not (Test-Path "$($item.DirectoryName)\$($newname)") ){ $item | Rename-Item -NewName $newname } }

          0

          21-07-2022 07:51:10

      • R

        The other day, I had to organize a large number of downloaded files and encountered the same problem. If you’re looking for a simple non-coding solution, google PhotoRex. This app comes with a built-in function that can automatically convert timestamps for Ring video files. https://apps.microsoft.com/detail/9NRGVNK9WVMR

        0

        18-11-2023 12:51:35

          U

          I see that the file format has recently changed. Is there an updated way to get the timestamp from the file name?

          0

          13-01-2024 11:01:33

      Didn't find an answer ?

      Log in or create your Ring account to post a question and join in the on the conversation.

      Most Helpful Members

      U

      user63814

      3

      User
      Solutions

      B

      Boone

      1

      User
      Solution

      J

      j0hnmsch

      1

      User
      Solution