October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
DocumentaryTube
Admit one · Blog

How to Create a YouTube Live Loop of Seasonal Store Promotions Using FFmpeg

Use FFmpeg to loop a rights-cleared seasonal promotion on YouTube Live, with the right pacing, encoder settings, testing steps, and stream-key precautions.
Opened Runtime6 min Written byDocumentaryTube Team

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.

To loop a prerecorded seasonal promotion on YouTube Live, create a live event in YouTube Studio, then use FFmpeg’s -stream_loop -1 to repeat the video and -re to play it at its normal rate while sending it to YouTube’s encoder server. You’ll need a rights-cleared video, the event’s server URL and secret stream key, and an FFmpeg command configured for a compatible video and audio format. Test the exact file and settings in Live Control Room before sharing the broadcast.

Prepare a promotion that works as a loop

Export the seasonal store promotion as a video file with the intended aspect ratio, visuals, and audio. Watch the full file, paying particular attention to the transition from its final frame and sound back to its opening. FFmpeg repeats the file; it does not make the boundary seamless for you.

  • Use product photography, logos, music, and other material the store owns or has permission to use.
  • Keep the source quality you actually have. Do not upscale a small or soft-looking promotion simply to select a higher output resolution.
  • Check that the final file plays correctly before connecting it to a live event.

For a live encoder workflow, YouTube recommends RTMP or RTMPS ingestion. RTMPS is the secure choice for a typical encoder setup. YouTube also supports HLS ingest for some codec and HDR needs, but its HLS guidance notes higher latency because it sends segments. Follow the protocol and muxer instructions for the ingest method you choose; the command below is an RTMP/RTMPS-style FLV example. See YouTube’s current encoder settings and protocol guidance.

Create the YouTube Live event and protect its key

  1. In YouTube Studio, choose Create → Go Live.
  2. In Live Control Room, create or schedule the stream and open its stream settings.
  3. Copy the server URL and stream key shown for the event into your encoder configuration. Treat the key like a password: anyone who gets it may be able to send video to that stream.
  4. If you schedule the event, use the scheduled workflow to check the preview and click Go live when ready. YouTube says scheduling can help promote a stream. The exact Studio labels can change; follow the current event workflow shown in your account.

Do not paste a real key into a public tutorial, screenshot, source repository, or command you intend to share. A private script or protected environment variable can reduce accidental exposure, but consider whether your operating system displays command arguments to other users or processes. YouTube’s encoder walkthrough is at Create a YouTube live stream with an encoder.

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.

Loop and pace the video with FFmpeg

FFmpeg documents -stream_loop -1 as infinite looping; -stream_loop 0 means no loop. The -re input option reads at the file’s native frame rate (equivalent to -readrate 1), which paces file-based output for a live stream. Both are input options, so place them before the -i they modify. FFmpeg cautions against using low read rates on real capture or live inputs because packets may be lost. Consult the FFmpeg documentation.

ffmpeg -re -stream_loop -1 -i "seasonal-promo.mp4" 
  -c:v libx264 -preset veryfast -pix_fmt yuv420p 
  -r 30 -g 60 -b:v 5M -maxrate 5M -bufsize 10M 
  -c:a aac -b:a 128k -ar 44100 
  -f flv "<YouTube server URL>/<STREAM_KEY>"

This is an illustrative, untested template—not an official FFmpeg or YouTube command, and not a guarantee it will work with every file or FFmpeg build. It assumes 1080p30 SDR H.264 video with stereo AAC audio. Replace the filename and destination placeholders with your actual values; do not include the angle-bracket placeholders literally. The output target commonly combines the YouTube server URL and stream key as shown, but use the exact URL and key format presented for your event.

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.

At 30 fps, -g 60 sets a 60-frame GOP, or a two-second keyframe interval. YouTube recommends a two-second keyframe frequency and says not to exceed four seconds. Its published H.264 video bitrate recommendations are 5 Mbps for 1080p at 30 fps and 3 Mbps for 720p at 30 fps. These are YouTube configuration recommendations, not independent benchmark results; the retrieved settings page shows no publication date. Check the current YouTube table for your chosen resolution and frame rate rather than carrying these example rates over to another format.

YouTube lists stereo audio at 128 Kbps and a 44.1 KHz stereo sample rate. The command uses those values. H.264 with AAC is a conservative, broadly supported choice for a straightforward SDR stream; other codecs and HDR workflows have different requirements.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
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.

Choose resolution and encoding method to fit the source

Choice What it means When to use it
720p30 H.264 YouTube recommends 3 Mbps video bitrate. Consider it when the source is modest, upload capacity is limited, or encoding resources are constrained.
1080p30 H.264 YouTube recommends 5 Mbps video bitrate. Use it when the source supports the detail and your upload and encoder can sustain it.
Stream copy (-c copy) Copies encoded streams without re-encoding. It can save compute, but compatibility depends on source codecs, container, timestamps, and output requirements. Inspect and test the file; it is not guaranteed to work for every input.
Re-encode Encodes video and audio to specified output settings, as the example does. Useful for normalizing settings, but it uses compute and can reduce quality if poorly configured.

The values in the table are YouTube’s published encoder recommendations, not a promise that a particular connection or computer can sustain them. Choose a bitrate and resolution using the source quality, available upload capacity, and encoding resources. Do not upscale just to report a larger resolution.

Test before promoting the broadcast, then monitor it

  1. Before the event, test with motion and audio representative of the actual promotion—not only a static frame or silent clip.
  2. Start FFmpeg and check the Live Control Room preview for the expected picture, resolution, and audible sound.
  3. Review YouTube’s stream-health messages and warnings before sharing the event or asking viewers to tune in.
  4. While live, keep monitoring the dashboard. A running FFmpeg process by itself does not prove YouTube is receiving a healthy stream.

YouTube’s guidance says, “Make sure to test before you start your live stream,” and advises operators to monitor stream health and review messages during the event. The Live Streaming API’s health status and configuration issue categories include bitrate, codec, audio, and frame-rate problems. Use the warning shown for your actual stream to guide diagnosis; API details are documented at LiveStreams | YouTube Live Streaming API.

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
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

End the stream and understand the archive limit

When the promotion is over, stop the FFmpeg encoder and end the event in Live Control Room according to the workflow you chose. YouTube Help says streams under 12 hours are automatically archived. Do not assume automatic archiving for a broadcast that runs longer than that. YouTube’s encoder guide describes the live workflow and archive statement.

Rights and monetization still apply to a loop

Putting a promotion on YouTube Live does not grant rights to its footage, music, product imagery, or other content, and using FFmpeg does not change YouTube’s policies. Permission to use material is not by itself a guarantee of YouTube Partner Program eligibility.

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.

YouTube’s monetization policy update dated July 15, 2025 renamed “repetitious content” to “inauthentic content” and clarified that repetitive or mass-produced material falls under that policy. The policy says monetized content should be original and authentic, and reused content must show meaningful value or difference to qualify under reused-content rules. Copyright is a separate issue. A repeating store promotion should therefore be reviewed both for rights and for whether it meets the channel’s applicable monetization policies; a live format is not an exception. See YouTube channel monetization policies.

Or let it run in the cloud

If you do not want to keep a computer and home connection running for the broadcast, StreamNeo runs uploaded videos as a continuous YouTube stream from the cloud. Upload the promotion, add your YouTube stream key, and go live. It loops the uploaded video, with automatic recovery if YouTube drops the stream.

  • Nothing has to stay on at home.
  • One flat price per slot for any quality up to 4K 60fps, streamed as uploaded.
  • Automatic recovery if YouTube drops the stream.
  • The first day is free with no card.

Monthly: $9.99 per month. Start your free first day with 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 Screening Room

  1. How to Migrate a 24/7 YouTube Stream to a New VPSAdmit one · BlogHow to Migrate a 24/7 YouTube Stream to a New VPSOpened04 OCT 2026Runtime6 min
  2. How to Run a YouTube Playlist on a Headless Linux Server—and Broadcast It LiveAdmit one · BlogHow to Run a YouTube Playlist on a Headless Linux Server-and Broadcast It LiveOpened04 OCT 2026Runtime6 min
  3. How to Make a 24/7 Indian Music YouTube Stream Restart After a Server RebootAdmit one · BlogHow to Make a 24/7 Indian Music YouTube Stream Restart After a Server RebootOpened04 OCT 2026Runtime6 min
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver 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.