Serving over plain HTTP
The simplest possible solution is HTTP in combination with an Android video player that can do HTTP streaming, such as VLC, MxPlayer, etc - just use any of the many available HTTP servers.
Here are some one liners.
$ python -m SimpleHTTPServer 8000
$ python -m http.server 8000
First, install the twisted package if not already present with
pip install -U twisted (
pip3 install -U twisted), then:
$ twistd -n web -p 8000 --path .
After you start the web server, open the browser on your Android device and type the IP and port of your Ubuntu box e.g. http://192.168.1.123:8000
You can use
ifconfig on Ubuntu to see the IP address.
A more extended list of HTTP oneliner servers: https://gist.github.com/willurd/5720255