235
🙏 Namaste Hive Community members
With this video, I'll illustrate how to set up the encoder node on your system.
So, whenever someone uploads a video to 3speak, it has to be processed. You might be wondering what processing?
Imagine you uploaded a video from your iPhone 12 Pro with highest resolution and video size is up-to 1 GB.
Do you want your users with low data bandwith to suffer? Of course you won't.
So, encoder nodes will encode the video into different sizes like 480, 720, 1020 etc so that it can be viewable with limited data badnwith.
Video encoding is high processing task.
Now imagine, there are many users uploading video, 3speak can not limit itself to just 2-3 computers for encoding.
It may result in-to long queue and users may have to wait for video to get published.
and if 3speak does that, it becomes a centralised service provider which 3speak wants to avoid.
It has to be community driven.
This is where encoder-node-operator comes into picture.
Community powers the community.
They share the load, they take the job of video-encoding and guess what they also get reward of 1% as a beneficiary.
Anything which has processing power more than intel i7.
Not at all.
You need a wired connection. Wifi would work but you'll get lesser jobs because of fluctuating internet connection.
Anything above 40 mbps
Anything above 8 GB
You can use any operating system - macOS, ubuntu, windows.
You need nodejs 16, and ffmpeg installed on your system.
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 :)
npm install pm2 --global
install.sh
command which is inside downloaded zip file.~/Users/sagar
ipfs init
- this you would run once in life time.pm2 start "ipfs daemon" --name ipfs
- again once in life time.pm2 restart ipfs
Please google yourself - "how to install ffmpeg"
~/Users/sagar/projects
git clone https://github.com/spknetwork/video-encoder.git
cd video-encoder
npm install --force
npm run build
pm2 start dist/index.js --name video --max-memory-restart 6144M -f
- once in life time. Next time onwards, you just need to say pm2 restart video
pm2 resurrect
Ask me in the comments section or ping me on 3speak-discord=>encoder-nodes.
To appreciate my contribution, you can vote me as your Blurt Witness.
Jai Shree Krishna.
See you next time.
Comments:
Reply:
To comment on this video please connect a HIVE account to your profile: Connect HIVE Account