Skip to content
Om Puter

Om Puter

Berbagi Tutorial Coding dan Pemrograman Komputer

Menu
  • Channel YouTube ThirteeNov
  • Channel YouTube Om Puter
Menu

Contoh kode bat file untuk stream dari layar pc windows dengan spec rendah

Posted on 7 Agustus 20267 Agustus 2026 by OmPuter

Aku sih gunakan script bat ini untuk stream ke YouTube pakai vps windows server 2016 murahan dengan ffmpeg. Hasilnya oke sih.

@echo off
:restart
ffmpeg -y ^
 -rtbufsize 150M -thread_queue_size 1024 ^
 -f gdigrab -framerate 5 -offset_x 0 -offset_y 80 -video_size 490x640 -i desktop ^
 -thread_queue_size 1024 -stream_loop -1 -i "C:/audio.mp3" ^
 -map 0:v -map 1:a ^
 -fflags +genpts+igndts -avoid_negative_ts make_zero ^
 -c:v libx264 -preset ultrafast -tune zerolatency ^
 -profile:v baseline -level 3.1 ^
 -x264-params "nal-hrd=cbr:force-cfr=1" ^
 -b:v 1000k -minrate 1000k -maxrate 1000k -bufsize 1000k ^
 -g 10 -keyint_min 10 -sc_threshold 0 ^
 -pix_fmt yuv420p -threads 2 ^
 -c:a aac -b:a 96k -ar 44100 -ac 2 ^
 -max_muxing_queue_size 9999 ^
 -f flv rtmp://a.rtmp.youtube.com/live2/xxxxxxxx

echo FFmpeg stopped. Restarting in 5 seconds...
timeout /t 5
goto restart
Post Views: 25

Kategori

  • 3D Max
  • Adobe Animate
  • Android
  • c#
  • Cordova
  • HTML5, CSS & JavaScript
  • iOS
  • Lain-lain
  • Photoshop
  • PHP
  • Python
  • Roblox
  • Tak Berkategori
  • Unity
  • WordPress
ciihuy2020
© 2026 Om Puter | Powered by Superbs Personal Blog theme