[FFmpeg-devel] 答复: 答复: [PATCH] fftools/ffmpeg_ffplay_ffprobe_cmdutils: add -mask_url to replace the protocol address in the command with the asterisk (*)
Nicolas George
george at nsup.org
Sat Dec 24 10:59:56 EET 2022
Wujian(Chin) (12022-12-24):
> This code simplicity does not affect the readability and
> maintainability of the program
You are not the one who maintain them, that is not your judgement.
> The mask effect is like this:ffmpeg -mask_url -i rtsp://tyyy.com --> ffmpeg -mask_url -i ***************
I know, it was obvious from the start.
> > this way you miss credentials passed through options.
> I still don't understand. Can you go into more detail?
Look up cryptokey in the documentation for example.
> >> >sizeof(*argv2)
> Sorry, I didn't get it.
This is elementary C and a staple of FFmpeg's coding style.
> I understand that mask_url needs to be placed first,
And that is an unacceptable misfeature.
> because the FFmpeg process of the ps -ef command is viewed as argv,
That is nonsense.
> Therefore, you need to copy argv to argv_copy immediately, mask the URL in the argv,
> and then argv_copy is a command without mask_url for the following programs.
The few milliseconds of the normal options parsing will not make a
difference.
> I don't understand the difference between the normal option and the mask_url in use?
Your version is a special case that needs to be maintained. That is only
acceptable with a very good reason, and you have not provided one.
> Looking forward to your reply, thank you.
Let me be clear: this here is a review of your code, not a tutorial on
becoming a better developer, and even less "what an excellent idea, let
us do the work for you".
--
Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20221224/301cd96e/attachment.sig>
More information about the ffmpeg-devel
mailing list