Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
VGSources
FFmpeg

How to Use FFmpeg to Stream Portrait Video to YouTube Live

A practical guide to sending portrait video to YouTube Live with FFmpeg, from intentional 9:16 framing and stream keys to encoder settings and fixes.

By VGSources Team 6 min read
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To stream portrait video with FFmpeg, make a deliberate 9:16 composition, encode it using YouTube Live’s supported settings, and send it to the stream’s ingestion URL with the stream key from YouTube Studio. A single portrait feed does not automatically create a separate horizontal feed. If you want both formats, configure YouTube’s vertical encoder route and send each format to its corresponding stream key.

Choose portrait-only or portrait and horizontal

Decide which viewer experience you want before configuring FFmpeg:

  • Portrait only: Send one 9:16 output to the selected stream’s configured ingestion URL and key. In YouTube Studio, check the vertical preview and layout before going public.
  • Horizontal and vertical together: YouTube’s Live Control Room can publish both formats. For a third-party encoder, open the vertical preview’s Auto menu, select Encoder, choose RTMP(S), and select a second stream key for the vertical feed. Send each correctly composed format to its corresponding key.

Use the dual-output path when the two audiences need different compositions; it also requires enough upload capacity for the outputs you send. YouTube’s vertical controls may use a center crop or another Studio-managed layout, so preview the result rather than assuming one encoder feed will produce both formats. See YouTube’s vertical live streaming guidance.

Prepare the video composition

Start with a portrait source when possible

A 9:16 source avoids losing content to a crop. If your source is landscape, choose how to adapt it before streaming: crop to fill the portrait frame, fit the whole image with unused space, or design a stacked layout. A center crop fills the frame but can cut off subjects and on-screen information at the sides.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Use an FFmpeg crop deliberately

FFmpeg’s crop filter takes width, height, and horizontal and vertical positions; if positions are omitted, it centers the crop. This schematic filter crops a landscape input to a centered 9:16 region and scales it to 720 by 1280:

-vf "crop=ih*9/16:ih:(iw-ih*9/16)/2:0,scale=720:1280"

This is an instructional template, not a universal command: check that the source dimensions and your FFmpeg build support the expression and output you choose. Preview representative frames. If a face, game HUD, subtitles, or other important content falls outside the crop, adjust the crop position or use a fit or designed layout instead. The filter options are documented in FFmpeg’s crop filter reference.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Get the YouTube stream destination and key

  1. In YouTube Studio, open the Live Control Room and create or select the scheduled stream.
  2. Copy that stream’s ingestion URL and stream key. They are specific to your account and stream; never publish or share the key.
  3. For dual-format streaming, configure the vertical encoder path in the vertical preview and use the second key YouTube provides for that vertical output.

Use the actual destination shown for your selected stream. The RTMP URL/key format can depend on the endpoint and FFmpeg build, so do not assume that a sample URL or key from another channel applies. YouTube’s Live Streams API documentation describes stream states and health status.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Set FFmpeg’s video, audio, and connection options

Match the output to YouTube’s guidance

YouTube supports RTMP/RTMPS ingestion, H.264, H.265 or AV1 video, up to 60 fps, and AAC or MP3 audio. Its encoder guidance recommends constant bitrate (CBR), progressive video with square pixels where applicable, and a two-second keyframe interval; do not exceed four seconds.

Choose bitrate for the codec, resolution, and frame rate you actually use. For 1080p at 30 fps, YouTube’s current settings guidance lists H.264 at 5 Mbps minimum and 14 Mbps recommended; for H.265 or AV1 at the same resolution and frame rate, it lists 4 Mbps minimum and 10 Mbps recommended. These are YouTube recommendations, not a guarantee that a connection can sustain the selected rate. Check the current table for other combinations and test your upload connection before choosing a bitrate.

Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

YouTube recommends RTMPS: “We recommend streaming to YouTube Live with RTMPS, a secure extension to the popular RTMP streaming video protocol.” Use the secure endpoint shown for your stream when available. YouTube’s RTMPS guidance specifies port 443; verify the scheme, host, path, and port against the endpoint details rather than substituting a guessed address. References: YouTube encoder settings, bitrates, and resolutions and YouTube RTMPS guidance.

Build a command for your source and encoder

There is no universal copy-and-paste command: input type, crop, encoder availability, resolution, frame rate, audio, endpoint, and key all vary. The following is a schematic output structure, not a tested command. Replace the placeholders, choose options that match your source and YouTube’s current table, and confirm your installed FFmpeg supports the selected encoder and protocol:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

ffmpeg [input options] -i INPUT [filter and encode options] -f flv 'RTMP_OR_RTMPS_INGEST_URL/STREAM_KEY'

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

The exact placement of the key depends on the URL format provided for the selected YouTube endpoint and the FFmpeg build. FFmpeg documents its command structure and RTMP output pattern, including use of FLV muxing, in the FFmpeg documentation. Do not put a real stream key in a public script, screenshot, or article.

Test privately, then start the stream

  1. Send a test with representative motion and audio before making the stream public.
  2. In Live Control Room, check the preview, stream health, and any reported errors. Confirm that portrait output has the intended dimensions and composition.
  3. When the image and sound are correct and YouTube reports a healthy incoming feed, start or publish the stream using the controls for your scheduled event.

For simultaneous formats, verify both previews and confirm each output is reaching the corresponding key. A healthy signal for one output does not establish that the other is configured correctly.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot common portrait-stream problems

The stream does not appear in Live Control Room

Confirm FFmpeg is running and sending data, then check the exact ingestion URL and key for the selected stream. Look at YouTube’s stream status and health messages; the API distinguishes states such as active, ready, created, inactive, and error.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

RTMPS will not connect

Check that you used the secure scheme and the exact ingestion host and path shown for the stream. Verify the port; YouTube’s RTMPS guidance specifies 443. Also confirm your FFmpeg build supports the protocol and that the key is associated with the selected stream.

The output is not portrait

Check the encoded width and height and their 9:16 ratio. Then inspect the vertical preview configuration: Studio may be using a managed layout rather than the encoder feed. For dual-format output, make sure the portrait signal is sent to the vertical key.

The crop cuts off important content

The default crop is centered. Change its x/y position and preview the result, or use a fit or stacked composition that preserves the full landscape image. YouTube’s vertical editing canvas also provides layout choices.

The stream drops or reports poor health

Compare the selected bitrate with YouTube’s table for your codec, resolution, and frame rate, then check whether the upload connection can reliably sustain it. Verify CBR, supported codecs, frame rate, and the keyframe interval. Use the health messages in Live Control Room to identify detected issues instead of changing unrelated settings at random.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Or let it run in the cloud

FFmpeg is the do-it-yourself option when you want control over the encoder and have a machine and connection available for the stream. If your goal is to keep uploaded videos looping on YouTube without leaving a computer running, StreamNeo runs the stream from the cloud: upload a recording or build a playlist, add your YouTube stream key, and go live. It plays uploaded videos rather than broadcasting a camera feed.

  • Nothing has to stay powered on at home; the stream runs from the cloud.
  • One flat price per slot for any uploaded quality, up to 4K 60fps, with no re-encode or quality tiers.
  • Automatic recovery if YouTube drops the stream.
  • The first day is free, with no card required.
  • Monthly: $9.99 per month.

Start your free StreamNeo day.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from Patch Notes

Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.