Dual HD

Dual format streaming: horizontal and vertical live video in one stream

Dual format streaming sends horizontal and vertical video at the same time. Dual HD defines frame sizes that place both videos side by side in one frame: horizontal on the left, vertical on the right. The encoder sends one stream, and a server crops it into two outputs. Horizontal video suits platforms such as Twitch and YouTube. Vertical video suits TikTok and Instagram. A platform with both a desktop player and a mobile player can show each viewer the right orientation.

For viewers

The video matches the screen orientation. There is no letterboxing from showing horizontal video on a vertical screen, or the other way around.

For streamers and broadcasters

Dual HD works with existing broadcasting software. Any encoder that supports a custom canvas size, such as OBS Studio, can produce a Dual HD stream. A server between the encoder and the platforms crops the frame and forwards each video to its destination.

Scope

Dual HD defines frame sizes and video positions only. It does not specify codecs, bitrates or other encoding settings. The frame is larger than a single video, so an efficient codec such as HEVC or AV1 is recommended. A reference server implementation is available on GitHub.

Dual HD example

Specification v1.1

Dual HD frame size specification v1.1 (PDF)

Frame sizes and image templates

In every frame size, the horizontal video is at the top-left corner (0, 0) and the vertical video is directly to its right, aligned to the top. The frame width is the sum of both video widths, and the frame height is the height of the taller video. The remaining area is unused. Each frame size is named after its frame width.


Dual HD 1760

Video formats: 720p horizontal, 480p vertical.

  • Frame size (w, h): 1760x854
  • Horizontal video
    • Size (w, h): 1280x720
    • Position (x, y): 0, 0
  • Vertical video
    • Size (w, h): 480x854
    • Position (x, y): 1280, 0
Download template
Dual HD 1760 template

Dual HD 2000

Video formats: 720p horizontal, 720p vertical.

  • Frame size (w, h): 2000x1280
  • Horizontal video
    • Size (w, h): 1280x720
    • Position (x, y): 0, 0
  • Vertical video
    • Size (w, h): 720x1280
    • Position (x, y): 1280, 0
Download template
Dual HD 2000 template

Dual HD 2640

Video formats: 1080p horizontal, 720p vertical.

  • Frame size (w, h): 2640x1280
  • Horizontal video
    • Size (w, h): 1920x1080
    • Position (x, y): 0, 0
  • Vertical video
    • Size (w, h): 720x1280
    • Position (x, y): 1920, 0
Download template
Dual HD 2640 template

Dual HD 3000

Video formats: 1080p horizontal, 1080p vertical.

  • Frame size (w, h): 3000x1920
  • Horizontal video
    • Size (w, h): 1920x1080
    • Position (x, y): 0, 0
  • Vertical video
    • Size (w, h): 1080x1920
    • Position (x, y): 1920, 0
Download template
Dual HD 3000 template

Dual HD 3640

Video formats: 1440p (2K) horizontal, 1080p vertical.

  • Frame size (w, h): 3640x1920
  • Horizontal video
    • Size (w, h): 2560x1440
    • Position (x, y): 0, 0
  • Vertical video
    • Size (w, h): 1080x1920
    • Position (x, y): 2560, 0
Download template
Dual HD 3640 template

Dual HD 4920

Video formats: 2160p (4K) horizontal, 1080p vertical.

  • Frame size (w, h): 4920x2160
  • Horizontal video
    • Size (w, h): 3840x2160
    • Position (x, y): 0, 0
  • Vertical video
    • Size (w, h): 1080x1920
    • Position (x, y): 3840, 0
Download template
Dual HD 4920 template

Encoder setup example

OBS Studio with Dual HD 2640

1. Set the canvas and output size:

  • Settings → Video → Base (Canvas) Resolution: 2640x1280
  • Settings → Video → Output (Scaled) Resolution: 2640x1280
  • Settings → Output → Rescale Output: disabled

2. Add an Image source with the Dual HD 2640 template. Use it as a guide to build the horizontal and vertical layouts, and hide it before going live.

If your hardware or upload bandwidth cannot handle 2640x1280, use a smaller Dual HD frame size. Alternatively, set Output (Scaled) Resolution to a uniformly scaled size, such as 1848x896 (70% of the width and height). Use a scaled output only if the receiving service supports scaled Dual HD.

Platform support

Streamrun supports Dual HD in production. It multistreams the horizontal and vertical video to different platforms at the same time.
» Streamrun help center: Dual Format Streaming

Dual format streaming is generally available on Twitch. Streamers can broadcast horizontal and vertical video at the same time, and viewers get the matching orientation on web and mobile.
» Twitch help center: Dual Format Streaming

YouTube supports dual streams with two separate stream keys: one for the horizontal video and one for the vertical video. With Dual HD, the server crops the frame and sends each video to its own stream key.
» Streamrun help center: YouTube Dual Stream

Processing example

Splitting with FFmpeg

Split a Dual HD 2640 file into a horizontal and a vertical output. Audio is copied to both outputs.

ffmpeg -i dualhd2640.mp4 \
  -filter_complex "[0:v]crop=1920:1080:0:0[horizontal]; [0:v]crop=720:1280:1920:0[vertical]" \
  -map "[horizontal]" -map "0:a?" -c:v libx264 -preset veryfast -c:a copy horizontal_1080p.mp4 \
  -map "[vertical]" -map "0:a?" -c:v libx264 -preset veryfast -c:a copy vertical_720p.mp4
        

For live streams, see the reference server implementation on GitHub.

Dual HD buttons

Use these buttons to link to dualhd.org and support the project. Thank you!

Dual HD button - black Dual HD button - blue