Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
DocumentaryTube
4K streaming

YouTube Live पर 4K 60fps के लिए FFmpeg कैसे कॉन्फ़िगर करें (हिंदी गाइड)

4K 60fps YouTube Live के लिए FFmpeg की शुरुआती सेटिंग्स, फ़ाइल-स्ट्रीमिंग कमांड, bitrate, keyframes, परीक्षण और troubleshooting।

By DocumentaryTube Team 2 min read
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

FFmpeg से YouTube Live पर 4K 60fps SDR H.264 स्ट्रीम के लिए एक व्यावहारिक शुरुआती सेटअप है: 50 Mbps CBR वीडियो, 2 सेकंड का keyframe interval, AAC stereo 128 kbps/44.1 kHz और उपलब्ध होने पर RTMPS। यह कमांड टेम्पलेट है, हर कंप्यूटर पर प्रमाणित सेटिंग नहीं; अपने स्रोत, encoder और स्थिर upload क्षमता के अनुसार इसे समायोजित करें और प्रसारण से पहले परीक्षण करें।

पहले ये YouTube Live सेटिंग्स समझें

YouTube की मौजूदा encoder guidance के अनुसार 4K/2160p 60fps के लिए H.264 वीडियो की अनुशंसित bitrate 50 Mbps और न्यूनतम 14 Mbps है। AV1 या H.265/HEVC के लिए अनुशंसित bitrate 35 Mbps और न्यूनतम 10 Mbps है। ये live ingest के वीडियो आंकड़े हैं; audio और transport overhead के लिए अतिरिक्त upload क्षमता रखें। केवल न्यूनतम bitrate को लक्ष्य मानने के बजाय स्थिर upstream connection और वास्तविक परीक्षण को प्राथमिकता दें। YouTube की encoder settings guidance देखें।

सेटिंग 4K/60 के लिए शुरुआती मान ध्यान रखने योग्य बात
वीडियो codec H.264 सरल उदाहरण के लिए H.264 चुना गया है; अपने FFmpeg build और encoder में codec support जाँचें।
H.264 वीडियो bitrate 50 Mbps अनुशंसित; 14 Mbps न्यूनतम YouTube की live ingest guidance; upload overhead इसके अतिरिक्त है।
AV1 या H.265/HEVC bitrate 35 Mbps अनुशंसित; 10 Mbps न्यूनतम तभी चुनें जब आपका encoder और YouTube ingest workflow इसे समर्थन दे।
दर नियंत्रण CBR YouTube की अनुशंसित encoder setting।
Keyframe interval 2 सेकंड; 4 सेकंड से अधिक नहीं 60 fps पर 2 सेकंड = 120 frames।
Audio AAC stereo, 128 kbps, 44.1 kHz 5.1 audio के लिए YouTube 48 kHz और 384 kbps बताता है; RTMP/RTMPS पर 5.1 केवल AAC के साथ समर्थित है।
Transport RTMPS उपलब्ध हो तो यह YouTube तक encrypted transport देता है।
Latency 4K पर सामान्य latency YouTube के अनुसार 4K stream में low-latency सुधार उपलब्ध नहीं है।

फ़ाइल से स्ट्रीम करने के लिए FFmpeg कमांड

नीचे का उदाहरण फ़ाइल input के लिए है। input-file, ingest host और stream key को अपने मान से बदलें। YouTube Live Control Room में दिखे वर्तमान ingest विवरण का ही उपयोग करें और असली stream key को सार्वजनिक पोस्ट, स्क्रीनशॉट या logs में न रखें।

ffmpeg -re -i input-file 
  -map 0:v:0 -map 0:a? 
  -vf "scale=3840:2160:force_original_aspect_ratio=decrease,pad=3840:2160:(ow-iw)/2:(oh-ih)/2,fps=60,format=yuv420p" 
  -c:v libx264 -preset veryfast -b:v 50M -maxrate 50M -bufsize 100M 
  -g 120 -keyint_min 120 -bf 2 -refs 1 -flags +cgop 
  -c:a aac -b:a 128k -ar 44100 
  -f flv "rtmps://INGEST_HOST/live2/STREAM_KEY"

कमांड के मुख्य विकल्प

  • -re फ़ाइल को लगभग वास्तविक समय की गति से पढ़ता है, ताकि फ़ाइल को तेजी से भेजकर ingest को भर न दिया जाए। Capture device, camera या network से पहले से live input हो तो -re हटाएँ; वास्तविक live input पर कम read rate packet loss करा सकती है।
  • -map 0:v:0 -map 0:a? पहले input का पहला video और मौजूद होने पर audio चुनता है। यदि आपकी फ़ाइल में audio track नहीं है, तो audio mapping और AAC विकल्पों को अपने input के अनुसार समायोजित करें।
  • Filter पहले चित्र को 3840×2160 canvas में aspect ratio बनाए रखते हुए fit करता है, फिर खाली जगह को pad करता है, 60 fps सेट करता है और H.264 के लिए आम pixel format yuv420p चुनता है। कम-resolution स्रोत को बढ़ाने से वास्तविक विवरण नहीं बनता।
  • -b:v और -maxrate 50 Mbps रखते हैं; -bufsize 100M rate-control buffer का शुरुआती मान है। यह CBR-जैसा लक्ष्य है, नेटवर्क या encoder की क्षमता की गारंटी नहीं।
  • -g 120 और -keyint_min 120 60 fps पर 120 frames, यानी 2 सेकंड का GOP निर्धारित करते हैं।
  • -preset veryfast केवल शुरुआती trade-off है। धीमा preset compression efficiency बेहतर कर सकता है, लेकिन अधिक processing मांग सकता है; preset से यह साबित नहीं होता कि आपका सिस्टम 4K60 लगातार encode कर पाएगा।
  • -f flv RTMP/RTMPS ingest के लिए muxing format चुनता है। FFmpeg विकल्पों का असर उनके बाद आने वाले input या output पर पड़ सकता है, इसलिए option placement जानबूझकर रखें। FFmpeg documentation में option scope और real-time pacing देखें; encoder और muxing विकल्पों के लिए FFmpeg all documentation देखें।

अपने स्रोत और सिस्टम के अनुसार इसे ढालें

क्या स्रोत वास्तव में 4K और 60fps है?

फ़ाइल या capture source के वास्तविक dimensions और frame rate जाँचें। कम resolution को 3840×2160 तक scale करने से output का आकार 4K होगा, लेकिन स्रोत का खोया विवरण वापस नहीं आता। यदि input 60fps नहीं है, तो filter frames को 60fps output में बदल सकता है, पर इससे नई वास्तविक motion detail नहीं बनती।

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.

Codec और hardware encoder चुनना

H.264 एक सीधा शुरुआती विकल्प है। AV1 और H.265/HEVC के लिए YouTube कम अनुशंसित bitrate बताता है, लेकिन आपका FFmpeg build, hardware encoder और पूरा ingest path उन codecs को कितनी कुशलता से संभालेंगे, यह सिस्टम पर निर्भर करता है। उपलब्ध encoder देखने के लिए अपनी FFmpeg installation में ffmpeg -encoders चलाएँ; चुने हुए encoder के विकल्प उसी build के documentation से जाँचें। हार्डवेयर encoding उपलब्ध हो तो उसका वास्तविक load और output rehearsal में परखें।

SDR और HDR

सामान्य SDR प्रसारण के लिए YouTube Rec. 709 और 8-bit की सिफारिश करता है। HDR अलग workflow है: YouTube की guidance RTMP(S) पर H.265, 10-bit की सिफारिश करती है और AV1 को HDR के लिए समर्थित नहीं बताती। ऊपर का H.264/yuv420p उदाहरण SDR के लिए है, HDR preset नहीं।

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.

Audio और aspect ratio

यह कमांड stereo AAC को 128 kbps/44.1 kHz पर encode करता है। 5.1 को तभी कॉन्फ़िगर करें जब स्रोत, encoder, muxing और ingest का पूरा audio path उसे support करता हो। मूल aspect ratio सुरक्षित रखने के लिए उदाहरण letterbox padding लगाता है; यदि आप crop करना चाहते हैं तो filter बदलें और परीक्षण में framing देखें।

प्रसारण से पहले rehearsal और जाँच

  1. YouTube Live Control Room में वर्तमान ingest URL और stream key लें। Key निजी रखें; article, screenshot या साझा log में उसे न दिखाएँ।
  2. अपने वास्तविक स्रोत, अपेक्षित motion और audio के साथ rehearsal करें। चैनल workflow के मुताबिक private या unlisted test इस्तेमाल करें, यदि वह विकल्प उपलब्ध हो। Live access और account eligibility चैनल-विशिष्ट हो सकते हैं।
  3. Live Control Room में stream health और warnings देखें। YouTube परीक्षण तथा stream health की निगरानी की सलाह देता है।
  4. स्थिर upload क्षमता की जाँच करें। 50 Mbps video लक्ष्य के ऊपर audio और transport overhead के लिए जगह रखें; यदि uplink लगातार लक्ष्य नहीं संभालता तो bitrate या resolution घटाएँ।
  5. Copyright और YouTube की live-streaming नीतियों के अनुरूप सामग्री का अधिकार सुनिश्चित करें। किसी वीडियो पर अधिकार होना और उसका platform monetization या reused-content मानकों पर खरा उतरना अलग प्रश्न हो सकते हैं; लागू नियम अपने चैनल और सामग्री पर जाँचें।

आम समस्याएँ और उनके समाधान

  • YouTube unstable connection दिखाए: sustained upload क्षमता की तुलना चुनी गई video bitrate से करें और overhead के लिए अतिरिक्त headroom रखें। नेटवर्क लक्ष्य पूरा न कर सके तो bitrate घटाएँ या resolution कम करें; फिर उसी परिस्थिति में दोबारा परीक्षण करें।
  • Stream 4K60 नहीं दिखती: input के वास्तविक dimensions/frame rate, filter chain और output settings जाँचें। अपस्केलिंग केवल आकार बढ़ाती है, स्रोत की detail नहीं।
  • Encoding overload या dropped frames हों: तेज preset आज़माएँ, स्थानीय FFmpeg build द्वारा समर्थित hardware encoder पर विचार करें, या resolution/frame rate घटाएँ। कोई भी विकल्प आपके विशिष्ट कंप्यूटर पर प्रदर्शन की गारंटी नहीं देता।
  • Audio नहीं आता: input में audio stream है या नहीं जाँचें। -map 0:a? audio को वैकल्पिक बनाता है; track अनुपस्थित हो तो audio encode करने के लिए कुछ नहीं होगा। सही input track और channel layout के अनुसार mapping तय करें।
  • Connection या key error आए: Live Control Room से ingest URL और key फिर मिलाएँ, key में अतिरिक्त whitespace न हो, और key साझा या उजागर हुई हो तो उसे बदलें। RTMPS endpoint का वही variant इस्तेमाल करें जो YouTube आपके stream के लिए दिखाता है।
  • Keyframes या ingest format की चेतावनी मिले: 60fps पर GOP को 120 frames/2 seconds पर रखें और YouTube की अधिकतम 4-second सीमा पार न करें। FFmpeg build में संबंधित encoder विकल्प स्वीकार हो रहे हैं या नहीं, यह स्थानीय output और documentation से जाँचें।
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

या इसे cloud में चलने दें

DIY FFmpeg तरीका पूरा नियंत्रण देता है, लेकिन encode और network को आपके सिस्टम पर चलना पड़ता है। StreamNeo एक अलग विकल्प है: यह YouTube channel पर uploaded videos को cloud से 24/7 loop करता है; camera से live नहीं जाता।

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.
  1. वीडियो upload करें या playlist बनाएँ।
  2. अपनी YouTube stream key एक बार जोड़ें।
  3. Go live करें; StreamNeo cloud से वीडियो loop करता है।

घर का कंप्यूटर बंद रह सकता है। अपलोड किया हुआ वीडियो जैसा है वैसा stream होता है, 4K 60fps तक, एक flat per-slot price पर और बिना re-encode या quality tier के। YouTube stream drop करे तो automatic recovery ہے। पहले दिन का trial बिना card के है। Monthly plan: $9.99 per month. UPI और cards भारत में, card checkout दुनिया भर में उपलब्ध हैं। सुविधाएँ और अवधि StreamNeo पर देखें, या मुफ़्त पहले दिन के लिए साइन अप करें।

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.
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

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 from the Screening Room

Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

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.