[FFmpeg-devel] [PATCH 0/3] Authentication callbacks

Michael Niedermayer michaelni at gmx.at
Thu Jun 4 14:33:13 CEST 2015

On Wed, Apr 08, 2015 at 01:04:55AM +0200, Lukasz Marek wrote:
> One of the most annoying things with ffmpeg is that password must be provided as a program param.
> It is visible while typing and on process list. (I'm talking about ffplay/ffmpeg/ffprobe here.)
> This patchset provides API that protocols may use to ask user for password interactively.
> I added implementation in ffplay, but I see it potentially useful for any user application.

> The question is: is this really required, application may just ask for password when connection fails.
> Assuming application knows it is matter of credentials (not wrong hostname, file permissions etc),
> it may be ineffective. It is almost sure connection has to be established at each try.
> API also allows to distinguish password for reqular user/pass authentication and password 
> for private key (not included in this patchset, but libssh may benefit from this probably).

i dont know,
you know these protocols better than i do so you better
know if its needed or if a simpler system like failing with an error
code and reconnecting with un/pw set through AVOptions but not
vissible on  the command line could be used.
one way could be to read the options value from a file/pipe and only
specify the file/pipe name on the command line
(but wait with implementing that to give others time to comment first)

There are several potential places this could be implemented in
The code needing a un/pw could perform the fileopen and extract the

the common command line handling for ffplay/ffmpeg could read from
a file and set the AVOption accordingly, other applications would
then need a similar change

what do people prefer, in case this path is choosen ?


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When the tyrant has disposed of foreign enemies by conquest or treaty, and
there is nothing more to fear from them, then he is always stirring up
some war or other, in order that the people may require a leader. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150604/13bbca7b/attachment.asc>

More information about the ffmpeg-devel mailing list