2 votos

Etiquetado de fecha, hora y metadatos GPS en vídeo para iOS

El 2019/10/16 (el pasado miércoles), hice paracaidismo en Las Vegas que grabaron pero el vídeo proporcionado estaba en 10 clips separados y ninguno tenía etiquetado el tiempo o los metadatos GPS. Quiero que estos como 1 video en mi iPhone que se ordena cronológicamente y se muestra en el mapa correctamente.

Para el vídeo único, he utilizado OpenShot para concatenar los 10 clips.

Para la fecha, hora y lugar, yo:

  1. He intentado buscar aplicaciones para iOS que puedan añadir información de metadatos geotag / GPS a videos (no fotos) pero aparentemente no existe ninguna.
  2. He probado a utilizar Video GeoTagger pero eso no funcionó en absoluto.
  3. Estoy tratando de usar ExifTool .

Obviamente, necesitaba la información del GPS que obtuve utilizando https://www.daftlogic.com/sandbox-google-maps-find-altitude.htm

Para ExifTool, he consultado la documentación ( enlace 1 , enlace 2 , enlace 3 )), se utiliza el comando & "PATH\exiftool.exe" -groupnames -s "PATH\Video 17-10-2019, 15 03 25.mov" para obtener los metadatos / etiquetas de un video que fue grabado en el iPhone y funciona como se pretende, y formuló el siguiente comando:

& "PATH\exiftool.exe" `
"-xmp:gpslatitude=35 56 57.2 N" `
"-xmp:gpslongitude=114 51 28.3 W" `
"-QuickTime:CreateDate=2019:10:16 12:00:00" `
"-QuickTime:ModifyDate=2019:10:16 12:00:00" `
"-QuickTime:TrackCreateDate=2019:10:16 12:00:00" `
"-QuickTime:TrackModifyDate=2019:10:16 12:00:00" `
"-QuickTime:MediaCreateDate=2019:10:16 12:00:00" `
"-QuickTime:MediaModifyDate=2019:10:16 12:00:00" `
"-QuickTime:CreationDate=2019:10:16 12:00:00-07:00" `
"-QuickTime:GPSCoordinates=35 56 57.2 N, 114 51 28.3 W, 660.00 m Above Sea Level" `
"-Composite:GPSLatitude=35 56 57.2 N" `
"-Composite:GPSLongitude=114 51 28.3 W" `
"-Composite:GPSPosition=35 56 57.2 N, 114 51 28.3 W" `
"-Composite:GPSAltitude=660.00 m" `
"-Composite:GPSAltitudeRef=Above Sea Level" `
"PATH\Skydive_OpenShot_ExifTool_Test.mp4"

Esto produce lo siguiente:

Warning: Sorry, Composite:GPSLatitude doesn't exist or isn't writable
Warning: Sorry, Composite:GPSLongitude doesn't exist or isn't writable
Warning: Sorry, Composite:GPSPosition doesn't exist or isn't writable
Warning: Sorry, Composite:GPSAltitude doesn't exist or isn't writable
Warning: Sorry, Composite:GPSAltitudeRef doesn't exist or isn't writable
    1 image files updated

(Los errores de composición parecen deberse a que se generan dinámicamente como... un compuesto de otras etiquetas).

En la aplicación Fotos de mi iPhone, la fecha y la hora son correctas, pero la información de GPS/ubicación no está disponible.

Etiquetas completas de los distintos archivos a continuación:

MP4 original archivo (fecha y hora incorrectas, sin GPS):

[ExifTool]      ExifTool Version Number         : 11.71
[File]          File Name                       : Skydive_OpenShot.mp4
[File]          Directory                       : .
[File]          File Size                       : 577 MB
[File]          File Modification Date/Time     : 2019:10:16 12:00:00+01:00
[File]          File Access Date/Time           : 2019:10:21 08:19:52+01:00
[File]          File Creation Date/Time         : 2019:10:21 08:19:21+01:00
[File]          File Permissions                : rw-rw-rw-
[File]          File Type                       : MP4
[File]          File Type Extension             : mp4
[File]          MIME Type                       : video/mp4
[QuickTime]     Major Brand                     : MP4  Base Media v1 [IS0 14496-12:2003]
[QuickTime]     Minor Version                   : 0.2.0
[QuickTime]     Compatible Brands               : isom, iso2, avc1, mp41
[QuickTime]     Movie Data Size                 : 604417274
[QuickTime]     Movie Data Offset               : 48
[QuickTime]     Movie Header Version            : 0
[QuickTime]     Create Date                     : 0000:00:00 00:00:00
[QuickTime]     Modify Date                     : 0000:00:00 00:00:00
[QuickTime]     Time Scale                      : 1000
[QuickTime]     Duration                        : 0:05:12
[QuickTime]     Preferred Rate                  : 1
[QuickTime]     Preferred Volume                : 100.00%
[QuickTime]     Preview Time                    : 0 s
[QuickTime]     Preview Duration                : 0 s
[QuickTime]     Poster Time                     : 0 s
[QuickTime]     Selection Time                  : 0 s
[QuickTime]     Selection Duration              : 0 s
[QuickTime]     Current Time                    : 0 s
[QuickTime]     Next Track ID                   : 3
[QuickTime]     Track Header Version            : 0
[QuickTime]     Track Create Date               : 0000:00:00 00:00:00
[QuickTime]     Track Modify Date               : 0000:00:00 00:00:00
[QuickTime]     Track ID                        : 1
[QuickTime]     Track Duration                  : 0:05:12
[QuickTime]     Track Layer                     : 0
[QuickTime]     Track Volume                    : 0.00%
[QuickTime]     Image Width                     : 1920
[QuickTime]     Image Height                    : 1080
[QuickTime]     Graphics Mode                   : srcCopy
[QuickTime]     Op Color                        : 0 0 0
[QuickTime]     Compressor ID                   : avc1
[QuickTime]     Source Image Width              : 1920
[QuickTime]     Source Image Height             : 1080
[QuickTime]     X Resolution                    : 72
[QuickTime]     Y Resolution                    : 72
[QuickTime]     Bit Depth                       : 24
[QuickTime]     Video Frame Rate                : 29.973
[QuickTime]     Matrix Structure                : 1 0 0 0 1 0 0 0 1
[QuickTime]     Media Header Version            : 0
[QuickTime]     Media Create Date               : 0000:00:00 00:00:00
[QuickTime]     Media Modify Date               : 0000:00:00 00:00:00
[QuickTime]     Media Time Scale                : 48000
[QuickTime]     Media Duration                  : 0:05:12
[QuickTime]     Media Language Code             : und
[QuickTime]     Handler Description             : SoundHandler
[QuickTime]     Balance                         : 0
[QuickTime]     Audio Format                    : mp4a
[QuickTime]     Audio Channels                  : 2
[QuickTime]     Audio Bits Per Sample           : 16
[QuickTime]     Audio Sample Rate               : 48000
[QuickTime]     Handler Type                    : Metadata
[QuickTime]     Handler Vendor ID               : Apple
[QuickTime]     Encoder                         : Lavf57.83.100
[Composite]     Image Size                      : 1920x1080
[Composite]     Megapixels                      : 2.1
[Composite]     Avg Bitrate                     : 15.5 Mbps
[Composite]     Rotation                        : 0

MP4 modificado por ExifTools archivo (fecha correcta, hora correcta, sin GPS):

[ExifTool]      ExifToolVersion                 : 11.71
[File]          FileName                        : Skydive_OpenShot_ExifTool_Test.mp4
[File]          Directory                       : .
[File]          FileSize                        : 577 MB
[File]          FileModifyDate                  : 2019:10:22 13:07:23+01:00
[File]          FileAccessDate                  : 2019:10:22 13:07:23+01:00
[File]          FileCreateDate                  : 2019:10:22 12:28:02+01:00
[File]          FilePermissions                 : rw-rw-rw-
[File]          FileType                        : MP4
[File]          FileTypeExtension               : mp4
[File]          MIMEType                        : video/mp4
[QuickTime]     MajorBrand                      : MP4  Base Media v1 [IS0 14496-12:2003]
[QuickTime]     MinorVersion                    : 0.2.0
[QuickTime]     CompatibleBrands                : isom, iso2, avc1, mp41
[QuickTime]     MovieHeaderVersion              : 0
[QuickTime]     CreateDate                      : 2019:10:16 12:00:00
[QuickTime]     ModifyDate                      : 2019:10:16 12:00:00
[QuickTime]     TimeScale                       : 1000
[QuickTime]     Duration                        : 0:05:12
[QuickTime]     PreferredRate                   : 1
[QuickTime]     PreferredVolume                 : 100.00%
[QuickTime]     PreviewTime                     : 0 s
[QuickTime]     PreviewDuration                 : 0 s
[QuickTime]     PosterTime                      : 0 s
[QuickTime]     SelectionTime                   : 0 s
[QuickTime]     SelectionDuration               : 0 s
[QuickTime]     CurrentTime                     : 0 s
[QuickTime]     NextTrackID                     : 3
[QuickTime]     TrackHeaderVersion              : 0
[QuickTime]     TrackCreateDate                 : 2019:10:16 12:00:00
[QuickTime]     TrackModifyDate                 : 2019:10:16 12:00:00
[QuickTime]     TrackID                         : 1
[QuickTime]     TrackDuration                   : 0:05:12
[QuickTime]     TrackLayer                      : 0
[QuickTime]     TrackVolume                     : 0.00%
[QuickTime]     ImageWidth                      : 1920
[QuickTime]     ImageHeight                     : 1080
[QuickTime]     GraphicsMode                    : srcCopy
[QuickTime]     OpColor                         : 0 0 0
[QuickTime]     CompressorID                    : avc1
[QuickTime]     SourceImageWidth                : 1920
[QuickTime]     SourceImageHeight               : 1080
[QuickTime]     XResolution                     : 72
[QuickTime]     YResolution                     : 72
[QuickTime]     BitDepth                        : 24
[QuickTime]     VideoFrameRate                  : 29.973
[QuickTime]     MatrixStructure                 : 1 0 0 0 1 0 0 0 1
[QuickTime]     MediaHeaderVersion              : 0
[QuickTime]     MediaCreateDate                 : 2019:10:16 12:00:00
[QuickTime]     MediaModifyDate                 : 2019:10:16 12:00:00
[QuickTime]     MediaTimeScale                  : 48000
[QuickTime]     MediaDuration                   : 0:05:12
[QuickTime]     MediaLanguageCode               : und
[QuickTime]     HandlerDescription              : SoundHandler
[QuickTime]     Balance                         : 0
[QuickTime]     AudioFormat                     : mp4a
[QuickTime]     AudioChannels                   : 2
[QuickTime]     AudioBitsPerSample              : 16
[QuickTime]     AudioSampleRate                 : 48000
[QuickTime]     HandlerVendorID                 : Apple
[QuickTime]     Encoder                         : Lavf57.83.100
[QuickTime]     GPSCoordinates                  : 35 deg 56' 57.20" N, 114 deg 51' 28.30" W, 660 m Above Sea Level
[QuickTime]     HandlerType                     : Metadata Tags
[QuickTime]     CreationDate                    : 2019:10:16 12:00:00-07:00
[QuickTime]     MovieDataSize                   : 604417274
[QuickTime]     MovieDataOffset                 : 277799
[XMP]           XMPToolkit                      : Image::ExifTool 11.71
[Composite]     ImageSize                       : 1920x1080
[Composite]     Megapixels                      : 2.1
[Composite]     AvgBitrate                      : 15.5 Mbps
[Composite]     GPSAltitude                     : 660 m
[Composite]     GPSAltitudeRef                  : Above Sea Level
[Composite]     GPSLatitude                     : 35 deg 56' 57.20" N
[Composite]     GPSLongitude                    : 114 deg 51' 28.30" W
[Composite]     Rotation                        : 0
[Composite]     GPSLatitudeRef                  : North
[Composite]     GPSLongitudeRef                 : West
[Composite]     GPSPosition                     : 35 deg 56' 57.20" N, 114 deg 51' 28.30" W

MOV grabado con el iPhone (fecha, hora y GPS correctos):

[ExifTool]      ExifTool Version Number         : 11.71
[ExifTool]      Warning                         : [minor] The ExtractEmbedded option may find more tags in the movie data
[File]          File Name                       : Video 17-10-2019, 15 03 25.mov
[File]          Directory                       : .
[File]          File Size                       : 171 MB
[File]          File Modification Date/Time     : 2019:10:20 17:16:59+01:00
[File]          File Access Date/Time           : 2019:10:21 08:17:10+01:00
[File]          File Creation Date/Time         : 2019:10:21 08:17:04+01:00
[File]          File Permissions                : rw-rw-rw-
[File]          File Type                       : MOV
[File]          File Type Extension             : mov
[File]          MIME Type                       : video/quicktime
[QuickTime]     Major Brand                     : Apple QuickTime (.MOV/QT)
[QuickTime]     Minor Version                   : 0.0.0
[QuickTime]     Compatible Brands               : qt
[QuickTime]     Movie Data Size                 : 179596094
[QuickTime]     Movie Data Offset               : 36
[QuickTime]     Movie Header Version            : 0
[QuickTime]     Create Date                     : 2019:10:17 14:03:25
[QuickTime]     Modify Date                     : 2019:10:17 14:03:53
[QuickTime]     Time Scale                      : 600
[QuickTime]     Duration                        : 27.29 s
[QuickTime]     Preferred Rate                  : 1
[QuickTime]     Preferred Volume                : 100.00%
[QuickTime]     Preview Time                    : 0 s
[QuickTime]     Preview Duration                : 0 s
[QuickTime]     Poster Time                     : 0 s
[QuickTime]     Selection Time                  : 0 s
[QuickTime]     Selection Duration              : 0 s
[QuickTime]     Current Time                    : 0 s
[QuickTime]     Next Track ID                   : 5
[QuickTime]     Track Header Version            : 0
[QuickTime]     Track Create Date               : 2019:10:17 14:03:25
[QuickTime]     Track Modify Date               : 2019:10:17 14:03:53
[QuickTime]     Track ID                        : 1
[QuickTime]     Track Duration                  : 27.29 s
[QuickTime]     Track Layer                     : 0
[QuickTime]     Track Volume                    : 0.00%
[QuickTime]     Image Width                     : 3840
[QuickTime]     Image Height                    : 2160
[QuickTime]     Clean Aperture Dimensions       : 3840x2160
[QuickTime]     Production Aperture Dimensions  : 3840x2160
[QuickTime]     Encoded Pixels Dimensions       : 3840x2160
[QuickTime]     Graphics Mode                   : ditherCopy
[QuickTime]     Op Color                        : 32768 32768 32768
[QuickTime]     Compressor ID                   : hvc1
[QuickTime]     Source Image Width              : 3840
[QuickTime]     Source Image Height             : 2160
[QuickTime]     X Resolution                    : 72
[QuickTime]     Y Resolution                    : 72
[QuickTime]     Compressor Name                 : HEVC
[QuickTime]     Bit Depth                       : 24
[QuickTime]     Video Frame Rate                : 59.993
[QuickTime]     Balance                         : 0
[QuickTime]     Audio Format                    : mp4a
[QuickTime]     Audio Channels                  : 1
[QuickTime]     Audio Bits Per Sample           : 16
[QuickTime]     Audio Sample Rate               : 44100
[QuickTime]     Purchase File Format            : mp4a
[QuickTime]     Matrix Structure                : 1 0 0 0 1 0 0 0 1
[QuickTime]     Content Describes               : Track 1
[QuickTime]     Media Header Version            : 0
[QuickTime]     Media Create Date               : 2019:10:17 14:03:25
[QuickTime]     Media Modify Date               : 2019:10:17 14:03:53
[QuickTime]     Media Time Scale                : 600
[QuickTime]     Media Duration                  : 27.29 s
[QuickTime]     Media Language Code             : und
[QuickTime]     Gen Media Version               : 0
[QuickTime]     Gen Flags                       : 0 0 0
[QuickTime]     Gen Graphics Mode               : ditherCopy
[QuickTime]     Gen Op Color                    : 32768 32768 32768
[QuickTime]     Gen Balance                     : 0
[QuickTime]     Handler Class                   : Data Handler
[QuickTime]     Handler Vendor ID               : Apple
[QuickTime]     Handler Description             : Core Media Data Handler
[QuickTime]     Meta Format                     : mebx
[QuickTime]     Handler Type                    : Metadata Tags
[QuickTime]     GPS Coordinates                 : 36 deg 6' 23.04" N, 115 deg 10' 15.96" W, 640.246 m Above Sea Level
[QuickTime]     Make                            : Apple
[QuickTime]     Model                           : iPhone X
[QuickTime]     Software                        : 13.1.2
[QuickTime]     Creation Date                   : 2019:10:17 07:03:25-07:00
[Composite]     Image Size                      : 3840x2160
[Composite]     Megapixels                      : 8.3
[Composite]     Avg Bitrate                     : 52.7 Mbps
[Composite]     GPS Altitude                    : 640.246 m
[Composite]     GPS Altitude Ref                : Above Sea Level
[Composite]     GPS Latitude                    : 36 deg 6' 23.04" N
[Composite]     GPS Longitude                   : 115 deg 10' 15.96" W
[Composite]     Rotation                        : 0
[Composite]     GPS Position                    : 36 deg 6' 23.04" N, 115 deg 10' 15.96" W

1voto

mythofechelon Puntos 276

Tenía la sospecha de que Fotos de iOS requiere que los vídeos sean archivos MOV para que se muestren los datos de ubicación.

Así que convertí el archivo MP4 en un archivo MOV utilizando el siguiente comando:

& "PATH\ffmpeg.exe" -i "PATH\Skydive_OpenShot_ExifTool_Test.mp4" -acodec copy -vcodec copy -f mov "PATH\Skydive_OpenShot_ExifTool_Test.mov"

Luego añadí los metadatos / etiquetas al archivo MOV utilizando el siguiente comando:

& "PATH\exiftool.exe" `
"-QuickTime:CreationDate=2019:10:16 12:00:00-07:00" `
"-QuickTime:GPSCoordinates=35 56 57.2 N, 114 51 28.3 W" `
"PATH\Skydive_OpenShot_ExifTool_Test.mov"

Esto funcionó perfectamente como se puede ver en la siguiente captura de pantalla:

enter image description here

AppleAyuda.com

AppleAyuda es una comunidad de usuarios de los productos de Apple en la que puedes resolver tus problemas y dudas.
Puedes consultar las preguntas de otros usuarios, hacer tus propias preguntas o resolver las de los demás.

Powered by:

X