You can create a YouTube Live feed from a still image and repeating music with FFmpeg by looping both inputs, pacing playback in real time, and sending an H.264/AAC stream to the RTMPS address and stream key for your YouTube broadcast. The command below is a starting point, not a tested or guaranteed 24/7 service: you must choose the output resolution, test the feed in YouTube Studio, and plan for process or network failures.
What you need before starting
- A still image and music file that FFmpeg can read, with permission to use and stream both.
- An installed FFmpeg build that supports the required input options, H.264 video encoding, AAC audio encoding, and RTMPS output. Check it with
ffmpeg -version; option and codec availability can vary by build. - A YouTube channel able to go live, with an encoder-based stream created in YouTube Studio.
- A stable upload connection that can sustain the chosen video and audio bitrates, with room for network variation.
Use YouTube’s live stream settings guide to create or schedule an encoder-based stream in Live Control Room. Copy the RTMPS ingestion URL and the stream key YouTube gives that stream. Google’s LiveStreams API resource refers to these as the ingestion address and stream name. Use the supplied values rather than guessing a generic endpoint.
Choose resolution, bitrate, and keyframe interval
The example uses 30 frames per second and a nominal two-second GOP. At 30 fps, -g 60 sets 60 frames between keyframes. YouTube’s current encoder guidance recommends a two-second keyframe frequency and says not to exceed four seconds. Set the output dimensions deliberately: without a scale filter, the image’s dimensions determine the video dimensions, so the command does not automatically produce 720p.
| Output target | YouTube bitrate guidance | Practical note |
|---|---|---|
| 480p at 30 fps | 0.3–3 Mbps | Choose a bitrate your connection can sustain. |
| 720p at 30 fps | 2–6 Mbps | The example uses 2.5 Mbps, within this recommended range. |
These ranges are YouTube recommendations, not guarantees of picture quality or viewer reach. YouTube also recommends 44.1 kHz audio and 128 kbps stereo audio. Its settings can change; check the current encoder settings, bitrates, and resolutions before a long-running setup.
Recommended Free Tools
#1 Best Overall
- 【Ryzen 5 3500U Processor】KAMRUI Essenx E2 Mini PC is equipped with AMD Ryzen 5 3500U (4-cores/8-threads, up to 3.7GHz) with integrated Radeon Vega 8 Graphics(1200MHz, 8 Core). The 3500U CPU operates at a base frequency of 2.1 GHz and a Boost frequency of 3.7 GHz. This DDR supports upgradable up to 32GB, SSD supports up to 2TB.(NOT INCLUED), KAMRUI E2 3500U Mini PC is ideal for light office work and home entertainment. KAMRUI E2 3500U is more than 35% more powerful and smoother in operation than the Intel N150, 33% faster than Intel N95, 28% performance boost over Intel i3-10110U, and 42% stronger processing power than AMD Ryzen 3 3200U.
- 【16GB DDR4 & 256GB SSD】The KAMRUI E2 mini computers is equipped with 16GB DDR4(Expandable up to 32GB) for faster multitasking and smooth application switching. 256GB M.2 SSD ensures fast startup times,fast file transfers and plenty of storage space,eliminating slow loading times and ensuring fast responsiveness.Storage space can RAM supports up to 32 GB, SSD supports up to 2TB (Not included)make file storage easier.
- 【4K Dual Display & USB 3.2 Type-A Port】KAMRUI E2 3500U mini desktop pc is equipped with an HDMI 2.0+DP 1.4 interfaces for faster transmission, Support Dual 4K@60Hz Display, E2 mini desktop computers is ideal for visual home entertainment, home office, conference rooms, etc. USB3.2 Gen1 Type-A Port×2 with a transfer speed of up to 5Gbps (10 times faster than USB 2.0) for efficient data transfer. The RJ45 1000M Gigabit Ethernet Port ensures a stable network connection.
- 【WiFi+Bluetooth stable connection】The Kamrui E2 micro pc have reliable and stable wireless connection, open websites in seconds, watch movies without buffering and download files smoothly, connect your monitor from WiFi or Ethernet, use a wireless keyboard and mouse through bluetooth, which will be powerful workstation for you.
- 【Versatile Ports】This KAMRUI E2 Small pc is equipped with HDMI 2.0×1(4K@60Hz)、DP1.4×1(4K@60Hz)、Gigabit Ethernet Port (RJ45, 10/100/1000Mbps) ×1、USB3.2 Gen1 Type-A Port×2(5Gbps)、USB2.0 Type-A Port×2、3.5mm Audio Jack ×1、DC In ×1、Power Button ×1
Build the FFmpeg command
Replace image.jpg and music.mp3 with your file paths, then replace the RTMPS placeholders with the exact address and key from YouTube. Keep the working key private: it functions as a credential that allows an encoder to send video to your stream.
ffmpeg -re -loop 1 -framerate 30 -i image.jpg
-re -stream_loop -1 -i music.mp3
-c:v libx264 -tune stillimage -pix_fmt yuv420p -r 30 -g 60
-b:v 2.5M -maxrate 2.5M -bufsize 5M
-c:a aac -b:a 128k -ar 44100
-f flv 'RTMPS_INGEST_URL/STREAM_KEY'
This is an editorial example assembled from the FFmpeg and YouTube documentation, not a command copied verbatim from either source or a tested result. FFmpeg documents -re as reading at native frame rate (equivalent to -readrate 1), which is useful when streaming files in real time. The still-image input loop keeps generating frames, while -stream_loop -1 repeats the music input indefinitely. See the FFmpeg documentation and FFmpeg filters documentation; verify the options against your installed build and input demuxer behavior.
Rank #2
- 【Ryzen 5 3500U Processor】The BOSGAME mini pc is driven by the Ryzen 5 3500U (4C/8T, up to 3.7GHz) , with integrated Radeon Vega 8 Graphics, delivering reliable power, 4K video streaming and multitasking. Handle daily workloads like spreadsheet calculations, web browsing, and HD video editing effortlessly.
- 【8GB DDR4 & 256GB SATA SSD】E4 Air mini computers with 8GB DDR4 RAM and a 256GB SATA SSD, this mini desktop ensures quick app launches and efficient multitasking. while the SSD accelerates file transfers—ideal for office documents, media storage, and everyday computing.
- 【4K Triple Display & USB-C & USB3.2】The mini desktop computer Drives three 4K monitors via HDMI, DisplayPort and USB-C for multi-window productivity or immersive home theater setups;USB 3.2 meets your multi-interface transfer needs.
- 【Dual RJ45 LAN & Wi-Fi 5 & BT5.0】Equipped with Dual Gigabit Ethernet, dual-band Wi-Fi 5, and Bluetooth 5.0, this ryzen mini pc ensure stable connections for 4K streaming, video calls, and file transfers. Wirelessly connect keyboards, headphones and speakers via BT5.0 ideal for office productivity and home entertainment.
- 【3-Year Reliable Customer Services】 All of our BOSGAME mini pc gaming have FCC, ROHS, CE certifications. BOSGAME enjoy a 1-year wa-rranty for the entire machine and a 3-year wa-rranty for parts, ensuring your long-term peace of mind. If you have any questions about your purchase, please let us know through Amazon.
Set a different image size
If your image is not already at the dimensions you want, add a scale filter to the video options. For example, to target 1280 × 720, add -vf "scale=1280:720" before the video codec options. Scaling may change the image’s aspect ratio if its proportions do not match 16:9. To preserve proportions and fit within 1280 × 720, use a scale expression such as -vf "scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2". Confirm that your FFmpeg build accepts the filter and inspect the preview for cropping, padding, or distortion.
Protect the stream key
Do not publish the complete command with an active key, leave it in a shared log, or include it in a screenshot. YouTube describes the key as password-like; if it is exposed, reset it in the stream settings and update your FFmpeg destination with the replacement. RTMPS encrypts the connection in transit, but that does not make a disclosed key safe. YouTube recommends RTMPS for this workflow; see its RTMPS ingestion guide.
Free tools Windows power users keep installed
One-click scans. No signup required.
Rank #3
- 【Powerful & Efficient Performance】Powered by the Intel Celeron J3355 Processor (up to 2.5GHz), this Mini PC delivers a 25% performance boost over previous generations. Pre-installed with Windows 11 Home and supporting Linux/Ubuntu, it’s the ideal micro desktop for seamless web browsing, document editing, and efficient daily office tasks.
- 【Massive Storage & Unique Expansion】Equipped with 6GB LPDDR3 RAM and 128GB onboard storage for fast boot-ups. Stand out with our dual M.2 SSD slot design (1x SATA + 1x NVMe), allowing you to easily expand storage up to 2TB without replacing the original drive. Perfect for managing large digital libraries and intensive multitasking.
- 【Stunning 4K Dual HDMI Display】Boost your productivity with Intel HD Graphics 500 and dual HDMI ports, supporting 4K @60Hz high-definition visuals. Connect two monitors simultaneously to streamline your workflow—ideal for home office setups, stock trading, or enjoying a theater-like 4K media experience.
- 【Ultra-Compact & Space-Saving Design】Measuring only 4.2x4.1x1.4 inches and weighing just 0.49 lbs, this palm-sized mini computer fits anywhere. Use the included VESA bracket to mount it behind your monitor for a zero-clutter workspace. Features a smart silent fan and heat sink system for quiet, reliable 24/7 operation.
- 【Stable Connectivity & Smart Recovery】Stay connected with Dual-Band WiFi (2.4G/5G), Bluetooth 5.0, and Gigabit Ethernet. Exclusive One-Click Restore feature (via F9 key) allows for quick system recovery in minutes. Backed by Bmax's 12-month warranty and lifetime technical support for a worry-free purchase.
Start the YouTube broadcast and verify the feed
- In YouTube Studio, create or schedule an encoder-based live stream in Live Control Room.
- Copy the RTMPS URL and stream key for that stream into the FFmpeg command. YouTube’s encoder settings identify RTMP/RTMPS ingestion and compatible video and audio codecs.
- Run FFmpeg on the computer or server hosting the media files. Watch its output for connection or encoding errors.
- Check the Live Control Room preview and stream health. Confirm that the image appears, music is audible, and the stream reports no actionable health messages.
- Test privately or as unlisted before promoting the stream. Start or confirm the broadcast according to the controls and settings shown for your stream.
Keep the YouTube concepts distinct: the incoming liveStream is the feed/configuration, while the liveBroadcast is the viewer-facing event. Google’s guide, Understanding Broadcasts and Streams, describes a channel using a 24/7 live feed alongside a separate event broadcast. A continuously running FFmpeg process does not by itself guarantee that one viewer-facing broadcast or archive behaves as you expect.
What it takes to keep the feed running 24/7
Looping media and pacing input solve only the playback side. FFmpeg can stop because of a process error, a damaged or unreadable file, a power outage, or a network interruption. YouTube recommends test runs and monitoring; its live streaming tips cover preparation, and its health status messages reference issues such as low bitrate, GOP length, unsupported audio, or missing and inconsistent streams.
Rank #4
- POWERFUL OFFICE & LIGHT GAMING MINI PC --- The GMKtec NucBox G10 features the AMD Ryzen 5 3500U (4C/8T, up to 3.7GHz) with Radeon Vega 8 Graphics up to 1200MHz. Built on Zen+ 12nm architecture, it delivers 35% faster performance than Intel N150/N100 series chips, making it ideal for light gaming, video playback, home office, and multitasking workstations.
- HIGH-SPEED 16GB DUAL DDR4 + 512GB PCIe SSD --- Comes preinstalled with 16GB dual-channel DDR4 (2×8GB) and a 512GB M.2 PCIe 3.0 SSD for blazing-fast boot, load, and transfer speeds. Easily upgradeable up to 32GB RAM and 2×8TB SSDs with dual M.2 2280 PCIe 3.0 slots for unmatched storage flexibility.
- SMOOTH TRIPLE 4K@60Hz DISPLAY OUTPUT --- Supports triple-display setup via HDMI 2.1 TMDS, DisplayPort 1.4, and USB-C. The Radeon Vega 8 GPU handles 4K@60Hz video editing, office visuals, and casual design tasks smoothly. Ideal for financial trading, productivity dashboards, and multi-window workflows.
- 2.5GbE ULTRA-FAST NETWORKING + SERVER READY --- Equipped with a 2.5GbE RJ45 LAN port, the G10 offers up to 2500Mbps stable wired internet speed. Perfect for office work, media server setups, Pfsense, Untangle routers, or secure network appliances. No more bottlenecks in data-intensive environments.
- COMPACT SIZE, FULL I/O, NEXT-GEN WIRELESS --- Palm-sized mini desktop comes packed with dual USB 3.2 Gen1, USB 2.0, USB-C (Full-Function: PD/DP/Data), DisplayPort, HDMI, and 3.5mm audio jack. Stay connected with WiFi 5 + Bluetooth 5.2. Great for office desks, minimalist setups, or VESA mounting.
- For a machine you manage, use a process supervisor configured to restart FFmpeg after an unexpected exit, and retain logs so you can diagnose repeat failures.
- Monitor the YouTube preview and health messages, as well as the host’s power and network connection. A restart policy cannot fix a persistent network outage or invalid media.
- FFmpeg’s all-options documentation includes an RTMP FIFO muxer example that attempts recovery after temporary network failure. Treat it as an option to investigate, not an uninterrupted-service guarantee; exact options and RTMPS compatibility depend on the build and configuration. See FFmpeg’s all-options documentation.
These operational measures are general engineering practices, not uptime guarantees from FFmpeg or YouTube. No command can promise an uninterrupted 24/7 broadcast.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Preflight and troubleshooting
Before you go live
- Open both input files and verify the audio contains usable sound.
- Check the installed FFmpeg version and confirm the needed loop options, encoders, and output protocol are available.
- Choose the output dimensions and frame rate; do not assume the image will become a standard resolution automatically.
- Use YouTube-compatible codecs and a keyframe interval that does not exceed four seconds; YouTube recommends two seconds.
- Select a bitrate your upload can sustain, run a test, and inspect stream health.
- Use the actual RTMPS URL and key from Live Control Room, and keep the key secret.
- Confirm you are authorized to stream the image and music and that the content complies with YouTube’s Community Guidelines. The applicable rights depend on the particular files and permissions; platform technical settings cannot determine them for you.
Common problems and fixes
| Symptom | Likely cause | What to check |
|---|---|---|
| YouTube does not receive a feed | Incorrect URL or key, connection failure, or unsupported output configuration. | Copy the exact values for the stream from Live Control Room, inspect FFmpeg’s error output, and verify RTMPS support in your build. |
| Video appears at the wrong size | The command uses the image’s dimensions because no scale filter is specified. | Inspect the image dimensions and add an appropriate scale filter; check aspect ratio and preview framing. |
| The music ends or does not repeat | The audio input path, format, or looping option is incorrect. | Confirm FFmpeg can read the file and that -stream_loop -1 precedes that input. |
| Audio is silent or YouTube flags audio | The file may lack usable audio, or its codec/settings may not match the intended output. | Test the source file, then check AAC encoding, sample rate, and YouTube’s current audio guidance. |
| YouTube reports poor stream health | Bitrate may be too low or unstable, the keyframe interval may be unsuitable, or audio/video may be unsupported or inconsistent. | Read the specific health message, verify settings against YouTube’s encoder guidance, and test with a sustainable bitrate. |
| The stream stops after initially working | FFmpeg exited, the host lost power or connectivity, or YouTube stopped receiving the feed. | Inspect logs and host/network status, restart the process if needed, and configure supervision and monitoring for unattended operation. |
Or let it run in the cloud
If you want the same still-image-and-music loop without keeping your own computer or home connection running, StreamNeo is a cloud service for keeping a YouTube channel live from uploaded videos. Upload the recording or build a playlist, add your YouTube stream key once, and go live. It loops the uploaded video from the cloud; it does not stream from a camera or to other platforms.
Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →Quick Recap
Best Value
- [🚨Industry Supply Alert] Facing a severe industry-wide DDR memory shortage driven by massive AI sector demand, GEEKOM must review its cost structure in the future to maintain the A5's uncompromised quality. Secure your unit now to lock in the current high-value configuration before potential changes.
- 🛡️[Worry-Free for 3 Years & Trust First] Unlike budget brands offering limited 1-year coverage, GEEKOM provides a premium 3-year limited warranty. This reflects our confidence in materials, build quality, and industry-verified reliability (including FCC, UL, and ENERGY STAR). Enjoy consistent performance for home offices and business deployments with long-term professional protection.
- [15W Ryzen 5 7430U & Agentic AI Assistant] The GEEKOM A5 integrates an AMD Ryzen 5 7430U (15W TDP) into a compact metal chassis, offering superior efficiency compared to earlier generations like the 5500U or 4300U. It effortlessly doubles as a cloud-native Agentic PC—seamlessly hosting cloud AI tasks, automating workflows, and summarizing documents without complex local deployment. Perfect for video conferences, 4K streaming, and AI-assisted office workloads.
- [16GB RAM & 1TB NVMe SSD, Expandable] Features dual-slot DDR4 RAM (upgradable to 64GB) and a massive 1TB PCIe NVMe SSD (upgradable to 4TB). With an extra M.2 2242 slot and a 2.5" HDD bay supporting up to 10TB of total storage, you get the greater flexibility and value missing in soldered LPDDR alternatives. Scale your memory and storage seamlessly to drive your growing creative and professional workloads.
- [4-Screen Display & 8K Visuals] Powered by AMD Radeon Vega 7 Graphics, it supports up to 4x 4K displays via 2 HDMI and 2 USB 3.2 Gen 2 Type-C ports, with 8K visuals via Type-C. Ideal for complex multitasking—from managing large Excel sheets and Adobe creative apps to streaming high-definition content, ensuring a smooth and vibrant visual experience for professional workflows.
- Nothing has to stay on at home once the cloud stream is running.
- Uploaded quality streams as made, up to 4K 60fps, at one price per slot rather than quality tiers.
- Automatic recovery is included if YouTube drops the stream.
- The first day is free with no card required (one free day per account). Monthly billing is $9.99 per month.
Start your StreamNeo free 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.

