Opened 3 months ago

Last modified 3 months ago

#11154 new defect

ffmpeg push rtsp stream error, auth token by keycloak

Reported by: m13934221960 Owned by:
Priority: wish Component: ffmpeg
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

ffmpeg -re -stream_loop -1 -i a.mp4 -c copy -f rtsp -rtsp_transport tcp rtsp://124.128.14.53:8554/stream?jwt=eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJ5cE5OUTRVTFpUQUthQ0JGOWhsM0plX2lYaWZoZWt4NVNiQW10bzJwRVBrIn0.eyJleHAiOjE3MjQ1MjYzMTQsImlhdCI6MTcyNDQ5MDMxNCwianRpIjoiMzhjZDQ3MGEtZGQ3MC00ZWJjLThlMGEtZmYxMmE5ZDdiYjRmIiwiaXNzIjoiaHR0cDovLzEyNC4xMjguMTQuNTM6MjMwMi9yZWFsbXMvbWVkaWFtdHgiLCJhdWQiOiJhY2NvdW50Iiwic3ViIjoiODFhOTdkY2QtYWNlNC00ZjExLWFmYTctOWMyYjc0OWQzMTA5IiwidHlwIjoiQmVhcmVyIiwiYXpwIjoibWVkaWFtdHgiLCJzaWQiOiI3MzRlNzRjOC02Y2FlLTQ0MTYtOWNlYS05MzMwYmI2MWU2OTIiLCJhY3IiOiIxIiwiYWxsb3dlZC1vcmlnaW5zIjpbIi8qIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJvZmZsaW5lX2FjY2VzcyIsInVtYV9hdXRob3JpemF0aW9uIiwiZGVmYXVsdC1yb2xlcy1tZWRpYW10eCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoicHJvZmlsZSBlbWFpbCIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwibWVkaWFtdHhfcGVybWlzc2lvbnMiOlt7ImFjdGlvbiI6InB1Ymxpc2giLCJwYXRocyI6IiJ9LHsiYWN0aW9uIjoicGxheWJhY2siLCJwYXRocyI6IiJ9LHsiYWN0aW9uIjoicmVhZCIsInBhdGhzIjoiIn1dLCJuYW1lIjoibGppYW5naHVhIGxpIiwicHJlZmVycmVkX3VzZXJuYW1lIjoidGVzdHVzZXIiLCJnaXZlbl9uYW1lIjoibGppYW5naHVhIiwiZmFtaWx5X25hbWUiOiJsaSIsImVtYWlsIjoibTEzOTM0MjIxOTYwQGdtYWlsLmNvbSJ9.BOyULskf1tssvippr1ET7pZv26mtcr2PYO1Suh4NiR_YDjVjowSdVD4cxh-wHJ9wnvPludBRmYi4pGLeGs1DDiRFS-ioYobYKTuHmozCEfw1AMfD6A2yYF5IgbPjdm34zL-VYo8SdIX2tfn867jlW0DMs70xMZ2fNDoGR3KOrs7APPjsunkTOtcZVZeWIYwXH_6cmKzQDkIAVi6PZ4CHBbM6_S1nxHuFY8NHx6oiA4_QWyWNUJSg5ybd5BW8t2lGedZdVemVAHILFWEc7rS-AVIGAMQcWjofOWThoGazW2R3oDAx1pecGYEQoO4BfGW-WMODDOMcNWCmeNOlz38edw

error: method ANNOUNCE failed: 401 Unauthorized
Could not write header for output file #0 (incorrect codec parameters ?): Server returned 401 Unauthorized (authorization failed)

but in vlc, use same rtsp url and jwt is ok!

Change History (1)

comment:1 by m13934221960, 3 months ago

I think access token is too long. but i can't change auth server keycloak. how can i do

Version 0, edited 3 months ago by m13934221960 (next)
Note: See TracTickets for help on using tickets.