How to Share Videos with Your Friends Using IPFS - The Distributed Web. — Steemit (2024)

IPFS is the Inter-Planetary File System and allows you to share images, videos, and files with your friends in a distributed network. All files are stored based upon their content and not its location on the network. Read that again. Cool right?!?

How to Share Videos with Your Friends Using IPFS - The Distributed Web. — Steemit (1)

Here's a quick example on using the Inter-Planetary File System (IPFS) a distributed, peer-to-peer file system for sharing and data across the web.

Requirements:

Download the IPFS https://ipfs.io/ software. This let's you have access to the IPFS protocol.

To get started:

Open the IPFS daemon to connect with peers on the IPFS network.

~/repos/powderskier_posts$ ipfs daemonInitializing daemon...Successfully raised file descriptor limit to 2048.Swarm listening on /ip4/127.0.0.1/tcp/4001Swarm listening on /ip4/172.17.0.1/tcp/4001Swarm listening on /ip4/192.168.1.117/tcp/4001Swarm listening on /ip6/::1/tcp/4001Swarm listening on /p2p-circuit/ipfs/QmU9c9xEwVeSMVpCXDiKZRc4TKyxriG489qUY5TYVRmuP9Swarm announcing /ip4/127.0.0.1/tcp/4001Swarm announcing /ip4/172.17.0.1/tcp/4001Swarm announcing /ip4/192.168.1.117/tcp/4001Swarm announcing /ip6/::1/tcp/4001API server listening on /ip4/127.0.0.1/tcp/5001Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080Daemon is ready
  • Cool, we are connected to the IPFS network. Leave this terminal running and open a new terminal session for the next sections below.

Upload your video to IPFS

Let's now upload the video <launch_night.MOV> to IPFS so that we can share it with friends. I'll share the video of the EOS developer's party from San Fransisco when the Mainnet launched.

~/repos/powderskier_posts$ ipfs add -r eos_launch_night/added QmXwDyxYu2SPveibXMShkz1C7grmANk5vd6Z9mFrXsVKvE eos_launch_night/eos_launch_party.mp4added QmZPWT6chRfbzZtMCHbCJUbWj9v18zDP3xZSnjZdTLqbTV eos_launch_night

As you can see above, there was a unique hash created for the <eos_launch_party.mp4> file (QmXw....) and a second hash ( QmZP...) points to the folder EOS_Launch_Night/ where the file resides. The second hash is like the address on a mailbox on a global mailing system. It is unique to the person who published it (see IPNS for more details). It's a lot like a pointer in C. If we want to share the pointer of this folder with our friends, we just sign it with one of the keys from our accounts and publish that to IPFS

~/repos/powderskier_posts$ ipfs key listself@[email protected]@sueeos_videos

Publish the Video to the Distributed Web

We will use the eos_videos key to publish the folder to IPFS.

~/repos/powderskier_posts$ ipfs name publish --key=eos_videos QmZPWT6chRfbzZtMCHbCJUbWj9v18zDP3xZSnjZdTLqbTVPublished to QmNctNgLivXpXPMSc8X943bJRG25u1XAuW9yyzutbrdFTP: /ipfs/QmZPWT6chRfbzZtMCHbCJUbWj9v18zDP3xZSnjZdTLqbTV

See if you can view the file on the web at:

https://ipfs.io/ipfs/QmZPWT6chRfbzZtMCHbCJUbWj9v18zDP3xZSnjZdTLqbTV

When I try this, I can see that the eos_launch_party.mp4 folder is accessible via the web, but the download is super slow and just hangs. Why does it take so long? I just tried to republish it so let's see it that helps. Does the file download for you?

How to Download the File From the Web

Let's simulate a remote download of the movie and see if we can play. We use $ ipfs get /ipfs/<HASH> to pull the data from the distributed web. Could you try this as well and see if you can get the movie file? Sometimes IPFS it tough to use and I'm trying to iron that out so please provide feedback and let me know if this works or doesn't work for you :). If we can get this system working together - say goodbye to paying for cloud storage!

~/repos/powderskier_posts$ cd ..~/repos$ cd~$ cd Videos/eos_party/~/Videos/eos_party$ ls~/Videos/eos_party$ ipfs get /ipfs/QmZPWT6chRfbzZtMCHbCJUbWj9v18zDP3xZSnjZdTLqbTVSaving file(s) to QmZPWT6chRfbzZtMCHbCJUbWj9v18zDP3xZSnjZdTLqbTV 2.33 GB / 2.33 GB [============================================================================================================] 100.00% 2m27s

Open the Download

Looks like the download worked. Let's look at the video and see if we can view it. Navigate to the parent directory of the eos_launch_party.mp4 file and open it.

~/Videos/eos_party$ lsQmZPWT6chRfbzZtMCHbCJUbWj9v18zDP3xZSnjZdTLqbTV~/Videos/eos_party$ cd QmZPWT6chRfbzZtMCHbCJUbWj9v18zDP3xZSnjZdTLqbTV/~/Videos/eos_party/QmZPWT6chRfbzZtMCHbCJUbWj9v18zDP3xZSnjZdTLqbTV$ lseos_launch_party.mp4

Open the video file.

I was able to open and view the <eos_launch_party.mp4> video file and it still had nice quality. (I actually compressed earlier from a 6GB .MOV file to 1GB .mp4 file using ffmpeg. Ping me if you want a tutorial on that.) So here's the video!
How to Share Videos with Your Friends Using IPFS - The Distributed Web. — Steemit (2)

Summary:

We just learned how to:

  • Add files and folders to IPFS using $ ipfs add -r FOLDER/
  • Publish this content to the distributed web, using $ ipfs name publish --key=XXX FOLDERHASH
  • Pull content from the distributed web using $ ipfs get /ipfs/HASH$

IPFS Rocks, Right?!! The web 3.0 is going the distributed. Let's all do our part to support projects that empower this movement. If you like these tutorials, please tell me what you enjoy or would like to see and I'll do that next time. :P

Cheers,
Gunnar

How to Share Videos with Your Friends Using IPFS - The Distributed Web. — Steemit (2024)
Top Articles
Find out how to invest on the Euronext markets
Am I able to purchase Chick-fil-A stock?
Tmf Saul's Investing Discussions
Trevor Goodwin Obituary St Cloud
Odawa Hypixel
Chris wragge hi-res stock photography and images - Alamy
Chelsea player who left on a free is now worth more than Palmer & Caicedo
Beautiful Scrap Wood Paper Towel Holder
Emmalangevin Fanhouse Leak
Acbl Homeport
Persona 4 Golden Taotie Fusion Calculator
Trini Sandwich Crossword Clue
Flower Mound Clavicle Trauma
The Witcher 3 Wild Hunt: Map of important locations M19
This Modern World Daily Kos
Po Box 35691 Canton Oh
라이키 유출
Officialmilarosee
Rqi.1Stop
Walmart Near South Lake Tahoe Ca
Www.craigslist.com Savannah Ga
Brazos Valley Busted Newspaper
Sand Dollar Restaurant Anna Maria Island
2021 MTV Video Music Awards: See the Complete List of Nominees - E! Online
Meridian Owners Forum
Is Holly Warlick Married To Susan Patton
Kuttymovies. Com
Sinfuldeed Leaked
The Creator Showtimes Near Baxter Avenue Theatres
Past Weather by Zip Code - Data Table
Landing Page Winn Dixie
Ucm Black Board
Gr86 Forums
Beth Moore 2023
Craigslist Neworleans
PA lawmakers push to restore Medicaid dental benefits for adults
Tal 3L Zeus Replacement Lid
Aliciabibs
Studentvue Columbia Heights
Wattengel Funeral Home Meadow Drive
Body Surface Area (BSA) Calculator
Bella Thorne Bikini Uncensored
Joey Gentile Lpsg
Colorado Parks And Wildlife Reissue List
California Craigslist Cars For Sale By Owner
Disassemble Malm Bed Frame
Foxxequeen
Craigslist/Nashville
Paperlessemployee/Dollartree
Victoria Vesce Playboy
City Of Irving Tx Jail In-Custody List
Tenichtop
Latest Posts
Article information

Author: Golda Nolan II

Last Updated:

Views: 6298

Rating: 4.8 / 5 (78 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Golda Nolan II

Birthday: 1998-05-14

Address: Suite 369 9754 Roberts Pines, West Benitaburgh, NM 69180-7958

Phone: +522993866487

Job: Sales Executive

Hobby: Worldbuilding, Shopping, Quilting, Cooking, Homebrewing, Leather crafting, Pet

Introduction: My name is Golda Nolan II, I am a thoughtful, clever, cute, jolly, brave, powerful, splendid person who loves writing and wants to share my knowledge and understanding with you.