An example of recording TV with MPV on Linux.

This is a sample command, I used this to record TV with MPV from a stream. This is quite problematic, but I managed to get this working on the example stream. ┌──[[email protected]]─[~] └──╼ ╼ $ mpv https://c.mjh.nz/101002210221/ –stream-record=tv1.ts –demuxer-lavf-probe-info=yes [ffmpeg] hls demuxer: Can’t support the subtitle(uri: hdntl=exp=1607128378~acl=%2f*~data=hdntl~hmac=a731c5d7a64c0589edb0290b2e2f44e9c48f2dbb1cf2f564d3d0914ee3341922/index_7_0.m3u8) Video –vid=1 ‘bitrate…

Read More

How to have a blinking $ sign in your Linux prompt. This is very interesting indeed.

This is my current Linux shell prompt. This will show the current Github branch if you are in the folder containing a Git project. But I have added something cool. git_branch() { git branch 2> /dev/null | sed -e ‘/^[^*]/d’ -e ‘s/* \(.*\)/(\1)/’ }   PS1=’┌──[\[\033[38;5;160m\]\u\[$(tput sgr0)\]@\[$(tput sgr0)\]\[\033[38;5;75m\]\H\[$(tput sgr0)\]]─[\w]\n└──╼ $(git_branch)…

Read More

Find information in a swapfile image with Linux.

The strings utility for Linux is very useful for finding all text strings in a binary file. I am using a swapfile image as an example. It can easily be searched for various strings that can reveal various information. Below is an example, I am looking for instances of the…

Read More

A much better way to save audio from Youtube with youtube-dl.

Saving music from Youtube is fun. I am going to show how to save in good quality using youtube-dl by itself. This command will do it in one go. youtube-dl -f 140 https://www.youtube.com/watch?v=eb-2ljQDYFU –embed-thumbnail –extract-audio –audio-format mp3youtube-dl -f 140 https://www.youtube.com/watch?v=eb-2ljQDYFU –embed-thumbnail –extract-audio –audio-format mp3 This is the command in action….

Read More

A very nice network emulator for PC.

Common Open Research Emulator is a very good networking emulator for Linux machines. This allows a user to create a network layout with IP addresses and see it working. This is very interesting software. Download the source code from Github. ┌─[jason@jason-desktop]─[~/Documents/core] └──╼ $git clone https://github.com/coreemu/core.git┌─[jason@jason-desktop]─[~/Documents/core] └──╼ $git clone https://github.com/coreemu/core.git Then…

Read More

How to generate a very nice colored desktop background with the command line.

The Linux command line is very useful and it can even generate you a nice wallpaper image using just the shell and ImageMagick. The example below will generate a 3440×1440 pixels wallpaper image using just the random data from /dev/urandom. ┌─[jason@jason-desktop]─[~/Documents] └──╼ $mx=320;my=256;head -c "$((3*mx*my))" /dev/urandom | convert -depth 8…

Read More

How to merge a bunch of music files together with sox.

I had a folder full of music files from a Stalker mod. But I needed to merge them together into stereo files as they were separate left and right files. Ending in _l.ogg and _r.ogg. But I managed to get this working wth help from Stackoverflow. for f in *_l.ogg;…

Read More

Youtube-dl automatic update not working.

The updates for youtube-dl do not work anymore on Ubuntu, but it can be updated manually. Download the script here: https://youtube-dl.org/downloads/latest/youtube-dl. Then copy the script over the top of the existing one in /usr/bin and then make sure it has the executable flags 755. This is very easy. Download it…

Read More

View the Earth on your Windows desktop with Xplanet.

Xplanet is a very good little program that allows a user to view the Earth from space and see what it looks like at a certain time. You can set the latitude and longitude as well as the timewarp. It is also possible to create maps with this application. This…

Read More

Some very useful Linux tips and tricks.

To read a file from the Internet using wget and print it in the terminal, use this command. ┌─[jason@jason-desktop]─[~/Documents] └──╼ $wget -qO – https://i.mjh.nz/au/Brisbane/raw-tv.m3u8┌─[jason@jason-desktop]─[~/Documents] └──╼ $wget -qO – https://i.mjh.nz/au/Brisbane/raw-tv.m3u8 View an image from the Internet with wget and the ImageMagik display utility. ┌─[jason@jason-desktop]─[~/Documents] └──╼ $wget -qO – https://i.4cdn.org/g/1603231784644.png | display┌─[jason@jason-desktop]─[~/Documents]…

Read More

Create a tiled image with ImageMagick on Linux.

Creating a tiled image on Linux with the command line is very easy to do. This command will take the pyramid.bmp file and tile it as a 3440×1440 widescreen image. ┌─[jason@jason-desktop]─[~/Pictures/Windows/bitmaps] └──╼ $convert -size 3440×1440 tile:pyramid.bmp Tiles.jpg┌─[jason@jason-desktop]─[~/Pictures/Windows/bitmaps] └──╼ $convert -size 3440×1440 tile:pyramid.bmp Tiles.jpg This example will create a massive 7680×2160…

Read More

How to download a Youtube video as an MP3 with Linux.

Saving a Youtube video as audio and not video is very easy. This command below will save Youtube audio as an MP3 file. You need youtube-dl as well. Then select a Youtube video and use this one-liner to download it as an MP3 audio file. jason@jason-Lenovo-H50-55:~/Videos$ youtube-dl -f 140 https://www.youtube.com/watch?v=neEXAoYfcRo…

Read More

Ubuntu is very good for working with multimedia files.

The Ubuntu Linux distribution is very good for working with multimedia files. I insert a flash drive with an AVCHD file on it and it is automatically opened as a folder. This makes it very easy to extract the video files inside. This is even more convenient than on Mac…

Read More

How to download a Youtube video thumbnail on Linux.

Downloading a thumbnail of a Youtube video on Linux is very easy. This can be done using the youtube-dl script. Use this youtube-dl command to list all thumbnails for this video. ┌─[jason@jason-desktop]─[~/Pictures] └──╼ $youtube-dl https://www.youtube.com/watch?v=0ttKUEI3rtM –list-thumbnails [youtube] 0ttKUEI3rtM: Downloading webpage [info] Thumbnails for 0ttKUEI3rtM: ID width height URL 0 168…

Read More

How to install a very useful virus scanner on Ubuntu and scan for malware.

The ClamAV virus scanner is very useful for scanning files for malicious code. This is good if you download files from the Internet that are going to be used on a Windows computer. This is very easy to install. ┌─[jason@jason-desktop]─[~/Downloads/Dark Path/S.T.A.L.K.E.R. – Dark Path] └──╼ $sudo apt install clamav┌─[jason@jason-desktop]─[~/Downloads/Dark Path/S.T.A.L.K.E.R….

Read More