MediaArea / MediaInfo

Convenient unified display of the most relevant technical and tag data for video and audio files.
https://MediaArea.net/MediaInfo
BSD 2-Clause "Simplified" License
1.26k stars 149 forks source link

How to pass CURL options to CLI? #866

Open abhinavsohani opened 2 weeks ago

abhinavsohani commented 2 weeks ago

I am using the MediaInfo CLI on AWS Lambda, and while it works as expected for most cases, it fails for certain URLs with the error message "Maximum (3) redirects followed". To resolve this issue, I need to pass the --max-redirs <num> option to the underlying CURL request.

I have attempted to use the --file_curl option like this: --file_curl=--max-redirs 50, but it did not work as expected.

It would be great if there was a way to pass CURL options directly to the MediaInfo CLI, allowing for more flexibility and control over the HTTP requests made by the tool.

JeromeMartinez commented 2 weeks ago

we can not map automatically curl command line options to libcurl API because the curl option are part of curl command line, so we need to manually map them one per one :( (or find a way to get a list from the lib). A single option is not difficult to add, accepting all of them longer.


Accepted.

Warning: non-sponsored feature request are set to low priority, we don't know when we have time to handle it. If you desire to accelerate the development, don't hesitate to contact us for a quotation.