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)
- Run command
npm install pm2 --global
Setup IPFS (if you already have IPFS, skip this)
- Open https://dist.ipfs.io/#go-ipfs
- Download binary (based on your OS)
- Run
install.sh
command which is inside downloaded zip file. - Go to your work directory e.g.
~/Users/sagar
- Run
ipfs init
- this you would run once in life time. - Run
pm2 start "ipfs daemon" --name ipfs
- again once in life time.
Next time onwards, you just need to saypm2 restart ipfs
Setup FFMPEG
Please google yourself - "how to install ffmpeg"
Setup video encoder node
- Open terminal & navigate where you want to setup encoder-node
e.g.~/Users/sagar/projects
- Run
git clone https://github.com/spknetwork/video-encoder.git
cd video-encoder
npm install --force
npm run build
pm2 start "npm -- run start" --name video --time --max-memory-restart 6144M -f
- once in life time. Next time onwards, you just need to saypm2 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:
- DO NOT TOUCH PRIVATE KEY OR PUBLIC KEYs.
- Those are system generated & it shouldn't be touched.
- 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://hivesigner.com/sign/account-witness-vote?witness=sagarkothari88&approve=1