Skip to content

simple decentralized video on demand streaming via m3u playlists in Freenet

License

Notifications You must be signed in to change notification settings

hyphanet/generate-media-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generate Media Site

A generator for simple streaming media sites, optimized for insertion into Freenet.

Adjust site/template.html to make it match your style.

See site/gms.scm for additional information.

Usage

Run on debian (example):

sudo apt install mercurial ffmpeg mplayer grep sed wget guile-3.0
hg clone https://hg.sr.ht/~arnebab/guile-media-site
(cd guile-media-site/media && wget https://cdn.media.ccc.de/events/divoc/bb3/webm-sd/divoc-bb3-48946-deu-eng-Briefgeheimnis_wahren_-_Chatkontrolle_stoppen_webm-sd.webm)
(cd guile-media-site/site && chmod +x ./gms.scm && ./gms.scm --recycle-removed)

Then use jSite or freesitemgr from pyFreenet to upload the site/ folder into Freenet.

Insert on debian (example):

sudo apt install git python3 autoconf automake openjdk-17-jdk wget grep sed gnupg curl firefox-esr
pip3 install --user pyFreenet3 || pip install --user pyFreenet3
git clone https://github.com/freenet/browser
(cd browser && ./bootstrap.sh --prefix=$HOME/.local && make install)
# install Freenet if needed
~/.local/bin/freenetbrowser --install
# add guile-media-site/site
~/.local/bin/freesitemgr add
# get your site public key (the website address to give others)
~/.local/bin/freesitemgr list YOUR_SITENAME

Add all missing info-files (text shown below the video): cd media
&& for i in $(ls | grep -v .info$); do if ! test -e $i.info; then echo $i > $i.info && nano $i.info; fi done

Develop

Make sure you set up a username:

hg config -el # set [ui]\nusername = 'someone <somewhere@else>'

Release your changes for use in Freenet:

hg archive site/gms.zip
hg bundle --all site/gms.bundle
~/.local/bin/freesitemgr update YOUR_SITENAME

About

simple decentralized video on demand streaming via m3u playlists in Freenet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published