Skip to content

ThirteeNov

My personal blog about coding and internet

Menu
  • About me
  • About Zofia Kreasi
  • Cart
  • Checkout
  • Making an airplane game from scratch in Unity
  • My account
  • Privacy Policy
  • Privacy Policy – zkLeaderboard
  • Sample Page
  • Shop
  • Tutorials on Learning JavaScript
  • ZKAccounts – Privacy Policy
Menu

How to stream current desktop screen without including windows taskbar using ffmpeg?

Posted on March 14, 2025 by Habibie

To stream your current desktop screen without including the Windows taskbar using FFmpeg, you need to:

  1. Determine your screen dimensions (excluding the taskbar).
  2. Use the gdigrab input device in FFmpeg.
  3. Crop the capture area to exclude the taskbar.

Example Command:

ffmpeg -f gdigrab -framerate 30 -offset_x 0 -offset_y 0 -video_size 1920x1010 -i desktop -f flv rtmp://your-stream-url

Explanation:

  • -f gdigrab → Use Windows screen capture.
  • -framerate 30 → Set frame rate to 30 FPS (adjust as needed).
  • -offset_x 0 -offset_y 0 → Start capturing from the top-left corner (you can adjust this if needed).
  • -video_size 1920x1010 → Adjust this to match your screen resolution minus the taskbar height (usually 40px or 70px, depending on settings).
  • -i desktop → Capture the full desktop.
  • -f flv rtmp://your-stream-url → Stream to an RTMP server.

How to Determine Correct video_size:

  1. Find your screen resolution (1920x1080, 2560x1440, etc.).
  2. Subtract the taskbar height (usually ~40px in default mode, ~70px in larger mode).
  3. Example:
    • 1080p screen (1920×1080) → 1920x1040 (if taskbar height is 40px)
    • 1440p screen (2560×1440) → 2560x1400
Post Views: 157
ciihuy2020

Welcome!

  • My YouTube Channel
  • My GitHub Page
  • About me

Categories

  • 3DVista
  • Android
  • Apache
  • C#
  • Cordova
  • Electron & Node JS
  • HTML5, CSS & JavaScript
  • iOS
  • Let's Make Unity Games
  • Misc
  • Photoshop
  • PHP
  • Python
  • Uncategorized
  • Unity
  • WordPress

Recent Posts

  • Make objects like wires and cables easily in Unity using Ciihuy Curved Mesh
  • [SOLVED] Can’t Add Custom Domain to Blogger After Losing CNAME Verification
  • iOS App Icon Generator by CiihuyCom
  • Advanced Blinking Marker Script to show objects position in your game canvas
  • Ciihuy Images Merger – Fast & Easy Online Image Combiner
© 2025 ThirteeNov | Powered by Superbs Personal Blog theme