{
    "name": "ffmpeg HLS converter",
    "auth": "Header X-Api-Key: <key>  or  Authorization: Bearer <key>",
    "usage": {
        "POST /convert (json)": "Body: {\"input\":\"path.mp4|mov|mkv|avi|...\"}  [requires auth]",
        "POST /convert (multipart)": "Form field \"file\" = video (mp4, mov, mkv, avi, flv, webm, ...)  [requires auth]",
        "POST /images/upload": "Form field \"file\" = image (jpg, png, gif, webp, avif, bmp, svg, ico, tif)  [requires auth]"
    },
    "response_fields": {
        "/convert": {
            "cdn_url": "Signed URL (expires)",
            "cdn_expires": "UNIX timestamp",
            "cdn_ttl_sec": "TTL in seconds"
        },
        "/images/upload": {
            "url": "Permanent public image URL (no expiry)",
            "filename": "Stored filename",
            "mime": "Detected MIME type",
            "size": "Bytes"
        }
    },
    "config": {
        "ffmpeg_bin": "ffmpeg",
        "output_dir": "/var/www/html/output",
        "segment_duration": 10,
        "mode": "copy",
        "cdn_base_url": "https://cdn.danaff.vn",
        "cdn_ttl_sec": 14400
    }
}