I need to get the renamed filename, with the "-a" flag, to insert in databse mysql. Or rename the file, but without the "-a", rclone don't want to download.
Haven't used this myself, but took a quick look in the code: It seems easy enough to adjust it to output the actual name when using -a/--auto-filename option. You would then probably want it on stdout - and just the name as a plain string (not date, size or anything like in ls output other than plain lsf)? Should probably be optional, so only if a new option (e.g. --print-filename) is specified. Unless someone else has a trick to achieve this, you could perhaps register an issue for it?
without the "-a", rclone don't want to download.
Could you add some more details? Error messages? Any hints from verbose output (-vv)?