Use FFmpeg’s scale filter to produce a 1920×1080 video stream, preserve the source’s aspect ratio, loop the input file, and send the result to YouTube over RTMPS. A mismatched source shape requires a choice: keep the whole picture with bars or crop the edges to fill 16:9. The examples below show both approaches and the live settings to check.
Choose how the source should fit 1080p
“1080p” usually means a 1920×1080 output frame. If your video is not 16:9, scaling it directly to both dimensions can distort people, gameplay, and other objects. Decide whether to preserve the full image or fill the frame by cropping.
Keep the full image with padding
This example scales the video to fit within 1920×1080, then adds black padding where needed so the output frame is exactly 1920×1080:
scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2
Free tools Windows power users keep installed
One-click scans. No signup required.
#1 Best Overall
- 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.
The complete source image remains visible, but a non-16:9 source will have bars on two sides.
Fill 16:9 by cropping
This alternative scales until the frame is filled, then crops the excess:
scale=1920:1080:force_original_aspect_ratio=increase,crop=1920:1080
Rank #2
- 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.
The output fills the frame, but some of the source image is lost at the edges. Check important gameplay HUD elements and subtitles before choosing this option.
Recommended Free Tools
FFmpeg’s scale filter documentation describes width and height expressions and aspect-ratio constraints. The filter is applied to the video stream; it does not improve detail absent from a lower-resolution source.
Loop the complete file and stream it to YouTube
For replaying a whole file, use FFmpeg’s input-loop option rather than the video loop filter. The filter repeats buffered frames; for example, loop=loop=-1:size=1:start=0 repeats one frame, not an entire video. The filter documentation defines size as the buffered frame count and start as the first frame.
Rank #3
- 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.
Example command pattern for an H.264 1080p30 stream using the “keep full image” filter:
ffmpeg -re -stream_loop -1 -i input.mp4 -vf "scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2" -c:v libx264 -preset veryfast -b:v 5M -maxrate 5M -bufsize 10M -r 30 -g 60 -keyint_min 60 -sc_threshold 0 -c:a aac -b:a 128k -ar 44100 -f flv "rtmps://YOUR_INGEST_URL/YOUR_STREAM_KEY"
PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteReplace input.mp4 with your file and the final URL with the RTMPS ingest address and stream key shown in YouTube Live Control Room. Keep the key private; anyone with it may be able to stream to your channel. To use the crop-to-fill choice instead, replace the value after -vf with the crop filter shown above. This command is a starting pattern, not a guarantee that every input’s codecs, frame rate, or audio will suit your stream.
Rank #4
- 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
FFmpeg’s command documentation explains -vf as the simple video-filter option and -re as input pacing at the native frame rate, useful for real-time output. See FFmpeg documentation. Confirm input-loop option syntax against the FFmpeg version installed on your system.
Set live encoder values to match the stream
YouTube’s current encoder guidance, accessed 2026-10-03, recommends RTMPS, CBR bitrate encoding, a two-second keyframe interval (not over four seconds), and up to 60 fps. The recommended bitrate depends on the codec and frame rate; these are the H.264 values from YouTube’s table:
| Output | Minimum H.264 bitrate | Recommended H.264 bitrate |
|---|---|---|
| 1080p30 | 5 Mbps | 14 Mbps |
| 1080p60 | 6 Mbps | 17 Mbps |
The example command uses 5 Mbps as a basic 1080p30 starting point, not YouTube’s recommended bitrate. For 1080p30, the example’s -g 60 sets a 60-frame GOP, equivalent to two seconds at 30 fps. If you change frame rate, adjust the GOP to retain a two-second interval. Choose the bitrate row for the actual codec and frame rate; YouTube lists separate ranges for H.265 and AV1 as well. Its guidance recommends a bitrate your connection can sustain and an upload-speed test. See YouTube’s encoder settings.
The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Best Value
- 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.
YouTube Help says: “We recommend streaming to YouTube Live with RTMPS, a secure extension to the popular RTMP streaming video protocol.”
Test the stream and diagnose common failures
A command that runs locally does not establish that YouTube is receiving a healthy stream. Test with representative motion and audio, then watch YouTube Live Control Room’s stream-health messages during the broadcast.
- Picture looks stretched: do not force a mismatched source directly into 1920×1080. Use the fit-and-pad filter to retain the image or the scale-and-crop filter to fill the frame.
- Bars or missing edges: these are the expected tradeoff between fitting and filling. Switch filters only after checking that the alternative will not hide important content.
- YouTube reports unstable or insufficient bitrate: check upload capacity and select a sustainable rate from the row matching your resolution, frame rate, and codec. YouTube recommends testing upload speed and choosing a reliable quality.
- Stream is rejected or does not appear: verify the RTMPS ingest address and stream key copied from Live Control Room, the output codec/container options, and that the broadcast is configured to receive the stream.
- Unexpected freeze or repeated still frame: check whether a frame-loop filter was used in place of whole-file input looping. A filter configured with a one-frame buffer will repeat that frame.
Looping an input file and configuring encoder output do not themselves establish reconnection or process-restart behavior. For a continuous broadcast, monitor the process and YouTube’s health reporting rather than assuming a running command will recover from every interruption.
Or let it run in the cloud
If you do not want your own computer and home connection to keep the stream running, StreamNeo plays uploaded videos on a YouTube channel from the cloud. Upload a recording or build a playlist, add your YouTube stream key once, and go live. The cloud loops the video, so your computer can be off; StreamNeo automatically recovers if YouTube drops the stream. Videos stream as uploaded, up to 4K 60fps, at one flat price per slot with no quality tiers. The first day is free with no card. Monthly: $9.99 per month. Learn about StreamNeo or start your free first day.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Quick Recap
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.




