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

Termux

Termux:x11

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 &amp;&amp; pkg install -y x11-repo &amp;&amp; pkg install -y termux-x11-nightly mpv-x termux-services nodejs &amp;&amp; npm install -g xdccjs &amp;&amp; export SVDIR=/data/data/com.termux/files/usr/var/service &amp;&amp; echo -e 'nexport DISPLAY=:0' >> $PREFIX/etc/profile &amp;&amp; echo -e '#!/usr/bin/bashnsv-enable termux-x11nam start --user 0 -n com.termux.x11/.MainActivitynxdccJS $1 | mpv --vo=x11 - &amp;&amp; sv-disable termux-x11; am start --user 0 -n com.termux/.HomeActivity > /dev/null 2>&amp;1' > ~/xdcc.sh &amp;&amp; chmod +x ~/xdcc.sh &amp;&amp; mkdir -p $SVDIR/termux-x11/log &amp;&amp; ln -sf $PREFIX/share/termux-services/svlogger $SVDIR/termux-x11/log/run &amp;&amp; echo -e '#!/usr/bin/shnexec $PATH/termux-x11 :0' > $SVDIR/termux-x11/run &amp;&amp; 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.

  1. Install nodejs and run npm install -g xdccjs
  2. Install mpv cli

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.

  • Wszystkie
  • Subskrybowane
  • Moderowane
  • Ulubione
  • Blogi
  • Technologia
  • rowery
  • Pozytywnie
  • nauka
  • FromSilesiaToPolesia
  • fediversum
  • motoryzacja
  • piracy@lemmy.dbzer0.com
  • niusy
  • sport
  • slask
  • muzyka
  • informasi
  • Gaming
  • esport
  • Psychologia
  • Spoleczenstwo
  • lieratura
  • tech
  • giereczkowo
  • test1
  • ERP
  • krakow
  • antywykop
  • Cyfryzacja
  • zebynieucieklo
  • kino
  • warnersteve
  • Wszystkie magazyny