Ku Samee Server-kaaga Fiidiyowga Tooska ah Linux

Inta badan qalabka baahinta tooska ah iyo goobaha waa u bilaash dadweynaha laakiin inta badan waxay u muuqdaan inay u baahan yihiin inaad abuurto akoon, iyagoo bixinaya macluumaad laga yaabo inaadan rabin inaad online ka soo muuqato. Waxay ku(can ) hayn karaan xoogaa xog ah xayaysiisyada waxayna ku dari karaan Shuruudaha Adeegga(Service) oo jahawareer leh oo laga yaabo inaysan xitaa naftooda ku dhejin. 

Waxaa jira kuwa ku raaxaysta awoodda inay si toos ah u soo daayaan, laakiin aan baahi u qabin in fiidiyowyadooda ay diyaar u yihiin dadweynaha. Taa beddelkeeda, waxay doorbidi lahaayeen inay si badan u maamulaan qulqulkooda iyo waxa ay soo saaraan. Software -ka il(Open-source) furan, sida Linux , ayaa ah jawaabta ugu fiican ee caqabadan.

Horay u fakarayaa(Thinking Ahead)

Kahor intaadan bilaabin samaynta server-kaaga gaarka ah, waa inaad naftaada waydiisaa dhawr su'aalood. Marka hore(First) , waa maxay tayada qulqulka aad raadinayso? Marka xigta(Next) , imisa daawadayaasha ayaad filaysaa inay soo galaan? Halkeed ku kaydin doontaa dhammaan macluumaadkaaga la shubay? Yaa heli doona macluumaadkaas?

Shuruudaha nidaamka sidoo kale waxaa loo arki karaa walaac. Si kastaba ha ahaatee, ma jiraan xeerar go'an oo ku saabsan sida saxda ah waxaad uga baahan doontaa arrintan, markaa naftaada u roonow oo tijaabi si aad u aragto waxa ugu fiican yoolalkaaga.

Waxaad u baahan doontaa inaad ogaato borotokoolka qaban doona qaybta maqalka iyo muuqaalka ee qulqulka. Hab-maamuuska(Messaging Protocol) Farriinta -Waqtiga-dhabta ah ( RTMP ) waa doorasho weyn laakiin waxaa jira kuwo kale, sida WebRTC , kuwaas oo laga yaabo inay ku fiicnaadaan xaaladdaada. RTMP waxay haysataa taageero balaadhan markaa waxaan diirada saari doonaa qodobkan.

Wax kale oo laga werwero waxay u badan tahay inay dib u dhac ku yimi socodkaaga "tooska ah". Sababtoo ah inaad si toos ah u nooshahay macnaheedu maaha in wax walba ay si qumman u safan doonaan. Fiidiyowyada(Video) durdurrada waxay u baahan yihiin in kood la geliyo, la wareejiyo, la daboolo, oo la soo bandhigo, markaa filo baahida loo qabo waxoogaa hagaajin ah sifada durdurrada.

Dejinta Server Linux(Linux Server Setup)

Ubuntu Linux waa midka aan jecelahay, markaa taasi waxay noqon doontaa nooca doorashada halkan. Kuwa doorbidaya ikhtiyaarka GUI , Ubuntu Desktop waa diyaar. 

  • Daar rakibaha (Fire)Ubuntu oo dooro dejimaha ku habboon baahiyahaaga. Waxay u badan tahay inaad rabto inaad dejiso qaar ka mid ah goobaha shabakadaha taagan maadaama tan loo isticmaali doono server ahaan.
  • Dib u bilow(Reboot) nidaamka ka dib rakibidda haddii aysan si toos ah u samayn. Marka nidaamka Ubuntu kor u kaco, ku rakib wixii cusbooneysiin ah ee la heli karo:
sudo apt update
sudo apt upgrade

Waxa aanu u isticmaali doonaa shabakada Nginx server-(Nginx web server) ka soo qulqulaya. Ku rakib:

sudo apt install nginx

Soo iibso(RTMP) moduleka RTMP si Nginx uu(Nginx) u maamulo qulqulka warbaahintaada:

sudo add-apt-repository universe
sudo apt install libnginx-mod-rtmp

Hagaajin qaabeynta Nginx si ay u aqbasho una gudbiso qulqulka warbaahintaada.

sudo nano /etc/nginx/nginx.conf

Kudar summada soo socota xagga hoose ee faylka qaabaynta:

rtmp {
        server {
                listen 1935;
                chunk_size 4096;

                application live {
                        live on;
                        record off;
                }
        }
}

Kaydi faylka isku xidhka maadaama aanu hadhow u isticmaali doono si aanu u abuurno seerfarka qulqulka ah ee shaqaynaya.

Ku bilow Nginx(Restart Nginx) qaabaynteeda cusub:

sudo systemctl restart nginx

Dejinta Software Streaming(Streaming Software Setup)

Seerfarku waa diyaar, markaa hadda waa waqtigii aad dejin lahayd software-kaga qulqulka. Aynu isticmaalno Open Broadcaster Software (OBS) inta hawshan socota. 

  • Tag goobta oo dooro dhismaha Linux . Ka dib marka softwareku furmo, ku xidho OBS(OBS) goobaha sida ugu fiican ugu habboon qalabkaaga.
  • Ku dar isha qulqulka adiga oo gujinaya + oo ka hooseeya Source .

  • Tijaabada awgeed, dooro Qabashada Muujinta(Display Capture) , oo geli magaca isha.
  • Guji badhanka OK , OBS -na waxa ay muraayadda u eegi doontaa miiskaaga.
  • Marka xigta, dhagsii File tab oo dooro Settings

Qaybta Streamka, dooro set Type Stream to Custom…(set Stream Type to Custom…) oo geli URL -kan soo socda goobta Server -ka:

rtmp://IPaddress/live 

Meesha IPaddresska(IPaddress) , geli ciwaanka IP-ga ee seerfarkaaga.

Hadda samee furahaaga qulqulka oo geli sanduuqa furaha (Stream Key)qulqulka(Stream) . Samee wax aad xasuusan doonto oo qor. Nabadgelyada dheeraadka ah, calaamadee sanduuqa aqoonsiga Isticmaalka(Use authentication ) oo ku dar shahaadooyinka aad doorbidayso.

Ku dhame Codso(Apply) oo ay ku xigto badhanka OK .

Wax walba waa in hadda loo habeeyaa socodka. Si aad u bilawdo socodkaagii ugu horeeyay, ku dhufo(Stop Streaming) badhanka Stream Now (Stream Now)Qiyaasta xadhkaha xadhkaha goosadka ee qulqulkaada ayaa ka soo muuqan doona xagga hoose ee daaqada OBS .

Noqo Daawahaaga Koowaad(Be Your First Viewer)

Waxaa jira ciyaartoy badan oo warbaahineed oo furan kuwaas oo taageera RTMP , kan ugu caansan oo ay ka mid yihiin VLC media player . Ku rakib oo soo saar software-kan, dhagsii tabka Warbaahinta , oo ka dooro (Media)shabkada Furan ee Streamka(Open Network Stream)

Furaha (Got)Furahaaga(Stream Key) ma ku anfacayaa? Ku qor dariiqa socodkaaga, oo ku dar furaha qulqulka ee(Stream Key) aad hore u dejisay, ilaa dhamaadkasa. Waa inuu u ekaado:

rtmp://IPaddress/live/SecretKey

Guji Play oo waxaad heli doontaa muuqaal toos ah qulqulka aad adigu leedahay.

Tallaabooyinka Dheeraadka ah(Additional Measures)

Hadda oo aasaaskii la gaadhay, xaddididda gelitaanka server-kaaga qulqulka iyo awood u yeelashada duubista iyo kaydinta fiidiyowyadaada waa laba arrimood oo kale oo laga yaabo inaad xiisaynayso.

Sida caadiga ah, qof kastaa wuu arki karaa qulqulkaaga. Tani waxay ka hor iman kartaa ujeedada abuurista serverka marka hore. Waxaad u baahan doontaa inaad dejiso gelitaan xaddidan adigoo isticmaalaya Linux firewall, .htaccess file , ama kontaroolada galitaanka ku dhex jira ee moduleka RTMP(built-in access controls in the RTMP module) . Doorashadan adiga ayay kuu taal.

Qaabeynta Nginx(Nginx) ee halkan lagu bixiyay ayaa kaliya awood kuu siin doonta inaad fiidyowyada daadiso, laakiin ma badbaadin. Si loogu daro ikhtiyaarka kaydinta, Nginx config, oo ka hooseeya qaybta RTMP , waxaad dejin kartaa xulashooyinka duubista qulqulka oo waxaad siisaa meel aad rabto in macluumaadkaaga lagu badbaadiyo oo lagu kaydiyo. 

Deji(Set) waddo jirta si aad ugu oggolaato Nginx inuu wax u qoro. Geli kuwa soo socda:

Codsiga si toos ah { (application live {)
             ku noolow; (             live on;)
             duub dhammaan; (             record all;)
             record_path /var/www/html/recordings;
             record_gaar ah; (             record_unique on;)
}

Taasi waa waxa kaliya ee ay tahay inaad u baahato markaad dejinayso server toos ah oo isticmaalaya Ubuntu Linux OS . Haddii aad aad u xiisaynayso server-ka warbaahinta aan tooska ahayn, waxaan ku talin lahaa isticmaalka Plex ee booska OBS.



About the author

Waxaan ahay mid aad loogu taliyay Windows 10 khabiir, waxaanan ku takhasusay inaan dadka ka caawiyo inay shakhsiyeeyaan muuqaalkooda kumbuyuutarka oo ay ka dhigaan qalabkooda Xafiis kuwo saaxiibtinimo leh. Waxaan u isticmaalaa xirfadahayga si aan uga caawiyo dadka kale siyaabaha ugu waxtarka badan ee lagula shaqeeyo Microsoft Office, oo ay ku jiraan sida loo qaabeeyo qoraalka iyo sawirada daabacaadda internetka, sida loo abuuro mawduucyo gaar ah oo loogu talagalay Outlook, iyo xitaa sida loo habeeyo muuqaalka shaqada ee miiska kombuyuutar.



Related posts