October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
VGSources
FFmpeg

FFmpeg YouTube Live Settings for a 720p60 Playlist on Ubuntu

A practical Ubuntu FFmpeg template for looping a 720p60 playlist to YouTube Live, with current encoder settings, stream-key guidance, playlist caveats, and troubleshooting.

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

For a 720p, 60 fps H.264 stream to YouTube Live, start with 8 Mbps video, constant bitrate (CBR), and a two-second keyframe interval. At 60 fps, that interval is 120 frames, so use -g 120. Set stereo AAC audio to 128 Kbps, send the stream over RTMPS where available, and use the ingest address and stream key shown in YouTube Studio’s Live Control Room. The command below is a starting template—not a tested command—and needs a compatible FFmpeg build and a playlist whose files suit the concat demuxer.

Recommended 720p60 settings for YouTube Live

YouTube’s current encoder guidance, accessed in 2026, lists these H.264 settings for 720p at 60 fps. The 8 Mbps value is the recommended video bitrate; 3 Mbps is the stated minimum, not a guarantee of acceptable quality or stable delivery on every connection. YouTube’s encoder settings and bitrate guidance should be checked again if its requirements change.

Setting Starting point What to know
Video codec H.264 These bitrate figures apply to H.264, not to AV1 or H.265.
Resolution and frame rate 1280×720 at 60 fps YouTube’s guidance supports frame rates up to 60 fps.
Video bitrate 8 Mbps recommended; 3 Mbps minimum Choose a rate your upload connection can sustain with headroom. The minimum is not the recommended target.
Bitrate mode CBR YouTube recommends constant bitrate encoding.
Keyframe interval 2 seconds; no more than 4 seconds At 60 fps, two seconds is 120 frames (-g 120); four seconds is 240 frames (-g 240).
Audio AAC stereo, 128 Kbps, 44.1 kHz YouTube also lists MP3 as an audio codec option.
Protocol RTMPS preferred YouTube lists RTMP and RTMPS and recommends RTMPS.

YouTube also lists square pixels, progressive scan, two B-frames, one reference frame, CABAC, Rec. 709 for SDR, and 8-bit depth for SDR. These are compatibility guidance for an H.264 SDR encode, not a claim that every listed value is mandatory for every live stream.

Prepare Ubuntu, FFmpeg, and the playlist

Check the FFmpeg build

FFmpeg options and available encoders depend on the version and how the program was built. Check the installed version and confirm that the build includes libx264 before using the example:

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.
ffmpeg -version
ffmpeg -encoders | grep libx264

If the encoder is absent, install or build an FFmpeg version with libx264 enabled, or adapt the command to an encoder that is available and compatible with your setup. Consult local option help for your installed build. The FFmpeg documentation index notes that its online documentation is regenerated nightly for the newest revision; older installations may differ.

Make concat inputs consistent

The concat demuxer is intended for files with matching streams, including compatible codecs and time bases. A playlist that mixes different stream layouts or encoding characteristics may produce timestamp warnings, bad transitions, or playback problems. Normalize files to common stream properties first, or test the transitions with the actual playlist. A September 2024 FFmpeg-user reply describes the stream-consistency constraint; a separate September 2024 playlist report illustrates errors with a heterogeneous playlist, but does not establish that all mixed playlists fail.

Create a text file such as playlist.txt, with one file entry per line. For example:

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.
file '/home/username/videos/gameplay-01.mp4'
file '/home/username/videos/gameplay-02.mp4'

Use paths that exist on your Ubuntu machine. The example command uses -safe 0 to allow ordinary absolute paths; only put files you trust in this playlist.

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

Get the YouTube ingest address and stream key

  1. Open YouTube Studio and go to the Live Control Room for the stream you intend to start.
  2. Copy the server or ingest address and the stream key displayed for that stream. Use RTMPS when the offered destination supports it.
  3. Keep the key private. Do not paste it into a public script, shared terminal transcript, screenshot, or log. Treat it like a password: anyone with access to it may be able to send video to your stream.
  4. In the command below, replace the destination placeholder with the RTMPS address and key in the format required by the Live Control Room. The destination is account- and stream-specific; do not reuse an example address or another stream’s key.

Starting FFmpeg command for a looping 720p60 playlist

This template reads the concat playlist in real time, loops it indefinitely, scales video to fit within 1280×720 while preserving aspect ratio, pads unused space, and converts output to 60 fps. It assumes the input files can be read by the concat demuxer and that your FFmpeg build includes libx264. Encoding controls beyond the platform’s stated settings are practical template choices; this command has not been verified on every Ubuntu release or FFmpeg build.

ffmpeg -re -stream_loop -1 -f concat -safe 0 -i playlist.txt 
  -vf "scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,fps=60,format=yuv420p" 
  -c:v libx264 -preset veryfast -profile:v high -b:v 8M -maxrate 8M -bufsize 16M 
  -g 120 -keyint_min 120 -sc_threshold 0 
  -c:a aac -b:a 128k -ar 44100 -ac 2 
  -f flv 'rtmps://<ingest-address>/<stream-key>'
  • -re reads the input at its intended playback rate; -stream_loop -1 repeats the playlist indefinitely.
  • -vf scales and pads to a 1280×720 frame, converts to 60 fps, and outputs a pixel format commonly used for H.264 playback. If you need a different aspect-ratio treatment, adjust the filter and verify the result.
  • -b:v 8M sets the target video bitrate. Matching -maxrate 8M and a buffer are common ways to constrain the rate, but YouTube’s guidance is the CBR recommendation; verify the behavior of your encoder and FFmpeg build rather than assuming these flags guarantee identical rate control everywhere.
  • -g 120 sets the GOP size to 120 frames, which corresponds to YouTube’s two-second interval at 60 fps. The frame-count conversion follows from the stated interval and frame rate. Do not let the interval exceed four seconds—240 frames at 60 fps.
  • -c:a aac -b:a 128k -ar 44100 -ac 2 selects AAC stereo at 128 Kbps and 44.1 kHz.
  • -f flv selects the RTMP-family streaming container used by this template. Replace the placeholder destination with the exact RTMPS destination and key from your Live Control Room.

The source resolution and frame rate may differ from the output because the filter explicitly scales and converts them. If the source is already 720p60 and you do not want scaling or frame-rate conversion, test a version without those filter operations and confirm that the output remains 1280×720 at 60 fps.

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.

Test and monitor before relying on the stream

  1. Run the command with the real playlist and verify that FFmpeg can open every file and sustain real-time output. Watch the terminal for input errors, timestamp warnings, or output that falls behind.
  2. Check the YouTube Live Control Room’s stream health while the stream is being sent. Confirm that the stream is reaching YouTube and that audio and video are present.
  3. Listen to the audio and inspect scenes with movement, transitions, and the most demanding visual detail in your playlist. YouTube Help says: “Make sure to test before you start your live stream. Tests should include audio and movement in the video similar to what you’ll be doing in the stream.”
  4. Make sure the available upload speed can sustain the encoded total bitrate with headroom. YouTube advises choosing settings reliable for the connection and testing upload speed. If delivery is unstable, lower the bitrate or improve the connection rather than assuming 8 Mbps will work on every network.

Troubleshooting common failures

FFmpeg reports that the encoder is unknown

The installed build may not include libx264. Check ffmpeg -encoders and use a build with that encoder or adapt the command to an available compatible encoder. Options vary by build.

The playlist fails, glitches at transitions, or prints timestamp warnings

Check that every listed file exists and is readable, then verify that the files have matching stream layouts, codecs, and time bases. Normalize inconsistent items or test them individually before putting them back in the concat list. The 2024 mailing-list examples are illustrative, not proof that every heterogeneous playlist will fail.

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

YouTube does not receive the stream

Recheck the Live Control Room’s destination and key, including the RTMPS address and the required formatting. A key for another stream or a mistyped destination will not identify the intended broadcast. Keep credentials out of shared logs when troubleshooting.

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

Stream health is poor or frames fall behind

Check both the local FFmpeg output and upload stability. The 8 Mbps figure is a video bitrate, so the connection also needs capacity for audio and normal network variation. Try YouTube’s 3 Mbps stated minimum if necessary, or improve the connection; then retest quality and stream health. The title alone cannot determine whether a particular Ubuntu machine can encode this playlist at 720p60 in real time, so test on the target system.

Video is stretched, has bars, or does not look like the source

The scale-and-pad filter preserves aspect ratio and fills the remainder of the 720p frame with padding. That may create bars when the source aspect ratio differs from 16:9. Inspect the output and change the filter only if you accept the resulting crop, bars, or distortion trade-off.

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

Copyright and YouTube live-stream eligibility

Only stream videos you have the rights to use. A playlist being technically valid does not establish permission to broadcast its music, gameplay footage, cutscenes, or other material. Check the rights and applicable YouTube policies for every item, and review YouTube’s current requirements in the Live Control Room before scheduling a stream. This guide does not establish a blanket rule that any particular game footage or reused content is permitted.

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.

Or let it run in the cloud

If the goal is to keep a prerecorded playlist live on YouTube without leaving Ubuntu running, StreamNeo is a cloud service from Yorker Media: upload your recording or playlist, add your YouTube stream key once, and go live. Your computer and home connection do not need to stay on. StreamNeo loops uploaded videos to YouTube; it does not stream from a camera.

  • There is one flat price per slot for any uploaded quality up to 4K 60 fps, with no re-encoding or quality tiers.
  • It includes automatic recovery if YouTube drops the stream, 24/7 looping and playlists, support, and 10 GB storage per slot pooled across active slots.
  • The first day is free with no card, once per account. Billing options are a day, week, month, six months, or year, and you can cancel any time.
  • For Indian customers, UPI and cards are supported; card checkout is available worldwide. Contact support for five or more slots.

Monthly pricing is $9.99 per month. See StreamNeo for details, or start the free first 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 *

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.

More from Patch Notes

Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

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.