Skip to content

Casting to Chromecast Device

Installing and using mkchromecast.

Install the Package

Execute the command as root.

apt install mkchromecast

Playing a Local Movie

Playing a local movie on a named Chromecast device from a certain position.

mkchromecast --control --name <device-name> --video --input-file <movie-file> --seek <time>

Playing a Live Stream

Playing a stream on a named device allowing control over sound.

mkchromecast --control --name <device-name> --source-url <url>

Examples

Local Video

Play from a specified position in time.

mkchromecast \
    --video \
    --name LG\ Livingroom \
    --control \
    --seek 00:23:00 \
    --input-file '/home/arjan/mnt/avmedia/DOWNLOADED/The.Flash.2014.S04E21.Harry.and.the.Harrisons.720p.WEBRip.2CH.x265.HEVC-PSA.mkv'

Radio Live Stream

Playing live stream from BNR radio.

mkchromecast \
    --control \
    --name LG\ Livingroom \
    --source-url http://icecast-bnr.cdp.triple-it.nl/bnr_mp3_96_06