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.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Use FFmpeg to send a local video to YouTube Live, looping it with -stream_loop -1 and pacing playback with -re. You’ll need a verified, eligible YouTube channel, the event’s server URL and stream key from Live Control Room, and a Linux system with a suitable FFmpeg build. The example below is a starting point: test it with your own file and stream settings before using it for a long-running broadcast.

What you need before starting

  • A channel that can livestream: YouTube requires channel verification and no live-streaming restrictions in the previous 90 days. The minimum age to livestream is 16. See YouTube’s live-streaming eligibility requirements.
  • A video file on the Linux machine: Make sure you have the rights needed to stream its picture and audio.
  • FFmpeg: Install it from a trusted source for your Linux distribution. Available encoders and options depend on the build; check the version and whether it includes libx264 before using the example.
  • A reliable upload connection: Choose output settings that fit both your source file and the connection’s sustained upload capacity.

The steps below are for sending a prerecorded file as a live feed, not broadcasting a camera or a live input.

Create a YouTube Live stream and get its credentials

  1. Open YouTube Studio and go to Create > Go live to open Live Control Room. Create a stream or select the scheduled stream you intend to use. YouTube’s encoder setup guide describes this flow.
  2. In the stream settings, copy the server URL and stream key for the selected stream. Use the values YouTube displays; do not assume every event or endpoint uses the same URL format.
  3. Keep the stream key private. YouTube Help says, “Stream keys are like your YouTube stream’s password and address.” If a key is exposed, reset it in Manage live stream settings and update the encoder’s credentials.

Sending video from FFmpeg and making a scheduled event public can be separate steps. Unless you have deliberately enabled auto-start, wait for the encoder preview in Live Control Room and use its Go live action when you are ready.

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

Prepare the Linux script

Check FFmpeg and its encoder

Run ffmpeg -version to see the installed build. Check the video encoder list with ffmpeg -encoders and confirm that libx264 is available if you plan to use the H.264 command below. If your distribution’s build lacks it, install a suitable trusted FFmpeg build or adapt the command to an encoder that is available.

#1 Best Overall
Compressed Air Duster,130000RPM Super Power Cordless Air Duster,Rechargeable Brushless Blower,3 Gear Adjustable Blower with LED Light,Dust Remover for Computer/House/Outdoor/Car
  • Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
  • With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
  • Wide Application:Upgraded attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
  • Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
  • Warranty & Support: Our Electric air duster comes with 5 years warranty and 24/7 customer service. During this period, if you have any questions,pls kindly feel free to contact us.

Store the URL and key outside the script

Do not put credentials in the script file or commit them to source control. Export them in a protected shell session, or use an appropriate secret store. For example, in a private terminal session:

export YOUTUBE_RTMPS_URL='paste the server URL shown in Live Control Room here'
export YOUTUBE_STREAM_KEY='paste the stream key here'

Use the actual values from Live Control Room. Limit access to any environment file or secret used to set them, and do not share terminal output that reveals the key.

Rank #2
EVEO® Screen Cleaner Spray Kit (Streak-Free) TV Screen Cleaner for Smart TV, Lcd, LEd, Oled | Computer Screen Cleaner Spray and Wipe Microfiber Cloth - TV, Monitor, Laptop, iPad, Car - 6.7oz 1 Pack
  • Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
  • Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
  • Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
  • Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
  • Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth

Loop the file with FFmpeg

Save this as youtube-loop.sh and make it executable with chmod +x youtube-loop.sh. The script accepts a filename argument and defaults to loop.mp4.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#!/usr/bin/env bash
set -euo pipefail

: "${YOUTUBE_RTMPS_URL:?Set the stream URL from YouTube Live Control Room}"
: "${YOUTUBE_STREAM_KEY:?Set the stream key privately}"
INPUT=${1:-loop.mp4}

exec ffmpeg -re -stream_loop -1 -i "$INPUT" 
  -c:v libx264 -preset veryfast -pix_fmt yuv420p 
  -r 30 -g 60 -keyint_min 60 -sc_threshold 0 
  -b:v 2500k -maxrate 2500k -bufsize 5000k 
  -c:a aac -b:a 128k -ar 44100 
  -f flv "${YOUTUBE_RTMPS_URL%/}/${YOUTUBE_STREAM_KEY}"

Start it with ./youtube-loop.sh /path/to/video.mp4. FFmpeg defines -stream_loop -1 as infinite input looping and -re as reading a file at its native rate, so the file is sent in real time instead of as fast as the machine can encode it. Those options suit a local file; do not add real-time input rate limiting to an already-live input, where it can cause packet loss. See the FFmpeg command documentation.

Rank #3
BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black
  • 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
  • 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
  • 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
  • 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
  • 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.

What the example’s output settings mean

  • -c:v libx264 encodes video as H.264; -preset veryfast trades compression efficiency for lower encoding workload.
  • -pix_fmt yuv420p selects a widely supported pixel format. -r 30 sets output to 30 frames per second.
  • -g 60 and -keyint_min 60 set a 60-frame keyframe interval at 30 fps, or two seconds. -sc_threshold 0 prevents scene-change detection from inserting extra keyframes.
  • -b:v, -maxrate and -bufsize configure video bitrate and rate control. The example’s 2,500 Kbps video target is illustrative, not a universal YouTube requirement; select a bitrate and resolution appropriate to the source and your sustained upload speed.
  • -c:a aac -b:a 128k -ar 44100 encodes AAC audio at 128 Kbps and 44.1 kHz. If the source has no audio, consider adding an intentional audio track or adapting the command and checking the resulting preview.
  • -f flv selects the output container commonly used for RTMP/RTMPS ingest. The final argument joins the displayed URL and key in the format shown by the example; check the URL form for your selected stream before relying on it.

YouTube recommends RTMPS for secure ingest and lists H.264, constant bitrate (CBR), keyframes every two seconds (with a maximum interval of four seconds), AAC or MP3 audio, and stereo audio at 44.1 kHz and 128 Kbps in its encoder settings guidance. The sample follows several of those recommendations, but its bitrate and output resolution should not be treated as a prescribed universal combination. If you alter frame rate, adjust the keyframe interval to preserve the intended time between keyframes. HLS is another ingest option for some use cases, including HDR or codecs unsupported over RTMP, but segmented delivery has higher latency; use RTMPS for this straightforward H.264 shell-script setup unless you have a specific reason to choose otherwise.

Test the stream before publishing

  1. Start a controlled test stream and watch the FFmpeg output for errors. Confirm that the file opens, the video encodes, and the connection is accepted.
  2. In Live Control Room, wait for the preview. Check picture, audio, stream health, and the event’s visibility before making it public.
  3. For a scheduled stream, select Go live in Live Control Room if auto-start is not enabled. Encoder transmission alone does not necessarily activate the event for viewers.
  4. Monitor the stream after it starts. YouTube recommends testing and ongoing monitoring in its live-streaming tips.

Keep the loop running and end it safely

The script keeps running only while the FFmpeg process and the Linux machine remain available. Closing the terminal, logging out, a reboot, power loss, network failure, or process failure can interrupt it. For an unattended run on your own system, use a process manager or service supervisor and configure it to start after reboot; that improves process management but does not make the computer or connection failure-proof.

Rank #4
Sale
Vaydeer Wrist Rest for Keyboard and Mouse, Computer Ergonomic Wrist Support Pad, Soft Memory Foam Arm Cushion for Desk, Palm Hand Office Laptop Typing
  • 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
  • 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
  • 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
  • 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
  • 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.

FFmpeg’s formats documentation includes an RTMP FIFO output example with options to attempt recovery after a temporary failure. Such recovery configuration adds complexity and does not guarantee that every interruption will recover. See the FFmpeg formats documentation before adapting the output path.

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

To stop deliberately, interrupt the FFmpeg process, then end the broadcast using Live Control Room controls as appropriate. YouTube says streams under 12 hours are automatically archived. Do not assume a longer continuous loop will produce one complete archive; plan duration and recording separately. See the archive guidance in YouTube’s encoder setup page.

Best Value
Sale
Under Desk Cable Management Tray No Drill, Metal Mesh Cable Management Under Desk with Clamp Mount, 2 Hole Cable Tray with Wire Management and Cord Organizer for Home Office Standing Desk
  • 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
  • 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
  • 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
  • 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
  • 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot common failures

Symptom Likely cause What to check
Script exits before connecting The URL or key environment variable is unset, or the file path is wrong. Check that both variables are set in the same shell that launches the script, and verify the input filename and permissions. Do not print the key while debugging.
Unknown encoder 'libx264' The installed FFmpeg build does not include that encoder. Check ffmpeg -encoders; install a suitable trusted build or adapt the script to an available encoder and verify YouTube compatibility.
Connection rejected or no preview appears The selected server URL or key may be incorrect, stale, or mismatched to the event; the URL concatenation may not match the displayed endpoint format. Copy the URL and key again from the correct Live Control Room stream. Confirm how the displayed URL and key are meant to be supplied. Reset an exposed key and update the script environment.
FFmpeg is connected, but the scheduled event is not public The encoder is sending, but the event still awaits activation. Wait for preview and use Live Control Room’s Go live control unless you intentionally configured auto-start.
Stream health degrades or video stalls The configured bitrate may exceed sustained upload capacity, or the machine may be unable to encode in real time. Lower the output resolution or bitrate, use a faster preset or capable encoder, and test the sustained connection and system load before the next broadcast.
Audio is missing or sounds wrong The source may lack an audio stream or use an unexpected format or sample rate. Inspect the source streams, confirm the AAC output settings and preview audio in Live Control Room; adapt the command if the source has no audio.
Loop stops after an interruption The FFmpeg process or host exited, or the connection was not recovered. Inspect process and system logs, restart the process if needed, and consider a supervised process or FFmpeg’s documented FIFO recovery options. Recovery attempts are not guarantees.

Copyright and YouTube policy checks

A looping file still needs the necessary rights for its video, music, and other included material. A live-stream encoder does not grant permission to rebroadcast content. Before scheduling a long loop, review the rights for every segment and check the event’s visibility and audience settings in Live Control Room. YouTube’s live-streaming eligibility and setup requirements can change, so confirm current rules in its eligibility guidance and encoder setup instructions.

Run the loop on your own Linux machine or in the cloud?

A local Linux desktop or server avoids a hosting bill, but it must stay powered on, connected, and able to encode throughout the broadcast. A hosted Linux instance can keep the process away from home power and internet interruptions, but you are responsible for setup, credentials, monitoring, and the host’s reliability and cost. The right choice depends on how much administration you want and how important continuity is; no particular hosting provider is required for this workflow.

Or let it run in the cloud

If you want a YouTube loop without keeping a Linux machine running at home, StreamNeo is a cloud service that plays uploaded videos on a 24/7 YouTube stream. Upload a recording or build a playlist, add your YouTube stream key once, and go live. The service runs in the cloud, so your computer can be off; it automatically recovers if YouTube drops the stream. Every slot streams the uploaded file as made, up to 4K 60fps, at one flat price per slot, with no re-encode or quality tiers. Each slot includes 10 GB storage, pooled across active slots. The first day is free with no card; UPI and cards are available in India, and card checkout is available worldwide. Monthly billing is $9.99 per month.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

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

Start a free first day with no card at StreamNeo registration.

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.