Qencode + Backblaze

Transcode and store video on Backblaze B2 — 75% less than AWS S3, with free egress to Cloudflare.

Overview

What This Integration Does

Qencode integrates with Backblaze B2 Cloud Storage as both a source and destination for video transcoding jobs. B2 provides an S3-compatible API, so configuring Qencode works the same as any S3-compatible provider — just point to your B2 endpoint. Pull source video from any B2 bucket, transcode it, and write the output back automatically. B2's low storage cost and free egress through Cloudflare’s Bandwidth Alliance make it one of the most cost-effective backends for video storage and delivery.

Architecture

How the Integration Works

Source

B2 bucket or URL

Qencode pulls your source video from a B2 bucket (or any URL).

Process

Transcode & package

Qencode transcodes, encrypts, and packages the video per your job configuration.

Deliver

Destination bucket

Encoded files are written directly to your destination B2 bucket.

Serve

Via any CDN

Serve via any CDN, or any HTTP endpoint pointing to the B2 bucket.

Getting Started

Setup Steps

  1. Create your B2 bucket

    In the Backblaze web console go to Buckets, click “Create a bucket“. Set it to Private if you plan to use CDN or signed URLs for access control.

    This step is completed in the Backblaze console — see B2 Cloud Storage documentation

  2. Generate application keys

    In the Backblaze console, go to App Keys and create a new application key with read and write access scoped to your video bucket. Note the keyID and applicationKey.

    Store your application key as an environment variable. Never commit credentials to source control.

  3. Add credentials to Qencode

    In Transcode Media, go to Third-Party Storage and select Backblaze. Enter your Bucket Name, Access Key ID, and Secret Access Key. Enable Public permissions only if needed.

  4. Set destination in your transcode job

    In your API request, set the destination parameter to your B2 bucket URL with the desired output path. Use the S3-compatible endpoint format.

  5. Verify the output

    After the job completes, check your B2 bucket for the encoded files. Qencode sends a webhook notification when writing is complete.

Implementation

Code Example

Request Example

MP4 output to Backblaze B2

{
  "query": {
    "source": "https://myserver.com/my-source-folder/input.mov",
    "format": [
      {
        "output": "mp4",
        "destination": {
          "url": "b2://backblaze.com/my-bucket/folder/output.mp4",
          "key": "YOUR_ACCOUNT_KEY",
          "secret": "YOUR_ACCOUNT_SECRET",
          "permissions": "public-read"
        }
      }
    ]
  }
}

Replace placeholder credentials with your actual Backblaze access key and secret. Use environment variables in production.

For a step-by-step walkthrough, see Tutorial: Backblaze B2 Integration

Pricing

Cost Context

Storage costs at Backblaze

  • B2 Cloud Storage runs approximately $0.006/GB/month - roughly 75% less than AWS S3 Standard
  • The first 10 GB of storage are free. Egress to Cloudflare is free through the Bandwidth Alliance.
  • Standard egress is $0.01/GB.
See Backblaze B2 pricingfor current rates.

Estimated total cost per hour of 1080p video

Qencode transcoding (HLS, H.264)

~$1.80


B2 Storage (1 GB encoded output)

~$0.006/mo


Cloudflare CDN delivery (100 viewers × 1 GB)

$0.00 (Bandwidth Alliance)

Estimates based on standard configurations. Actual costs vary with codec, resolution, and encoding features. See Qencode pricing

We love creating powerful solutions that are aligned with the needs of your business.

Please send us a message if you have a question or Schedule a call for a demo to discuss your integration.

Let's talk

First Name
Last Name
Company
Email
Your Message

Contact us with any questions. We'd love to help.

Los Angeles, CA - (HQ)

San Francisco, CA

New York, NY