October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Mountain View desk6 min

FFmpeg YouTube Live Settings for a 720p60 Playlist on Ubuntu

A practical Ubuntu FFmpeg template for looping a 720p60 playlist to YouTube Live, with recommended encoding settings, setup checks, and fixes for common problems.
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), a two-second keyframe interval (120 frames), and AAC stereo audio at 128 Kbps. Use RTMPS when available. The command below is a starting template for looping a compatible playlist from Ubuntu; replace the input and ingest details, then test the actual files and connection before relying on it.

Recommended settings for 720p60

YouTube’s current encoder guidance recommends these settings for H.264 at 720p and 60 fps. They are platform recommendations, not a guarantee that a particular computer or internet connection can sustain the stream.

As an Amazon Associate I earn from qualifying purchases.

Setting Starting value How to apply it
Video codec H.264 Use FFmpeg’s libx264 encoder if available in your build.
Resolution and frame rate 1280 × 720 at 60 fps Scale and set the output frame rate; the example command does both.
Video bitrate 8 Mbps recommended; 3 Mbps minimum Choose a rate your upload connection can sustain with headroom. YouTube’s figures are guidance, not a promise of quality at every source or connection.
Bitrate mode CBR The example sets matching target and maximum rates as a practical way to constrain video bitrate; verify behavior with your FFmpeg build.
Keyframe interval 2 seconds recommended; no longer than 4 seconds At 60 fps, use -g 120 for two seconds; -g 240 corresponds to four seconds.
Audio AAC stereo, 128 Kbps, 44.1 kHz Use the example audio options unless your source or workflow requires a different compatible setup.
Ingest protocol RTMP or RTMPS; YouTube recommends RTMPS Use the endpoint and stream key shown in your channel’s Live Control Room.

YouTube also lists compatible H.264 characteristics including progressive scan, square pixels, two B-frames, one reference frame, CABAC, 8-bit SDR, and Rec. 709 for SDR. Treat these as compatibility guidance rather than requirements that apply to every stream. See YouTube’s live encoder settings for the current platform guidance.

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

Prepare Ubuntu and the playlist

Check your FFmpeg build

Before using the template, check the installed version and whether it includes the H.264 encoder:

#1 Best Overall
Sale
GMKtec G3S Mini PC Computers Intel N95 Processor (Turbo 3.4GHz) | 8GB DDR4 256GB SSD Desktop Computer 4K Dual HDMI Display/3x USB3.2/WiFi 5 BT5.0/RJ45 Ethernet
  • 12th INTEL ALDER LAKE N95 PROCESSOR - The G3S mini pc uses the 12th Intel N95 CPU 4 Core 4 Threads 6MB cache, burst speed up to 3.4GHz. Compared with (N100/N5105/N5100/N5095), the N95 offers an overall performance improvement of 36%. Ideal for routine tasks, office work and home entertainment,which is more convenient than traditional desktop pc
  • 8GB RAM MEMORY & 256GB SSD STORAGE - GMKtec Nucbox G3S mini pc is prebuilt with 8GB DDR4 RAM, you will enjoy a speedier experience with Built-in 256GB M.2 2242 SSD Hard Drive. Our mini desktop pc boots up in seconds, work on multiple browser tabs, software applications and quickly transfers files
  • RICH INTERFACE - Nucbox G3 Plus mini computer is equipped with USB 3.2, up to 10Gbps/S, HDMI(4K@60Hz)×2, 3.5mm Audio Jack. Supports WiFi 5, and Gigabit Ethernet RJ45 1000MbE network connectivity, Bluetooth 5.0. This Mini PC supports multiple device connection and can be used with servers, monitoring equipment, office equipment, displays, projectors, televisions, etc
  • 4K DUAL SCREEN DISPLAY - Mini desktop computer is equipped with upgraded Intel Graphics(max 1000MHz), supports 4K video playback and AV1 decoding, connect the pc with a projector as a home theatre, enjoy a variety of entertainments. Two HDMI 2.0 ports allows you to multi-task efficiently on two 4K@60Hz displays
  • WiFi5 & BT5.0 - Built-in Bluetooth 5.0 enables you to connect multiple wireless devices such as mice, keyboard, monitoring equipment, printer and monitor. High-speed wireless connection technology, reliable and efficient transmission speed, providing a faster internet experience for browsing and streaming. Small pc supports Wake On LAN, PXE Boot, RTC Wake and Auto Power On, ideal to use as a server
ffmpeg -version
ffmpeg -encoders | grep libx264

If libx264 is absent, the command will fail at encoder selection; install or build an FFmpeg version that includes it, or use an encoder available in your build and adjust the options accordingly. FFmpeg’s online documentation is regenerated for the newest revision, so options may differ from an older installation. Consult your installed help and documentation as needed; see the FFmpeg documentation index.

Create a concat-demuxer list

For a playlist using the concat demuxer, create a text file such as playlist.txt with one file entry per line:

file '/home/user/videos/part1.mp4'
file '/home/user/videos/part2.mp4'

The files should have matching streams, including codecs and time bases. If the videos differ, normalize them to common stream properties before concatenating, or test transitions carefully. A September 2024 FFmpeg-user discussion explains the concat demuxer’s stream-consistency constraint; a separate user report describes problems with a heterogeneous playlist, which is illustrative rather than evidence that every mixed playlist fails: concat-demuxer response and playlist streaming question.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Sale
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black | 1080p with auto-light correction, built-in mic, privacy shutter, USB-A, compatible with Teams, Google Meet, Zoom and more
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • Auto-Light Balance: RightLight boosts brightness by up to 50%, reducing shadows so you look your best—compared to previous-generation Logitech webcams (1)
  • Privacy with a Slide: The integrated webcam cover makes it easy to get total, reliable privacy when you're not on a video call
  • Built-In Mic: The built-in microphone lets others hear you clearly during video calls
  • Easy Plug-And-Play: The Brio 101 works with most video calling platforms, including Microsoft Teams, Zoom and Google Meet—no hassle; it just works

Start a looping 720p60 stream

This is a starting template, not a tested or universally compatible command. It assumes a suitable concat list and an FFmpeg build with libx264. Replace the playlist path and RTMPS destination with your own values. Do not put your stream key in a shared script, public repository, or log.

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>'

What the key options do

  • -re reads the input at its native playback rate rather than sending it as fast as the machine can process it.
  • -stream_loop -1 repeats the input indefinitely.
  • -f concat -safe 0 -i playlist.txt reads the concat-demuxer list. -safe 0 permits the absolute paths shown in the example; only use a list you control.
  • The video filter scales the picture to fit 1280 × 720 without changing its aspect ratio, pads any unused area, sets 60 fps, and outputs a common pixel format.
  • -b:v 8M -maxrate 8M sets the target and maximum video rates to 8 Mbps. -bufsize 16M is a practical encoder-template choice, not a value YouTube specifically mandates.
  • -g 120 sets a 120-frame GOP, equivalent to two seconds at 60 fps. -keyint_min 120 -sc_threshold 0 are template choices intended to keep keyframes regular; verify their behavior with your encoder build.
  • The audio options encode AAC stereo at 128 Kbps and 44.1 kHz.
  • -f flv selects the output container used for RTMP-family streaming. Replace the placeholder destination with the RTMPS server address and key provided by YouTube.

The preset, profile, buffer size, scaling, frame-rate conversion, and other encoder controls in this example are practical template choices, not settings individually required by YouTube. If you need a different bitrate, change both -b:v and -maxrate consistently and retest.

Connect FFmpeg to YouTube Live

  1. Enable live streaming and open YouTube Studio’s Live Control Room. Start or schedule the stream and obtain the ingest endpoint and stream key displayed for that stream.
  2. Use the stream-specific credentials. Replace the example RTMPS destination with the endpoint and key from the Live Control Room. Do not reuse a key unless YouTube explicitly presents it as reusable for your setup, and keep it private.
  3. Run FFmpeg and inspect its output. Confirm it opens the playlist, encodes video and audio, and connects without errors. A successful local connection alone does not establish that viewers can receive a healthy stream.
  4. Check YouTube’s stream health. Monitor the Live Control Room for ingest warnings or dropped frames while the stream runs.
  5. Test with the real playlist before depending on it. Check audio, motion, transitions, and upload reliability. 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.”

Choose a bitrate your connection can hold

For H.264 720p60, YouTube lists 3 Mbps as the minimum and 8 Mbps as the recommendation. The higher recommendation is not automatically the right choice if your source has little detail or your upload is unstable. The encoded stream’s total rate includes audio as well as video, and your connection needs additional headroom for normal network variation. Test sustained upload performance and monitor the actual stream; if the connection cannot hold the rate, improve it or lower the stream quality rather than assuming the recommended video bitrate will work everywhere.

Rank #3
NIVEOLI Webcam 1080P with Microphone & Privacy Cover for PC/Laptop, USB Computer Camera Plug & Play with Auto Light Correction for Video Calls, Live Streaming Gaming & Online Meetings
  • 【Crystal-Clear 1080P HD Video】This 1080p webcam for PC delivers sharp, true Full HD video at 30 frames per second, bringing your digital world to life with vibrant clarity. Enjoy smooth, real-time streaming with enhanced high dynamic range (HDR) that keeps your face clearly visible even in low light or backlit conditions.
  • 【Built-In Noise-Canceling Microphone】This computer camera with microphone features dual noise-reducing digital mics and an advanced audio processor, capturing rich stereo sound while filtering background noise. It ensures clear conversations during video calls, even in busy environments.
  • 【Privacy Shutter for Added Security】This secure USB webcam includes a built-in privacy cover, letting you physically block the lens with a simple slide. Protect your visibility and keep the lens dust-free—no drivers needed, just plug into USB 2.0 and start using it immediately.
  • 【Flexible Mount & Auto Light Correction】Designed for your computer or laptop, this webcam comes with an adjustable clip for monitors or standalone use. It offers automatic light correction and fixed focus for sharp, well-balanced images in any lighting.
  • 【Wide Device & Platform Compatibility】This versatile webcam for laptop and desktop use is compatible with Windows, Mac, Linux, and Android systems. Supports Skype, Zoom, Twitch, YouTube, and more—featuring a 360° rotating head for easy adjustment. Simply plug and play.

YouTube publishes different guidance for AV1 and H.265, but do not substitute either codec in this RTMP template unless your local FFmpeg build and chosen YouTube ingest mode support it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot common failures

“Unknown encoder ‘libx264’”

Your FFmpeg build does not include the encoder. Check ffmpeg -encoders; use a build with libx264 or adapt the command to an encoder that is actually available.

Concat errors, timestamp warnings, or broken transitions

Check that every playlist entry points to a readable file and that the files have consistent streams, codecs, and time bases. Normalize mismatched inputs before concatenation or test each transition in a short trial stream. A user report from 2024 documents such issues with a heterogeneous playlist, but the result is not universal.

Rank #4
Linux Mint Cinnamon Bootable USB for PC
  • Dual USB-A & USB-C Bootable Drive – works with almost any desktop or laptop computer (new and old). Boot directly from the USB or install Linux Mint Cinnamon to a hard drive for permanent use.
  • Fully Customizable USB – easily Add, Replace, or Upgrade any compatible bootable ISO app, installer, or utility (clear step-by-step instructions included).
  • Familiar yet better than Windows or macOS – enjoy a fast, secure, and privacy-friendly system with no forced updates, no online account requirement, and smooth, stable performance. Ready for Work & Play – includes office suite, web browser, email, image editing, and media apps for music and video. Supports Steam, Epic, and GOG gaming via Lutris or Heroic Launcher.
  • Great for Reviving Older PCs – Mint’s lightweight Cinnamon desktop gives aging computers a smooth, modern experience. No Internet Required – run Live or install offline.
  • Premium Hardware & Reliable Support – built with high-quality flash chips for speed and longevity. TECH STORE ON provides responsive customer support within 24 hours.

FFmpeg connects but YouTube reports poor stream health

Compare actual upload capacity with the encoded video and audio rates, then test at a lower bitrate or resolution if the connection cannot sustain the output. Check the Live Control Room for the specific ingest warning and verify that the endpoint and key are correct.

Keyframes are too far apart

At 60 fps, confirm that -g 120 is in effect for a two-second interval. Do not set the interval above four seconds; at 60 fps that corresponds to -g 240.

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

Audio is missing or unsuitable

Confirm that the playlist actually contains audio and that FFmpeg reports an audio stream in its output. The template encodes AAC stereo at 128 Kbps and 44.1 kHz; test the sound in the YouTube preview rather than relying only on local playback.

The command fails on an older Ubuntu installation

FFmpeg options and encoder availability depend on the installed version and build. Check ffmpeg -version and local option help instead of assuming a command copied from current online documentation applies unchanged.

Or let it run in the cloud

If the goal is to keep uploaded videos playing live on YouTube without leaving an Ubuntu computer running, StreamNeo is a cloud option: upload a recording or playlist, add your YouTube stream key, and go live. Nothing has to stay on at home; it loops the uploaded video from the cloud and can automatically recover if YouTube drops the stream. Any uploaded quality up to 4K 60fps streams as made, at one price per slot. The first day is free with no card. Monthly: $9.99 per month.

Start the free first day on StreamNeo.

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.

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

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 the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
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.