Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

174
Vistas
Changing input url in MediaLive

I'm trying to update an Input MediaLive URL using boto3 in python.

The input is an URL_PULL type (HLS) and is attached to a channel, and I think it's the source of my issue.

account = { all credentials and stuff }
url = 'https://mynew/supercool/hls/playlist.m3u8'
client = boto3.client("medialive",
                      aws_access_key_id=account['access_key'],
                      aws_secret_access_key=account['key_secret'],
                      region_name=account['region_name'])

input_id = 1234567
client.update_input(InputId=input_id, Sources=[{'Url': url}])

The code is working fine, but I get this error, and I don't know how to handle it :

An error occurred (BadRequestException) when calling the UpdateInput operation: You cannot change the input class of an input while it's attached to a channel. Please detach the input from the channel in order to switch its class.

Question : Which workflow should I use to update an input that is already attached to a channel ?

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

AWS API expects 2 urls when updating an input, main and backup.

client.update_input(InputId=input_id, Sources=[{'Url': url},{'Url': url}])

over 4 years ago · Santiago Trujillo Denunciar

0

If the input class is STANDARD_INPUT you will need 2 URLs, but if you are using a SINGLE_INPUT class you only need 1 URL.

If you only need 1 URL you can create the inputs as SINGLE_INPUT but your channel will have to be single (SINGLE_PIPELINE) instead of STANDARD.

Also, single channels are cheaper than Standard ones!

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda