Error in extract metada videos

6 views
Skip to first unread message

Juan Camilo Bonilla Gonzalez

unread,
Jun 10, 2024, 5:45:51 PMJun 10
to camtrapR
Hi everyone, 

I tried to extract metada for the videos but I had an error. Works so well to pictures but not for videos. 

library (camtrapR)
library (RSQLite)
Sys.which ("exiftool")
setwd("C:/FotoCT_24")
Sitio_1 <- read.csv ("Datos9_CT2324_.csv", header = TRUE, sep = ";")
fotos_sitio_1 <- file.path ("Sitio_1")

#Creación de carpetas según estación de CT#
fotos_sitio_1_carpeta <-
  createStationFolders(inDir= fotos_sitio_1,
                       stations = as.character(Sitio_1$Station),
                       createinDir=TRUE)

#Extracción metadata de imágenes#
tabla_sitio_1 <-
  recordTable( inDir= fotos_sitio_1,
               IDfrom = "metadata", minDeltaTime = 60,
               deltaTimeComparedTo = "lastRecord",
               metadataSpeciesTag = "Species",
               metadataHierarchyDelimitor = "|",
               timeZone = "America/Bogota")

write.csv(tabla_sitio_1, "tabla sitio 1.csv")

#Extracción metadata de Videos#

tabla_sitio_2 <- recordTable(inDir  = fotos_sitio_1,
                             IDfrom = "metadata",
                             timeZone = "America/Bogota",
                             metadataSpeciesTag = "Species",
                             video  = list(file_formats = "avi",
                                           dateTimeTag  = "QuickTime:CreateDate",
                                           db_directory = "C:/FotoCT_24",
                                           db_filename = "digikam4.db")
)

Error: station directory Sitio_1/CT09/ was not found in digiKam albums. Skipping




1.png
2.png

Jürgen Niedballa

unread,
Jun 11, 2024, 9:35:54 PMJun 11
to Juan Camilo Bonilla Gonzalez, camtrapR
Hello,
please try tagging the avi file in digiKam and see if that resolves the issue. Any tag will do, doesn't need to be a species tag.
That will add the folder to the albums in the digiKam database, where it is currently not found, likely because the video is not tagged and it is the only video in that folder.

That is of course not ideal, but may be a workaround until I can fix the underlying issue.

--
You received this message because you are subscribed to the Google Groups "camtrapR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camtrapr+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/camtrapr/caf2809b-0484-48ee-ac89-818664bc294cn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages