Music are pretty custom, hard to find a public streaming website that really fit for you.
You have download music everyday. More and more storage you use, you might never out of space on you desktop, but how about your iphone, ipad, android device? or your working laptop?
How to sync your music to different device? Each time download new music will need sync to different device.
In 90%, you have wifi, not necessary have everything on your device.
Download from torrent, then put to different device, after that you already not interested any more…
I have Linux server skill!!!
If you have problem above, then you need it.
Basic Principle
Sync audio/video folder to your VPS or download by torrent.
VPS auto detecting file type.
VPS generate playlist for you.
You able to access from all your device by access your VPS over html.
cd /tmp
wget http://curl.haxx.se/download/curl-7.36.0.tar.gz
tar xvzf curl-7.36.0.tar.gz
cd curl-7.36.0
make && make install
cd /tmp
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar xvzf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure
make && make install
cd /tmp
wget http://download.transmissionbt.com/files/transmission-2.82.tar.xz
tar xvfJ transmission-2.82.tar.xz
cd transmission-2.82
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
./configure
make && make install
Setup http mount point
1
useradd nginx
my example nginx vhost conf ( since I have lot of japanese content, I set html charset to shift_jis )
1234567891011121314151617181920212223
server {
listen 80;
server_name hostname;
charset utf-8;
root /home/nginx/html;
location / {
index index.html index.htm;
autoindex on;
}
location /= {
alias /home/nginx/html;
index index.html index.htm;
autoindex on;
}
location ~* \.(html|htm|txt)$ {
index index.html index.htm;
charset Shift_JIS;
}
location ~* player$ {
index index.html index.htm;
default_type 'text/html';
}
}
Init transmission config
123
su - nginx
transmission-daemon
killall transmission-daemon
go get github.com/kiyor/playlist
go install github.com/kiyor/playlist
cp -r templates html/ #cp my repo's templates file to you html directory ( html/templates/*.tmpl )
cd html
git clone git@github.com:johndyer/mediaelement.git
git clone git@github.com:kiyor/mep-feature-playlist.git
Download or upload something to you html folder
12
su - nginx
transmission-daemon
go to hostname:9091, upload torrent or magnet link and download to your html/bt
after downloaded, try access your hostname/bt
run playlist -dir ‘your html dir’, it would generate a file call player
access your player in all your device
note
current only support mp3/wav as audio mp4 as video