Parrot-Developers / libvideo-metadata

Parrot Drones video metadata library
Other
9 stars 6 forks source link

vmeta-extract outputs invalid JSON #1

Open and-viceversa opened 3 years ago

and-viceversa commented 3 years ago

Using the tutorial here I export video metadata like

./out/pdraw-macos/staging//native-wrapper.sh vmeta-extract --json ~/Desktop/out.json ~/path/to/my/movie.MP4

The resulting out.json appears to be invalid. There is no comma delimiter between the session and frame objects.

e.g.

{
"session":{
  "friendly_name":"XXXX",
  "maker":"Parrot",
  "model":"XXXX",
  "model_id":"XXXX",
  "serial_number":"XXXX",
  "software_version":"1.7.7",
  "build_id":"anafi-mark3-1.7.7",
  "title":"Fri, 02 Jul 2021 20:34:17 +0200",
  "media_date":"2021-07-02T20:34:17+02:00",
  "run_date":"2021-07-02T20:34:15+02:00",
  "run_id":"2F1C83D2841B2BC9D33BFFAB809D4068",
  "boot_id":"D95E444E9444CC1A12915274CD01F7D6",
  "takeoff_loc":{
    "latitude":XXXX,
    "longitude":XXXX,
    "altitude":XXXX
  },
  "video_mode":"Standard"
}          # <--- comma required here
"frame":[
{
  "time":0,
  "metadata":{
    "drone_quat":{
      "w":0.6580810546875,
      "x":-0.0042724609375,
      "y":-0.0009765625,
      "z":-0.75286865234375
    },

...