I found a workaround using a tinyurl generator works, try this: first install a url shortener ( pip install python-shorturl ) then you can give mediainfo the shortened url and it fixes it for me: mediainfo $(python -m shorturlpy.shorturlpy -u $(aws s3 presign s3://mybucket/myfile.mxf))