? Editing: Post:21.body Save Delete Cancel
Content changed Sign & Publish new content

klu9's ZeroBlog

Just a user, not a coder.
Interested in ZeroNet's potential for a web less vulnerable to:
° regulatory capture (e.g. copyright laws dictated by lobby groups)
° takedowns (e.g. DMCA, EUCD, Article 13, domain seizures)
° blocks (e.g. ISPs, GFW)
° net partiality (e.g. preferential treatment for privileged content providers)
° corporate acquisitions, changes, neglect or demise (e.g. GeoCities, del.icio.us, Flickr, Tumblr)
° individual change, neglect or demise (e.g. linkrot; webmaster losing interest, disappearing or dying)
° money-making shennanigans supposedly justified by the cost of providing a service (e.g. advertising, tracking, privacy violations)
° bloat (wait for a 10MB page to load just so you can read a 10KB article)
° connection problems (as 0net can cache sites)

klu9's media share
The Papers
ZeroMe

Follow in NewsfeedFollowing

TOC by date
TOC by tag

Latest comments:

Add new post

Title

21 hours ago · 2 min read ·
3 comments

tag:
Body
Read more

Experimenting with uploads: video

on Feb 27, 2019 · 4 min read
tag: 0net KopyKate upload video

So now I'm going to upload video to Zeronet and hopefully embed it in my blog.

Source (click this link if you can't see the video here): How.to.Disappear.Completely--Lilly.Ryan--Linux.Conf.Au.2019.mp4

Part 1 - Getting a video

I saw a video on YouTube I wanted, but also knew YouTube likes to block downloading of videos.
At first I tried a download manager I already have installed, uGet. But:

  • the download speed was capped at 30kbps
  • it was getting the video in 360p, even though higher resolutions were available.

I remembered a tool I'd heard of over the years, called youtube-dl. It's a command line tool, and I prefer GUI programs, but I thought I'd give it a try anyway.

  1. I got youtube-dl.exe (for Windows) from https://github.com/rg3/youtube-dl
  2. I watched this short video tutorial for a quick idea of how to use it.
  3. I downloaded the video by writing the following in the CMD window:
    youtube-dl.exe "https://www.youtube.com/watch?v=LOulCAz4S0M"
    That got me the video in 720p.
    (In Linux, you don't even need the .exeor the quotes around the URL, apparently.)

Part 2 - Uploading the video

  1. I moved the file to another folder and renamed it, so that the name was more informative and to eliminate spaces, which can complicate linking.
  2. I went to 0net's equivalent of YouTube, KopyKate, and clicked the Upload icon at top right of the page.
  3. I gave the video a title and description.
  4. I saw there was the option to upload a thumbnail. I took a screenshot and tried uploading. I got the following error message:

    Max image size: 25kb (Tip: use GIMP or online compression tools to reduce resolution/quality!)

  5. In an image editor, I made adjustments to the original screenshot (572kb png), cropped and compressed until it became a 24.8kb jpg. (I probably should have just resized the image, as it's going to be a thumbnail.)
  6. I clicked "Publish".

    Content published to 5 peers

  7. I turned off BitTorrent, so that all my (rather limited) upload bandwidth was dedicated to Zeronet and seeding the video.

Part 3 - Posting the video

The video was already on KopyKate, visible in the "Airing Now" section (which displays the latest uploads). But I wanted to post it elsewhere.

  1. I made a post about the video on ZeroMe, giving the URL for the KopyKate page (as videos cannot be embedded in ZeroMe posts). Here's the markdown I put in my ZeroMe post:
    [How to disappear completely](http://127.0.0.1:43110/big.kopykate.bit/?Video=1551122501_131Seivv6aH8vnohPmYPcPwPfZ1a5ubMMs)
    This ZeroMe post quickly informed people about the video, drawing viewers and thus peers who can seed the video to other people, so that I (with my crappy bandwidth) wouldn't be the only source for too long. After 2 days, it's already got 10 peers.
  2. To embed it here on my blog, I created a new post and, after trying something else, put this html:
    <video src="/big.kopykate.bit/data/users/131Seivv6aH8vnohPmYPcPwPfZ1a5ubMMs/1551122501-How.to.Disappear.Completely--Lilly.Ryan--Linux.Conf.Au.2019.mp4" controls="" width="600" height="400"></video>
    And here it is without the URL for my video (to ease copying and pasting). Put the URL for your video between the quotes after video src=.
    <video src="" controls="" width="600" height="400"></video>

I originally tried the following markdown which did not work:
![How to Disappear Completely - a talk about facial recognition and how to beat it](http://127.0.0.1:43110/big.kopykate.bit/data/users/131Seivv6aH8vnohPmYPcPwPfZ1a5ubMMs/1551122501-How.to.Disappear.Completely--Lilly.Ryan--Linux.Conf.Au.2019.mp4)

In a ZeroTalk topic about this @kai0: recommended using the HTML code, and that worked!

@gluek: & @toyata: brought up an important point. Because of the way that Zeronet works, if a visitor to my blog has never visited KopyKate before, a KopyKate-hosted video will not load for them here on my blog. So it's probably a good idea to always provide a direct link for any embedded video hosted on another zite.

Originally, I used all the code @kai0: gave, but @SSDifnskdjfnsdjk: pointed out that the video auto-played when loading my blog (I hate that, but didn't realize because I have an extension to prevent that). So I cut out autoplay="".

@gluek: mentioned some techniques to host a video on my own zite (not KopyKate) involving optional files which @ssdifnskdjfnsdjk: goes into more here: ZeroTalk - How to create static site with big streamable videos

But that's an experiment for another day. Right now, I'm just glad I can embed a KopyKate video in my blog post.

Thanks to everyone who gave feedback and advice, here, on ZeroTalk and ZeroMe.

1 Comment:

user_name1 day ago
Reply
Body
gluekon Feb 28, 2019
Reply

Video not embedded, just post a link.

<< >>
This page is a snapshot of ZeroNet. Start your own ZeroNet for complete experience. Learn More