Streaming HD videos with XDCC angielski
So this post is to explain how to stream from XDCC directly, no VPN or torrenting required. Downloading is also an option since this uses xdccJS. This method works on Android, Linux, and MacOS. It will probably work on Windows idk haven’t tried it. For extra help running commands refer to xdccJS --help
.
Android
This has basically the same setup as the rest, but you need to download a couple of extra things to make it workable, mainly an x11 server/app (to display stuff).
Required apps
Command to Install
Edit: major update to the one liner which creates the termux-service, and allows the script to enable/disable the server.
<span style="color:#323232;">termux-setup-storage; pkg upgrade -y && pkg install -y x11-repo && pkg install -y termux-x11-nightly mpv-x termux-services nodejs && npm install -g xdccjs && export SVDIR=/data/data/com.termux/files/usr/var/service && echo -e 'nexport DISPLAY=:0' >> $PREFIX/etc/profile && echo -e '#!/usr/bin/bashnsv-enable termux-x11nam start --user 0 -n com.termux.x11/.MainActivitynxdccJS $1 | mpv --vo=x11 - && sv-disable termux-x11; am start --user 0 -n com.termux/.HomeActivity > /dev/null 2>&1' > ~/xdcc.sh && chmod +x ~/xdcc.sh && mkdir -p $SVDIR/termux-x11/log && ln -sf $PREFIX/share/termux-services/svlogger $SVDIR/termux-x11/log/run && echo -e '#!/usr/bin/shnexec $PATH/termux-x11 :0' > $SVDIR/termux-x11/run && chmod +x $SVDIR/termux-x11/run
</span>
Hit y if it asks, it’ll update to latest packages. This will create a script that you can use to easily start the x11 server/app and stream
Usage
To use it, pass the same arguments you would to xdccJS eg. ./xdcc.sh “-h server -b bot -d pack”
note: this is passed as a single argument, so there is no need for quotes inside the args. Just make sure to include the double quotes around the whole string like example.
I found termux-services works well for enabling/disabling the termux server. I updated the command above to take advantage of sv
Other Systems
For Mac: Download Brew to install these packages on command line.
Usage
To watch a video simply use a command like xdccJS -h server -b “bot” -d pack | mpv -
I won’t get into how to find packs/bots/servers as I am lazy, but thats the gist. If anyone has any issues, email the devs, I just figured this out meself.
Dodaj komentarz