Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober 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 Scan×
Skip to content
VGSources
Blog

How to Join MP4 Videos With Different Resolutions for a YouTube Live Loop

Join MP4 videos with different resolutions by normalizing their streams, re-encoding with FFmpeg’s concat filter, and looping the finished file to YouTube Live.
Length6 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use FFmpeg to fit every clip to one canvas and frame rate, normalize the video and audio streams, then join them with the concat filter and re-encode. Different resolutions make a simple stream-copy join unreliable. Once the joined MP4 is ready, FFmpeg can loop it indefinitely while sending it to YouTube Live.

1. Inspect the clips and choose an output format

Before joining, check each MP4’s width and height, frame rate, video codec and pixel format, and whether it has audio. For audio, note the sample rate and channel layout. ffprobe can report these details; for example:

ffprobe -v error -show_streams -show_format first.mp4

Choose a single output canvas and frame rate that suit the intended stream. A 1920×1080, 30 fps output is used in the example below, not a universal recommendation. Avoid enlarging low-resolution footage without a reason: upscaling changes the output dimensions, but does not restore detail that is absent from the source.

If clips have different aspect ratios, fit each inside the same canvas while preserving its proportions, then pad the remaining space. Do not stretch a 4:3 clip to fill a 16:9 frame. FFmpeg’s scale filter documents force_original_aspect_ratio=decrease for fitting footage within the target dimensions and force_divisible_by=2 for even output dimensions.

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.

2. Normalize and join the MP4s with FFmpeg

When the inputs differ in resolution or other stream properties, use FFmpeg’s concat filter and re-encode to a consistent output. This example assumes both clips contain audio:

ffmpeg -i first.mp4 -i second.mp4 
  -filter_complex "[0:v]scale=1920:1080:force_original_aspect_ratio=decrease:force_divisible_by=2,pad=1920:1080:(ow-iw)/2:(oh-ih)/2,fps=30,setsar=1,format=yuv420p[v0];[1:v]scale=1920:1080:force_original_aspect_ratio=decrease:force_divisible_by=2,pad=1920:1080:(ow-iw)/2:(oh-ih)/2,fps=30,setsar=1,format=yuv420p[v1];[0:a]aresample=48000,aformat=sample_fmts=fltp:channel_layouts=stereo[a0];[1:a]aresample=48000,aformat=sample_fmts=fltp:channel_layouts=stereo[a1];[v0][a0][v1][a1]concat=n=2:v=1:a=1[outv][outa]" 
  -map "[outv]" -map "[outa]" 
  -c:v libx264 -c:a aac -b:a 128k -movflags +faststart joined.mp4

Replace filenames and adjust the canvas, frame rate, and audio handling for your files and installed FFmpeg build. The command is a pattern, not a guarantee that every pair of inputs will work unchanged. Inspect the result, especially where clips meet.

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.

If a clip has no audio

The example uses an audio input from each file. If a clip is silent, either add a compatible silent audio stream for that segment before the audio concat chain, or concatenate video only by configuring the filter with a=0 and mapping no audio output. If some clips have audio and others do not, explicitly provide audio for the silent segments or use a video-only result; do not reference a nonexistent audio stream.

What to check in the joined file

  • Play the full output and inspect every transition for black frames, unexpected scaling, or timing glitches.
  • Listen for gaps, abrupt level changes, or mismatched channel handling.
  • Check the final frame and audio at the end if the file will loop back to its beginning.

3. Choose the right FFmpeg joining method

Method When it fits Trade-off
Concat filter with re-encoding Inputs differ in resolution or other stream properties and need to become a consistent output. Requires processing time and can introduce generation loss, but lets you normalize the segments.
Concat demuxer with stream copy Inputs already have matching streams, including codecs and time base. Faster and avoids re-encoding, but is not a general fix for mismatched resolutions or incompatible streams. Inaccurate file durations can cause timestamp artifacts.
Joining MP4 files at the file level Not a general-purpose MP4 joining method. Only a few container formats allow simple file concatenation.

FFmpeg’s FAQ recommends the concat filter when re-encoding is needed. The concat demuxer documentation describes its stream compatibility requirements and timestamp behavior. Do not assume that changing file extensions or appending MP4 files will produce a valid joined video.

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.

4. Loop the finished file to YouTube Live

FFmpeg’s -stream_loop -1 option loops the input indefinitely. This example streams the prepared file over RTMPS using H.264 and AAC:

ffmpeg -re -stream_loop -1 -i joined.mp4 
  -c:v libx264 -pix_fmt yuv420p -r 30 -g 60 
  -b:v 5M -maxrate 5M -bufsize 10M 
  -c:a aac -b:a 128k -ar 44100 -ac 2 
  -f flv 'rtmps://YOUR_INGEST_ENDPOINT/YOUR_STREAM_KEY'

Use the ingest endpoint and stream key shown in YouTube Studio for your account, and keep the key private. The sample bitrate is not a universal setting. Select encoder settings for your chosen resolution and frame rate, your computer’s encoding capacity, and the upload connection available to the stream.

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

YouTube encoder settings to check

YouTube’s live encoder guidance, checked October 3, 2026, recommends RTMP or RTMPS, constant bitrate (CBR), and a two-second keyframe interval that does not exceed four seconds. It lists H.264, H.265, and AV1 video options, and AAC or MP3 audio for RTMP/RTMPS. Its recommendation for stereo audio is 44.1 kHz and 128 kbps. Recommendations depend on the incoming resolution and frame rate; consult the YouTube Live encoder settings for the current settings for your stream.

Incoming video format H.264 bitrate figure published by YouTube (page checked October 3, 2026)
720p at 30 fps Recommended: 8 Mbps
1080p at 30 fps Recommended: 14 Mbps; minimum: 5 Mbps
1080p at 60 fps Recommended: 17 Mbps

These are YouTube’s published recommendations, not guarantees of picture quality or evidence that an upload connection can sustain the bitrate. YouTube says it automatically detects the encoder settings you choose. Test ahead of time with movement and audio similar to the planned stream, then monitor stream health in YouTube Studio.

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

5. Troubleshoot common join and stream problems

The join fails or the output has the wrong size

Confirm each input path and stream mapping, and check whether the clips contain the audio streams referenced in the filter. Make sure each video branch uses the same target width, height, frame rate, sample aspect ratio, and pixel format. If a source is vertical or has a different aspect ratio, fitting and padding preserves its shape; it will not fill the canvas without cropping or distortion.

There is no audio, or audio disappears at a transition

Check whether every input actually has an audio stream. The sample filter references [0:a] and [1:a], so it cannot be used unchanged for a silent file. Normalize sample rate and channel layout where needed, and either provide audio for every segment or make a video-only output.

There are glitches at a join or loop boundary

Review the joined file at the transition and at the end-to-start boundary. Revisit frame-rate conversion and audio normalization if timing or continuity is inconsistent. If using the concat demuxer for compatible files, remember that inaccurate input durations can produce timestamp artifacts; for mismatched inputs, use the re-encode workflow instead.

YouTube reports unstable stream health

Verify that the endpoint and private stream key are correct, that the chosen output settings match YouTube’s current guidance for the stream, and that the upload connection can sustain the selected bitrate. Lower the delivery resolution or bitrate if needed, test again, and monitor the live control room. A bitrate recommendation alone cannot guarantee a stable connection.

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

Or let it run in the cloud

If the goal is a 24/7 YouTube loop rather than running your own encoder, StreamNeo lets you upload a recording or build a playlist, add your YouTube stream key, and go live. It loops uploaded video from the cloud, so your computer and home connection do not have to stay on. A slot streams what you upload at up to 4K 60fps for one flat price per slot, with no re-encode or quality tiers; it can automatically recover if YouTube drops the stream. The first day is free with no card. Monthly: $9.99 per month. See StreamNeo for details, or start the 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 quests from Patch Notes

  1. How To Create Custom Stickers & Shoutouts In Monster Hunter WildsMonster Hunter WildsBlog20min
  2. How to Get XL Gogoat in Pokemon Legends Z-A (An Extra-Large Gogoat)Pokemon Legends Z-ABlog20min
  3. How to Get Rotting Lightbringer in Diablo 4Diablo 4Blog17min
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.