miracle sinkctl - AtesComp/miraclecast Wiki

miracle-sinkctl

Is a controller connected to miracle-wifid which selects interface to use and manage RSTP communication, program to play audio/video screening and UIBC (input on source from sink) interaction.

Options:

$ miracle-sinkctl --help
miracle-sinkctl [OPTIONS...] ...

Control a dedicated local sink via MiracleCast.
  -h --help                      Show this help
     --help-commands             Show avaliable commands
     --version                   Show package version
     --log-level <lvl>           Maximum level for log messages
     --log-journal-level <lvl>   Maximum level for journal log messages
     --gst-debug [cat:]lvl[,...] List of categories an level of debug
     --audio <0/1>               Enable audio support (default 1)
     --scale WxH                 Scale to resolution
  -p --port <port>                  Port for rtsp (default 1991)
     --uibc                         Enables UIBC
  -e --external-player           Configure player to use
     --res <n,n,n>               Supported resolutions masks (CEA, VESA, HH)
                                    default CEA  0000001F
                                    default VESA 00000003
                                    default HH   00000000
     --help-res                  Shows avaliable values for res

Detail of resolutions avaliable

You need to sum them in hex, so to support only 5 first resolutions CEA

01+02+08+10=1F

e.g:

miracle-sinkctl --res 1F,00,00
$ miracle-sinkctl --help-res
CEA resolutions:
	 0 00000001  640x [email protected]
	 1 00000002  720x [email protected]
	 2 00000004  720x [email protected]
	 3 00000008  720x [email protected]
	 4 00000010  720x [email protected]
	 5 00000020 1280x [email protected]
	 6 00000040 1280x [email protected]
	 7 00000080 [email protected]
	 8 00000100 [email protected]
	 9 00000200 [email protected]
	10 00000400 1280x [email protected]
	11 00000800 1280x [email protected]
	12 00001000 [email protected]
	13 00002000 [email protected]
	14 00004000 [email protected]
	15 00008000 1280x [email protected]
	16 00010000 [email protected]
VESA resolutions:
	 0 00000001  800x [email protected]
	 1 00000002  800x [email protected]
	 2 00000004 1024x [email protected]
	 3 00000008 1024x [email protected]
	 4 00000010 1152x [email protected]
	 5 00000020 1152x [email protected]
	 6 00000040 1280x [email protected]
	 7 00000080 1280x [email protected]
	 8 00000100 1280x [email protected]
	 9 00000200 1280x [email protected]
	10 00000400 1360x [email protected]
	11 00000800 1360x [email protected]
	12 00001000 1366x [email protected]
	13 00002000 1366x [email protected]
	14 00004000 [email protected]
	15 00008000 [email protected]
	16 00010000 [email protected]
	17 00020000 [email protected]
	18 00040000 1440x [email protected]
	19 00080000 1440x [email protected]
	20 00100000 1600x [email protected]
	21 00200000 1600x [email protected]
	22 00400000 [email protected]
	23 00800000 [email protected]
	24 01000000 [email protected]
	25 02000000 [email protected]
	26 04000000 [email protected]
	27 08000000 [email protected]
	28 10000000 [email protected]
HH resolutions:
	 0 00000001  800x [email protected]
	 1 00000002  800x [email protected]
	 2 00000004  854x [email protected]
	 3 00000008  854x [email protected]
	 4 00000010  864x [email protected]
	 5 00000020  864x [email protected]
	 6 00000040  640x [email protected]
	 7 00000080  640x [email protected]
	 8 00000100  960x [email protected]
	 9 00000200  960x [email protected]
	10 00000400  848x [email protected]
	11 00000800  848x [email protected]