October 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 ScanOctober 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

Best FFmpeg Command to Loop a Long ASMR Video on YouTube Live

A practical FFmpeg RTMPS command for looping a long prerecorded ASMR video on YouTube Live, plus the settings and checks that matter.
Opened Runtime5 min Written byDocumentaryTube Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For a prerecorded MP4 with video and audio, use FFmpeg’s -stream_loop -1 to repeat the file and -re to read it at its normal rate. This H.264/AAC RTMPS template is a practical starting point for YouTube Live; adjust its bitrate and keyframe interval to match the output resolution and frame rate, then test it with your actual file and connection.

Starting FFmpeg command

ffmpeg -re -stream_loop -1 -i input.mp4 
  -c:v libx264 -preset veryfast 
  -b:v 10M -maxrate 10M -bufsize 20M 
  -g 60 -keyint_min 60 -sc_threshold 0 
  -c:a aac -b:a 128k -ar 44100 
  -f flv "rtmps://a.rtmp.youtube.com/live2/YOUR_STREAM_KEY"

Replace input.mp4 with the path to your recording and replace the URL’s placeholder with the RTMPS address and stream key shown in YouTube Live Control Room. Treat the key like a password: anyone who obtains it may be able to broadcast to your channel.

FFmpeg documents -stream_loop as an input option; -1 means loop indefinitely. -re reads the input at its native rate, which is useful when output packet timing matters, including live streaming. Both options appear before -i so they apply to the file input. See the FFmpeg documentation.

What to adjust before going live

Resolution, frame rate, and bitrate

The command does not force a resolution or frame rate, so the output generally follows the source and encoder behavior. Keep the source’s native properties unless you have a reason to scale or convert; check the actual output and YouTube Live Control Room rather than assuming a setting from the file name. YouTube’s encoder guidance supports up to 60 fps.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
KAMRUI Pinova P2 Mini PC, AMD Ryzen 7330U(4 Cores, 8 Threads, Up to 4.3GHz), 16GB RAM 256GB SSD, Zen3 Architecture 7nm Processor, 8MB L3 Smart Cache Mini Computers,Triple 4K Display Home/Business
  • 【AMD Ryzen 7330U】 – The Efficiency-Tuned Powerhouse,AMD Ryzen 7330U (Zen 3, SMT, 4C/8T) in KAMRUI P2 mini PC crushes rivals: Intel i3-10110U (2C/4T, 2019) and N95 (4 efficiency cores, no HT, single-channel memory). Vs predecessor Ryzen 3 4300U (4C/4T): ~50% faster single-core, ~46% multi-core, 8MB L3 cache (vs 4MB). Beats both Intel chips hugely in multi-core, making heavy multitasking, coding, data work smooth at just 15W TDP. High-end power in a cool, efficient box.
  • 【AMD Radeon Graphics】– Triple 4K Vision & Fluidity,The integrated Radeon Graphics (based on the modern Vega architecture with 6 CUs) is a visual beast, outclassing the iGPU offerings from both AMD's prior generation and Intel. The Intel UHD Graphics (i3-10110U/N95) struggles with single-channel memory and low execution units, crippling its gaming performance and barely handling basic 4K video without stuttering. While the older Radeon Vega 5 (4300U) was decent, our 7330U's Radeon Graphics (6 CUs) pushes the boundaries, delivering higher graphics clock speeds (up to 1.8GHz) and significantly better rendering capabilities. It can drive triple 4K@60Hz displays with zero lag, edit photos/videos.
  • 【Generous Storage & Easy Expansion】The KAMRUI Pinova P2 mini desktop computers comes with 16GB LPDDR4X RAM (higher frequency, lower power) for buttery‑smooth multitasking, and a 256GB M.2 SSD for blazing fast boot‑up, quick file transfers, and no more long loading screens. It also features two storage expansion slots (1x M.2 2280 SATA/NVMe PCIe 3.0 slot + 1x M.2 2280 SATA slot), supporting up to 4TB total (not included). You’ll have all the space you need for projects, media, and important data.
  • 【Triple 4K Display Output】The KAMRUI Pinova P2 mini desktop pc is equipped with HDMI 2.0 ×1 + DP 1.4 ×1 + USB 3.2 Gen2 Type‑C ×1 (with DP Alt Mode), enabling simultaneous triple 4K@60Hz output. Whether for home entertainment, remote work, or conference room presentations, it delivers an immersive visual experience. Two USB 3.2 Gen2 Type‑A ports (up to 10Gbps – 21x faster than USB 2.0) make data transfers and device expansion a breeze.
  • 【USB 3.2 Gen2 Type‑C: 10Gbps & Versatile Connectivity】The USB 3.2 Gen2 Type‑C port on the KAMRUI P2 small pc supports 10Gbps data transfer speeds and can also output DisplayPort 1.4 video. Together with Gigabit LAN, Wi‑Fi, and Bluetooth, you get a fast, flexible, and productive connected environment – wired or wireless.

The example’s 10 Mbps video target is a starting point, not a universal recommendation. YouTube Help’s H.264 guidance, accessed in 2026, gives these ingestion figures:

Output Minimum video bitrate Recommended video bitrate
720p30 H.264 3 Mbps 8 Mbps
1080p30 H.264 5 Mbps 14 Mbps
1080p60 H.264 6 Mbps 17 Mbps
1080p30 H.265/AV1 4 Mbps 10 Mbps

These are YouTube’s listed ingestion figures, not promises of a particular picture quality. Match bitrate to the chosen codec, resolution and frame rate, and to upload capacity that is reliably available during the stream. YouTube recommends CBR and testing your upload bitrate. In the example, -b:v and -maxrate use the same target as a practical approximation; verify the behavior of your FFmpeg build and encoder.

Rank #2
GMKtec M5 Ultra Gaming Mini PC Ryzen 7 7730U 32GB RAM 512GB SSD Desktop
  • Office Gaming Mini PC - UPGRADED GMKtec Nucbox M5 Ultra Series is equipped with the powerful AMD Ryzen 7 7730U processor, 8 Cores/16 Threads, Base 2.00GHz (Power Saving Quiet Mode) with Turbo Boost up to 4.50GHz (Performance Mode) in BIOS settings, Based on the ZEN 3+ architecture, this small but powerful mini pc delivers satisfying results in productivity, office work, and gaming. 35% Performance increase over AMD Ryzen 5 7430U/ Ryzen 7 5700U, 5600U, 5560U, 5500U.
  • 32GB DDR4 RAM & 512GB PCIe SSD - Installed with DDR4 32GB RAM Dual Channel (2x16GB), the Nucbox M5 Plus mini pc support expansion to 64GB RAM. Featured with 512GB M.2 2280 PCIe 3.0 SSD, support dual slot expansion to 4TB SSD. (Upgrades not included)
  • DUAL NIC LAN 2.5G RJ45 - Fast Network Speeds: Enjoy up to 2500Mbps data transmission speed without worrying about lagging. Ideal for working, gaming, and surfing the internet. Great for Untangle, Pfsense or as a server office PC.
  • Mini Desktop Computer with 4K Triple Screen Display - Nucbox M5 Ultra integrates AMD Radeon Graphics 8 Cores 2000 MHz GPU to deliver powerful graphics processing power to easily handle the demands of complex design software, 4K@60Hz UHD video editing, and playback. It can connect to 3 display screens simultaneously.
  • Fast Internet WiFi 6E + BT5.2 Connection - GMKtec Mini PC with WiFi-6E Wireless, have 2.5G/5G/6G triple band, more faster and lower latency. Bluetooth 5.2 allowing you more quickly to connect other wireless devices (headset, mouse, keyboard, etc.) Interface features 2*USB3.2 ports, 2*USB2.0 ports, 1*HDMI 2.0 port(4K@60Hz), 1*USB-C port(PD/DP/DATA), 1*DP Port, 1*Audio 3.5mm (HP&MIC), 1*DC Power Port.

Keyframe interval

YouTube recommends a two-second keyframe interval and says intervals must not exceed four seconds. The command’s -g 60 and -keyint_min 60 correspond to two seconds only at 30 fps. Set the GOP length in frames to about twice the actual output frame rate: for example, use -g 60 -keyint_min 60 at 30 fps or -g 50 -keyint_min 50 at 25 fps. Confirm the output frame rate rather than relying on the input’s nominal value.

Audio

The example encodes audio as AAC at 128 kbps and sets a 44.1 kHz sample rate. YouTube’s RTMP(S) guidance permits AAC or MP3 and recommends 128 kbps stereo AAC at 44.1 kHz in its advanced settings. The example does not explicitly set channel count; if you need to guarantee stereo output, add -ac 2 before the output URL and check that the source mix suits stereo.

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.
Rank #3
BOSGAME E5 11 Pro Mini PC, AMD Ryzen 5300U 4C/ 8T, Business Home Office PC
  • 【AMD Ryzen 3 5300U CPU: Outperforms N150 & 3500U】 BOSGAME E5 mini PC is powered by the TSMC 7nm FinFET architecture AMD Ryzen 3 5300U processor (4 Cores, 8 Threads, up to 3.8GHz boost, 6MB total cache). Compared to low-end Intel N150 or 3500U chips which only have 4 single threads and throttle under load, the 5300U delivers over 30% faster multi-core speed. Run 30+ browser tabs, large Excel sheets, and Zoom meetings simultaneously without system lag.
  • 【8GB DDR4 RAM & 256GB NVMe SSD Storage】 Installed with high-speed 8GB DDR4 dual-channel memory and a fast 256GB M.2 2280 SSD, eliminating slow boot times and application loading delays. To accommodate growing data requirements, the upgradeable hardware design features dual SODIMM slots that allow you to expand memory up to 64GB RAM, ensuring smooth operation during heavy multitasking.
  • 【High-Capacity Dual M.2 SSD Storage Expansion】 Never worry about running out of space for your business files. In addition to the pre-installed 256GB system drive, the motherboard houses an extra empty internal M.2 2280 NVMe PCIe 3.0 slot. This allows you to easily add a second solid-state drive for up to an additional 2TB of storage capacity (upgrades not included) without needing to remove or reinstall the original operating system.
  • 【Radeon 6-Core Graphics & Triple 4K Displays】 Integrated with official AMD Radeon Graphics (6 Graphics Cores, 1500 MHz frequency) for casual gaming, photo editing, and crisp 4K media decoding. Featuring 1x HDMI 2.0 port, 1x DisplayPort, and 1x Full-Function Type-C port, the E5 outputs true 4K@60Hz resolution to three monitors at once. This multi-screen setup eliminates constant window-switching for traders, programmers, and office workers.
  • 【Dual 2.5GbE LAN Ports for Advanced Networking】 Experience fast wired network transmission speeds up to 2500Mbps without lagging or buffering. The integration of dual 2.5 Gigabit Ethernet ports (powered by Realtek RTL8125 controller) makes this compact computer an exceptional hardware choice for tech enthusiasts. Easily configure it into software routers, hardware firewalls (pfSense, OpnSense), home NAS servers, or local homelabs.

Encoder and transport

libx264 must be available in your FFmpeg build. If it is missing or too slow on the machine, select an available compatible encoder and confirm that its rate-control and keyframe settings meet your needs; performance depends on the hardware and build. YouTube lists H.264, H.265/HEVC and AV1 among its RTMP/RTMPS encoder settings. The example uses H.264 as a straightforward baseline. YouTube recommends RTMPS, a secure extension of RTMP; use the ingest details supplied by your Live Control Room. See YouTube’s encoder settings, bitrates, and resolutions.

Run and verify the loop

  1. Prepare the broadcast in YouTube Live Control Room. Obtain the RTMPS ingest address and stream key for the broadcast. Keep the key private and use the exact ingest settings displayed for your channel.
  2. Check the local input and FFmpeg build. Confirm the file path is correct and that FFmpeg includes libx264. The command is a general template, not a tested recipe for every operating system, file, build, or connection.
  3. Start FFmpeg from a terminal. Run the command with your file path and key in place. Watch the output for file-read, encoder, or connection errors.
  4. Confirm the incoming stream in Live Control Room. Check stream health and verify the received resolution, frame rate, and audio before relying on the broadcast.
  5. Test the loop boundary. Listen and watch across the end-to-start transition. Depending on the recording, a loop can expose an audio click, abrupt change in room tone, image jump, timestamp issue, or decode problem. The FFmpeg option establishes repeated input playback; it does not make every file’s transition perceptually seamless.
  6. Monitor during the broadcast. YouTube recommends testing with similar audio and video movement and monitoring stream health and messages during the event.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What looping does not handle

-stream_loop -1 keeps FFmpeg reading the input again; it does not supervise the FFmpeg process, restart it after a crash, or restore a connection after a network outage. A long-running broadcast therefore needs someone or something to monitor the actual ingest and recover the process or connection if it stops. YouTube advises testing and monitoring but does not promise uninterrupted service.

Rank #4
Sale
GMKtec G3S Mini PC Intel N95 Processor (Up to 3.4GHz) 8GB RAM 256GB M.2 SSD
  • 12th Intel Alder Lake N95 Processor – The GMKtec G3 S Mini PC is powered by the 12th Gen Intel N95 processor with 4 cores, 4 threads, 6MB cache and a burst frequency up to 3.4GHz. Compared with N100/N5105/N5100/N5095, the N95 delivers up to 36% overall performance improvement. Perfect for routine tasks, office work, and home entertainment, this compact mini desktop is more convenient than traditional bulky PCs.
  • 8GB RAM & 256GB SSD Storage – Pre-installed with 8GB DDR4 memory and a fast 256GB M.2 2242 SSD, the G3 S mini desktop offers quicker startup, smoother multitasking, and faster file transfers. Enjoy seamless performance whether you’re working on multiple applications, browsing, or streaming content.
  • Rich Interfaces & Connectivity – The G3 S mini computer comes equipped with USB 3.2 (up to 10Gbps), dual HDMI 2.0 (4K@60Hz), and a 3.5mm audio jack. With support for WiFi 5, Bluetooth 5.0, and Gigabit Ethernet (RJ45 1000MbE), it connects easily with monitors, projectors, printers, office equipment, and other peripherals, making it versatile for both home and business use.
  • Dual 4K Display Support – Featuring upgraded Intel UHD Graphics (up to 1000MHz), the G3 S supports 4K video playback and AV1 decoding for a smooth viewing experience. With dual HDMI outputs, you can connect two 4K@60Hz displays simultaneously, enabling efficient multitasking for work and entertainment.
  • GMKtec WARRANTY - GMKtec offers a 1-year limited GMKtec's warranty for each mini PC, starting from the date of the purchase. All defects due to design and workmanship are covered. With a professional after sales team always ready to attend to your needs, you can simply relax and enjoy your mini PC.

Other ingest and codec choices

RTMP(S) versus HLS

For a standard FFmpeg command sending a prerecorded file, RTMPS is the clearest fit here. YouTube also documents HLS ingestion, but its workflow calls for M2TS segments, playlists, muxed audio and video, HTTPS, and specified codecs. It is not a drop-in replacement for the FLV/RTMP output in this command. Compare protocols based on encoder support, workflow complexity, latency and quality needs, and the ingest configuration available to your account. See YouTube’s HLS ingestion requirements.

H.264 versus H.265 or AV1

Choose a codec only after checking that your installed FFmpeg encoder and the selected ingest protocol support the combination. Compare the quality achievable at a bitrate your connection can sustain, encoder availability and processor load, and whether you can control the keyframe interval. The template uses H.264; changing codecs is not just a matter of changing one name if the encoder, rate control, or protocol requirements also differ.

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

Or let it run in the cloud

If you would rather not keep a computer and home connection running, StreamNeo is a YouTube-only cloud service for looping uploaded videos. Upload a recording or build a playlist, add your YouTube stream key, and go live. The cloud keeps the stream running without your laptop staying on; each slot streams the uploaded quality up to 4K 60fps at one flat price per slot, and automatically recovers if YouTube drops the stream. The first day is free with no card, once per account. Monthly billing is $9.99 per month. Learn more at StreamNeo, or start your 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 *

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

More from the Screening Room

  1. The Big Apple: Origin of New York’s NicknameAdmit one · ArticlesThe Big Apple: Origin of New York's NicknameOpened05 OCT 2026Runtime3 min
  2. Thunderbolts of the GodsAdmit one · ScienceThunderbolts of the GodsOpened05 OCT 2026Runtime2 min
  3. Carrier Global: What the Company DoesAdmit one · ScienceCarrier Global: What the Company DoesOpened05 OCT 2026Runtime2 min
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.