예제 #1
0
parser.add_argument('--reboot',
                    action='store_true',
                    help='''
    Reboot the Google Cast device.
    ''')

parser.add_argument('--resolution',
                    type=str,
                    default=None,
                    help='''
    Set the resolution of the streamed video. The following resolutions are
    supported:

    ''' + "\n".join("    - {0} ({2}).".format(k, *v)
                    for k, v in resolutions.items()))

parser.add_argument('-s',
                    '--select-device',
                    action='store_true',
                    help='''
    If you have more than one Google Cast device use this option.
    ''')

parser.add_argument('--sample-rate',
                    type=int,
                    default='44100',
                    help='''
    Set the sample rate. The default sample rate obtained from avfoundation
    audio device input in ffmpeg using soundflower for macOS is 44100Hz (in
    Linux can be 44100Hz or 48000Hz). You can change this in the Audio MIDI
예제 #2
0
    action="store_true",
    help="""
    Reboot the Google Cast device.
    """,
)

parser.add_argument(
    "--resolution",
    type=str,
    default=None,
    help="""
    Set the resolution of the streamed video. The following resolutions are
    supported:

    """
    + "\n".join("    - {0} ({2}).".format(k, *v) for k, v in resolutions.items()),
)

parser.add_argument(
    "-s",
    "--select-device",
    action="store_true",
    help="""
    If you have more than one Google Cast device use this option.
    """,
)

parser.add_argument(
    "--sonos-device",
    type=str,
    default=None,
예제 #3
0
    action='store_true',
    help='''
    Reboot the Google Cast device.
    '''
    )

parser.add_argument(
    '--resolution',
    type=str,
    default=None,
    help='''
    Set the resolution of the streamed video. The following resolutions are
    supported:

    ''' +
    "\n".join("    - {0} ({2}).".format(k, *v) for k, v in resolutions.items())
    )

parser.add_argument(
    '-s',
    '--select-device',
    action='store_true',
    help='''
    If you have more than one Google Cast device use this option.
    '''
    )

parser.add_argument(
    '--sample-rate',
    type=int,
    default='44100',