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 DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
DocumentaryTube
Admit one · Blog

How to Use FFmpeg to Rotate Real Estate Videos from a Folder on YouTube Live

A practical FFmpeg workflow for inspecting, rotating, ordering, joining, and streaming real-estate clips to YouTube Live, with settings and fixes for common problems.
Opened Runtime6 min Written byDocumentaryTube Team

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.

Use FFmpeg in two stages: first rotate and normalize the clips into a single output file in a deliberate order, then send that file to YouTube Live with the correct stream key and encoder settings. Rotation changes video pixels, so it cannot be done with stream copy alone. The commands below assume a Unix-like shell and FFmpeg is installed; inspect your clips first because the right rotation, aspect ratio, and audio handling depend on the files.

1. Inspect the clips and decide what “rotate” means

Before batch processing, identify whether clips need a 90°, 180°, or 270° correction, whether their pixels are already oriented correctly but tagged with rotation metadata, and whether the finished stream should be landscape, portrait, or mixed. Do not apply one rotation blindly to every file: phone footage may use metadata, and clips from different cameras may need different corrections.

Use ffprobe to inspect each file’s dimensions, frame rate, video codec, audio streams, and rotation metadata. For one file:

ffprobe -v error -show_entries stream=index,codec_type,codec_name,width,height,r_frame_rate:stream_tags=rotate -of json "clip.mp4"

Run it on representative files, or loop through the directory and save the results. If a clip is portrait and the final canvas is landscape, choose whether to preserve the full picture with padding or crop it to fill the frame. Cropping can remove property details near the edges; padding preserves them but adds bars or a background.

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. Create an explicit playlist order

A folder does not define a meaningful playback order. Rename files with zero-padded numbers (for example, 01-front.mp4, 02-kitchen.mp4) or create a hand-curated list in the order you want. On a Unix-like shell, this creates a lexically sorted list for simple filenames:

printf "file '%s'n" *.mp4 > inputs.txt

Review inputs.txt before proceeding. Shell wildcard order is lexical, not necessarily the order a camera recorded clips. If filenames contain apostrophes or unusual characters, use a carefully escaped list or rename the files to simple names.

3. Rotate and normalize each clip

Rotation is a video-filter operation. You must decode and re-encode the video stream for a pixel rotation; -c copy cannot apply the transform. FFmpeg documents the filters, concat demuxer, and concat filter in its documentation and FAQ. The examples here use the transpose filter: transpose=clock rotates 90° clockwise, transpose=cclock 90° counterclockwise, and two applications rotate 180°.

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.

Process clips that all need the same rotation

For a 90° clockwise correction, use a per-file pass to create consistently encoded outputs. Adjust the input glob and filter for your footage:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
mkdir -p rotated
for f in *.mp4; do
  ffmpeg -i "$f" -vf "transpose=clock" -c:v libx264 -crf 18 -preset medium 
    -c:a aac -b:a 128k "rotated/$f"
done

Use transpose=cclock for counterclockwise rotation; use transpose=clock,transpose=clock for 180°. This example re-encodes video with H.264 and audio with AAC. If a source has no audio, FFmpeg may report that the requested audio stream is absent; omit the audio options for that file or use a workflow that handles optional audio explicitly. If sources need different corrections, process them in separate groups with the appropriate filter rather than applying a single rotation to all.

Normalize portrait and landscape clips to one canvas

For a consistent 1920Ă—1080 landscape stream that preserves the entire rotated picture, scale to fit and pad the remaining space:

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.
-vf "transpose=clock,scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2"

For clips that do not need rotation, omit transpose=clock,. To fill the full frame instead, use a crop-to-fill scale chain, but inspect the result because it may cut off room features or text. Keep the output resolution and frame rate consistent across all clips before joining them. These filter examples are starting points; rotation metadata and mixed source formats can require a different filter chain.

4. Join the processed files in order

If the processed clips have matching stream properties and are encoded compatibly, FFmpeg’s concat demuxer can join them without another re-encode. Create a new ordered list using the paths in the intended sequence, then run:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
ffmpeg -f concat -safe 0 -i rotated-list.txt -c copy joined.mp4

Use -safe 0 only with a list you control; absolute paths and unusual characters need careful quoting. The concat demuxer requires compatible streams. If codecs, dimensions, time bases, frame rates, or stream layouts differ, stream-copy concatenation may fail or create playback problems. Normalize the clips first, or use the concat filter, which decodes and re-encodes the joined result. For complex mixed inputs, follow the concat filter examples in the FFmpeg documentation rather than assuming one stream-copy command fits every folder.

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

5. Send the finished video to YouTube Live with FFmpeg

In YouTube Studio, create or open the live stream and copy its stream key. Treat that key like a password: do not paste it into a public script, video, or shared command history. YouTube’s current encoder guidance recommends RTMP or RTMPS, with RTMPS for encrypted transport, H.264, H.265/HEVC, or AV1 video, AAC or MP3 audio, constant bitrate (CBR), and a keyframe interval of two seconds (no more than four). See YouTube’s live encoder settings for the current requirements and recommendations.

For a 1080p30 H.264 stream, YouTube currently recommends 10 Mbps video bitrate; for 720p30, it recommends 6 Mbps. Its recommended stereo audio bitrate is 128 Kbps. These are platform recommendations, not guarantees that a connection can sustain the stream. Match the bitrate to the chosen output resolution and frame rate, and leave upload capacity headroom.

Once joined.mp4 is ready, send it to the RTMPS ingest address shown for your stream in YouTube Studio, appending the stream key. A typical command shape is:

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.
ffmpeg -re -i joined.mp4 -c:v libx264 -preset veryfast -b:v 10M -maxrate 10M -bufsize 20M 
  -r 30 -g 60 -keyint_min 60 -sc_threshold 0 
  -c:a aac -b:a 128k -ar 44100 -f flv "rtmps://YOUR_INGEST_URL/YOUR_STREAM_KEY"

Replace the ingest URL and key with the values YouTube Studio supplies; do not publish the resulting command with the key visible. This example sets 1080p30-style H.264 rate control and a 60-frame GOP, equivalent to a two-second interval at 30 fps. If you output another frame rate or resolution, recalculate the GOP and bitrate rather than copying these values unchanged. The -re option paces file playback in real time; without it, FFmpeg can read a file faster than real time.

6. Test and monitor before going public

Test the stream before public transmission, preferably with an unlisted or otherwise controlled broadcast. Confirm that the picture moves, orientation is correct, audio is present and synchronized, and transitions between clips do not freeze or drop sound. YouTube recommends testing with audio and movement comparable to the planned stream and monitoring stream health and messages. Its streaming tips recommend keeping total stream bitrate within upload capacity and leaving 20% upload headroom.

  • Check YouTube Studio’s preview and stream health before sharing the live link.
  • Watch the first transitions between clips; mismatched formats can reveal themselves as pauses, black frames, or audio changes.
  • Keep FFmpeg’s terminal output visible so you can spot encoder errors or a dropped connection.
  • Before publishing a property tour, confirm you have rights to every clip, soundtrack, photograph, and other material included. YouTube’s copyright enforcement can interrupt a stream or affect the channel.

Common problems and fixes

  • The picture is still sideways: The source may rely on rotation metadata, or the chosen direction may be wrong. Inspect the stream metadata and test a short sample with the opposite transpose filter.
  • Some clips are rotated incorrectly: They do not all share the same orientation. Separate them into correction groups and apply a filter per group or per file.
  • Concat reports mismatched streams or the output stutters: The clips differ in codec, dimensions, frame rate, time base, or audio layout. Normalize them to common output properties and use the concat filter/re-encode route where needed.
  • FFmpeg says no audio stream is available: At least one input is silent. Handle silent clips without audio mapping or add a deliberate silent track so every joined segment has a compatible audio stream.
  • YouTube reports poor connection or the stream buffers: Reduce bitrate or resolution, verify the actual upload rate, and retain the recommended headroom. A bitrate recommendation cannot compensate for an unstable connection.
  • The stream is not accepted by YouTube: Recheck the stream key, ingest URL, protocol, codec, CBR configuration, frame rate, and keyframe interval against YouTube Studio and its current encoder guidance.

Or let it run in the cloud

If the goal is to keep a pre-recorded real-estate video live on YouTube without leaving a computer running, StreamNeo is a cloud option: upload the recording or playlist, add your YouTube stream key, and go live. Nothing has to stay on at home; it plays uploaded videos rather than broadcasting a camera. It supports 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. Monthly is $9.99 per month. Start the free first day on 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 *

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.

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
PC Slower Than It Used to Be?Free scan - under a minute
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.