A Data Vending Machine that uses ffmpeg to extract metadata and create thumbnails for video files.
Go to file
florian dc2d99e949 feat: Added encryption 2024-05-08 09:46:10 +02:00
src feat: Added encryption 2024-05-08 09:46:10 +02:00
.dockerignore Initial commit 2024-04-29 10:09:59 +02:00
.env.example Initial commit 2024-04-29 10:09:59 +02:00
.gitignore Initial commit 2024-04-29 10:09:59 +02:00
.nvmrc Initial commit 2024-04-29 10:09:59 +02:00
.prettierrc feat: Added encryption 2024-05-08 09:46:10 +02:00
Dockerfile feat: add params 2024-04-29 19:38:59 +02:00
LICENSE Initial commit 2024-04-29 10:09:59 +02:00
README.md Initial commit 2024-04-29 10:09:59 +02:00
development.mjs feat: add params 2024-04-29 19:38:59 +02:00
package-lock.json feat: Added encryption 2024-05-08 09:46:10 +02:00
package.json feat: Added encryption 2024-05-08 09:46:10 +02:00
tsconfig.json Initial commit 2024-04-29 10:09:59 +02:00

README.md

Video Thumbnail Creation DVM

A Data Vending Machine that uses ffmpeg to extract metadata and create thumbnails for video files. notes

Example Input

{
    "kind": 5204,
    "content": "",
    "tags": [
        [ "i", "https://cdn.satellite.earth/4050ff8c96b295ded9de688fb8a06aa7e2879413281f4dd9b0b6547b4a18819d.mp4", "url", "ws://localhost:4869" ],
        [ "output", "image/jpeg" ],
        [ "relays", "ws://localhost:4869" ]
    ]
}

Example Output

{
  "content": "",
  "kind": 6204,
  "tags": [
    [
      "request",
      "{\"id\":\"1badb978c9e6cc67e2d1bd4949a65a4da0aaabfc2d01e7e886cd83d7683dd2de\",\"pubkey\":\"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798\",\"created_at\":1714336010,\"kind\":5204,\"tags\":[[\"i\",\"https://cdn.satellite.earth/4050ff8c96b295ded9de688fb8a06aa7e2879413281f4dd9b0b6547b4a18819d.mp4\",\"url\",\"ws://localhost:4869\"],[\"output\",\"image/jpeg\"],[\"relays\",\"ws://localhost:4869\"]],\"content\":\"\",\"sig\":\"8d1e56f91f721d127260f4313c1fe307e790632a0c2d855bf4c02ec9f38c4cef651b7adcd2acff4f0d8719136943f55de4314f76119dbe4d119d22a4daa6e7a9\"}"
    ],
    [
      "e",
      "1badb978c9e6cc67e2d1bd4949a65a4da0aaabfc2d01e7e886cd83d7683dd2de"
    ],
    [
      "p",
      "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"
    ],
    [
      "i",
      "https://cdn.satellite.earth/4050ff8c96b295ded9de688fb8a06aa7e2879413281f4dd9b0b6547b4a18819d.mp4",
      "url",
      "ws://localhost:4869"
    ],
    [
      "dim",
      "1280x720"
    ],
    [
      "duration",
      "341"
    ],
    [
      "size",
      "62340416"
    ],
    [
      "thumb",
      "https://media-server.slidestr.net/9a0179ae3f604a561c571312d8ac4c41ce7ecccfea603f4fc37457849d148083"
    ],
    [
      "x",
      "9a0179ae3f604a561c571312d8ac4c41ce7ecccfea603f4fc37457849d148083"
    ],
    [
      "thumb",
      "https://media-server.slidestr.net/69aaa1e0051beff35791fe21190807e87f581817e1db1a79c8e0cf6420d935a6"
    ],
    [
      "x",
      "69aaa1e0051beff35791fe21190807e87f581817e1db1a79c8e0cf6420d935a6"
    ],
    [
      "thumb",
      "https://media-server.slidestr.net/6c31e9917b3edb95b48d56885167645f1d55ea588842bda238ca8198f3e53e67"
    ],
    [
      "x",
      "6c31e9917b3edb95b48d56885167645f1d55ea588842bda238ca8198f3e53e67"
    ]
  ]
}