Browse Source

Update changelog and docs

DarthSim 1 year ago
parent
commit
d52c005446
2 changed files with 26 additions and 0 deletions
  1. 3 0
      CHANGELOG.md
  2. 23 0
      docs/getting_the_image_info.md

+ 3 - 0
CHANGELOG.md

@@ -1,6 +1,9 @@
 # Changelog
 
 ## [Unreleased]
+### Add
+- Add video streams info to the `/info` response.
+
 ### Change
 - Limit vector image sizes to `IMGPROXY_MAX_SRC_RESOLUTION`.
 

+ 23 - 0
docs/getting_the_image_info.md

@@ -56,6 +56,7 @@ imgproxy responses with a JSON body and returns the following info:
 * `iptc`: IPTC data
 * `xmp`: XMP data
 * `photoshop`: Photoshop metadata (currently, only the resolution data)
+* `video_streams`: info about the video streams (maximum 20 streams)
 * `video_meta`: metadata from the video
 
 **📝 Note:** There are lots of IPTC tags in the spec, but imgproxy supports only a few of them. If you need some tags to be supported, just contact us.
@@ -122,6 +123,28 @@ imgproxy responses with a JSON body and returns the following info:
   "height": 730,
   "size": 984963,
   "exif": {},
+  "video_streams": [
+    {
+      "type": "video",
+      "codec": "h264",
+      "bps": 16910024,
+      "fps": 24,
+      "language": "eng"
+    },
+    {
+      "type": "audio",
+      "codec": "eac3",
+      "bps": 768000,
+      "frequency": 48000,
+      "layout": "5.1(side)",
+      "language": "eng"
+    },
+    {
+      "type": "subtitle",
+      "codec": "subrip",
+      "language": "eng"
+    }
+  ],
   "video_meta": {
     "com.android.version": "9",
     "compatible_brands": "isommp42",