How to setup 3Speak Video Encoder node?
hive-181335ยท@sagarkothari88ยท
0.000 HBDHow to setup 3Speak Video Encoder node?
Hello Hive Community members ## FAQ #### What kind of system do I need? Anything which has processing power more than intel i7. #### Do I need graphic card? Not at all. #### What kind of internet connection do I need? You need a wired connection. Wifi would work but you'll get lesser jobs because of fluctuating internet connection. #### How much internet speed is required? Anything above 40 mbps #### How much RAM is required? Anything above 8 GB #### What operating system is required? You can use any operating system - macOS, ubuntu, windows. #### What softwares are required? You need nodejs 16, and ffmpeg installed on your system. #### Would VPS work? I wouldn't recommend. I paid for heavy-weight contabo server for over a year & it does not encode a single video in a day. But if you want to try, Give it a try. I wouldn't stop you :) ### Steps to setup encoder node #### Setup PM2 (if you already have PM2, skip this) 1. Run command `npm install pm2 --global` #### Setup IPFS (if you already have IPFS, skip this) 1. Open https://dist.ipfs.io/#go-ipfs 2. Download binary (based on your OS) 3. Run `install.sh` command which is inside downloaded zip file. 4. Go to your work directory e.g. `~/Users/sagar` 5. Run `ipfs init` - this you would run once in life time. 6. Run `pm2 start "ipfs daemon" --name ipfs` - again once in life time. Next time onwards, you just need to say `pm2 restart ipfs` #### Setup FFMPEG Please google yourself - "how to install ffmpeg" #### Setup video encoder node 1. Open terminal & navigate where you want to setup encoder-node e.g. `~/Users/sagar/projects` 2. Run `git clone https://github.com/spknetwork/video-encoder.git` 3. `cd video-encoder` 4. `npm install --force` 5. `npm run build` 6. `pm2 start "npm -- run start" --name video --time --max-memory-restart 6144M -f` - once in life time. Next time onwards, you just need to say `pm2 restart video` NOTE: Make sure to run `pm2 save` so that if system restarts, you can bring it back to life. #### What to change in `~/.spk-encoder/config` file? Update the `gateway_client => gateway_url` value. as follows. ``` "gateway_client": { "gateway_url": "https://encoder-gateway.infra.3speak.tv", "queue_max_length": 1, "queue_concurrency": 1, "async_uploads": false }, "remote_gateway": { "api": "https://encoder-gateway.infra.3speak.tv", "enabled": true }, ``` Update the node name, hive name ``` "node": { "name": "Sagar M1 macBookPro", "privateKey": "Sxxxxxxxxxxxxxxxxxxxxxxx=", "cryptoAccounts": { "hive": "sagarkothari88" }, "publicKey": "did:key:zxxxxxxxxxxxxxxxxxxxxxxx" }, ``` > **CRITICAL WARNING:** 1. DO NOT TOUCH PRIVATE KEY OR PUBLIC KEYs. 2. Those are system generated & it shouldn't be touched. 3. DO NOT PASTE any of your HIVE keys here. #### What to do If I restart my system? `pm2 resurrect` ### More questions? Ask me in the comments section or ping me on 3speak-discord=>encoder-nodes. #### Like the work I do? - ๐ Please up-vote my content. - ๐ฅ Please follow my hive-blog. @sagarkothari88 #### Vote me as your hive-witness - ๐ If you like my work, motivate my by voting as your [hive witness](https://vote.hive.uno/@sagarkothari88) - https://vote.hive.uno/@sagarkothari88 - https://hivesigner.com/sign/account-witness-vote?witness=sagarkothari88&approve=1
๐ omarcitorojas, zuun.net, bil.prag, eddiespino, grisvisa, singhcapital, bilpcoin.pay, theycallmedan, xtheycallmedan, hironakamura, readthisplease, ozohu, onwugbenuvictor, estherscott, winniecorp, attentionneeded, omosefe, reineesmay, threespeak, diegoameerali, jeanlucsr, memepress, xthreespeak, deraaa, patronpass, arrrds, penguinpablo, cryptonized, funnyman, alphacore, piotr42, hungrybear, guysellars, jacuzzi, onestrong, cconn, tomwafula, minerspost, darkpylon, plusvault, andr3apat1no, meta007, galenkp, jesustiano, hive-168869, hive.friends, varunpinto, davidesimoncini, iyimoga, obrisgold1, aafeng, lrekt01, iasplan, sweetest, elikast, stayoutoftherz, sommylove, borran, thrasher666, theb0red1, luciannagy, urun, stefano.massari, manniman, tamaralovelace, koleso, kriszrokk, viniciotricolor, louisthomas, iktisat, denizcakmak, rosselena, faucetb2002, rosmeris21, momijiscrypto, bricksolution, awuahbenjamin, technologix, opinizeunltd, bashadow, phoenixwren, unklebonehead, good-karma, esteemapp, esteem.app, ecency, ecency.stats, thelordsfinest, drwom, auleo, cherryng, xecency, ismaelrd04, melochacalie, micaela.nomade, teenagecrypto, ikrahch, theouterlight, gubbatv, linita, valor2s, trafalgar, htotoo, itinerantph, raindrop, traf, kgakakillerg, julesquirin, xtrafalgar, kattycrochet, ahmedsy, nineclaws, goldigolds, trostparadox, davidbright, ralphmarcuss, el-dee-are-es, jmotip, xyba, r1s2g3, wend1go, dsky, franzpaulie, raqraq, rarereden, sofs-su, cryptobeautiful, olaunlimited, sagarkothari88, minihw, mes, pompoko, cmmemes, pocketrocket, revisesociology, ninnu, cookaiss, revise.spk, softworld, rico.csirait, photographercr, mccoy02, irenicus30, cryptomaster5, breelikeatree, spiritabsolute, cooperclub, tkrypt, binkyprod, steemik, rainbrella, lazy001, resonator, informationwar, ausbitbank, tftproject, ironshield, firstamendment, truthforce, risemultiversity, dmwh, empress-eremmy, aagabriel, haccolong, amnlive, deepdives, riskneutral, oratione, inigo-montoya-jr, kingneptune, hive-108278, n0m0refak3n3ws, eldritchspig, shanhenry, delver, investinfreedom, stevescoins, freebornsociety, hoaithu, anhvu, reteem, thecontesttrain, frankydoodle, retard-gamer-de, v4vapid, primeradue, ura-soul, reversehitler88, leprechaun, wakeupnd, insanityisfree, atma.love, newsnownorthwest, commonlaw, aconsciousness, clownworld, jimbobbill, maxsieg, techcoderx, happydolphin, ace108, drag33, isabelpena, phortun, onlavu, cryptokungfu, hectorsanchez18, oscarps, bimpcy, rr2qie, mezzane, yulilemus02, teammo, matyr, ernestoacostame, amitsharma, santigs, trifecta-tt, e-r-k-a-n, theinfiltred, traciyork, yourtop3, foxyspirit, haejin, ranchorelaxo, bobinson, web-gnar, engioi, memes05, memes01, memes04, jonsnow1983, memes03, therealsnowjon, baboz, pastzam, iliyan90, calisthenicsdrop, titofit, elkakoycheva, ississ89, velinov86, diosvarga, sneji79, lyubo19, tiger85, raikovv23, iliqn.iliev, motomojo, ivangeevo, alicewonderyoga, harmony.art, mihaylov, vaketo, mobluesbetter, kustev.chef, bobi.stefanov, pavlevskifamily, vpetrow, kateto.anna, mmanolev33, guru33, demanouil, nik.valchev79, dakothelion, abm100yan, moshkoto, yaponeca23, hive-test-bg, matrix-guru, mimtan, ecency-bulgaria, radinaaa.ppp, mitaka2001, adamkadmon5, teodor.borisov, mrtodorov, jordanfit, krisi.nikolova, dancho90, iliev26, vankata8, karevska, tihomirova, presidentmorty, fartunku, litalfrog, roflie, ajanaku, marylucy, carlos13, boycharlieplays, gaottantacinque, cribbio, gasaeightyfive, mintfinch, gabrielatravels, helgalubevi, chiomaj, doncustom, adrianalara, mariano123, noble-noah, mayor333, steemadi, atkw, elius100, silhouetted.grey, drax, androshchuk, kamarah, overunitydotcom, steemshiro, dynalav, jza, elgringoviejo, preets, braachaan, repayme4568, th4488, nj07, methodofmad, alex-rourke, name0, menati, leilei1991, nilarwin, lsdmercyy, afzalqamar, pauliinasoilu, aquatp2, arabisouri, danyst1ne, sandraa1, acgalarza, juditka, xianlaiyiju, rocinanteprimo, yangyanje, jacques0829, wiseagent, doxdod38, adaezeinchrist, ranteputohh, jaybone, olgargorohova, contentisking, santikomalasari, shafqatmahmood, nathen007, aschatria, gr33nm4ster, alonicus, marito74, duekie, lovelust, bettymorgan, mishoni, vasko90, projectmamaby, gokturk70, marianomariano, fiona777, felix.herrmann, priceless93, reetuahlawat, realafela, islandboi, mariannysleon, amryksr, albertocoachbl, judgedredd0666, growandbow, davidlionfish, alpha-arietis, da-dawn, dylanhobalart, new-world-steem, yisusth, dlugasny,