I just noticed that specifying the Chromecast name with -n only works when the TV is powered on, and fails to find the Chromecast when the TV is powered off. However, dropping the -n arg causes the Chromecast to turn the TV on with HDMI-CEC and then works as expected.
$mkchromecast --debug --video -i video.MOV --resolution 720p -n 'CHROMECAST NAME'
Parsed args in process 489575
ALSA device name: None
Google Cast name: CHROMECAST NAME
backend: ffmpeg
Mkchromecast v0.3.9
Creating Pulseaudio Sink...
Open Pavucontrol and Select the Mkchromecast Sink.
Starting Video Cast Process...
:::ffmpeg::: pipeline_builder command: ['ffmpeg', '-re', '-i', 'video.MOV', '-map_chapters', '-1', '-vcodec', 'libx264', '-preset', 'veryfast', '-tune', 'zerolatency', '-maxrate', '10000k', '-bufsize', '20000k', '-pix_fmt', 'yuv420p', '-g', '60', '-f', 'mp4', '-movflags', 'frag_keyframe+empty_moov', '-vf', 'scale=1280:-1', 'pipe:1']
* Serving Flask app 'mkchromecast'
* Debug mode: off
PID of main process: 489575
PID of streaming process: 489582
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on http://192.168.1.185:5000
Press CTRL+C to quit
self.cclist []
elif len(self.cclist) == 0 and self.mkcc.tray == False:
No devices found!
Killed
(pyenv)
I just noticed that specifying the Chromecast name with
-n
only works when the TV is powered on, and fails to find the Chromecast when the TV is powered off. However, dropping the-n
arg causes the Chromecast to turn the TV on with HDMI-CEC and then works as expected.