How to use MediaInfo with Amazon S3?

According to MediaInfo ChangeLog , Amazon S3 support was added in v0.7.76 and even fixed in v0.7.77 (the latter).

However, I cannot find documentation on how to implement it. This is not in the CLI help menu and the SourceForge project pages. I was hoping someone here might have some insight as the SourceForge forum is closed.

How do I create a MediaInfo team to use Amazon S3 with a passkey and secret key? I am using the CLI.

The closest I could find is a Java code example: http://fossies.org/linux/MediaInfo_CLI/MediaInfoLib/Source/Example/HowToUse_Dll.JNA.java

It looks like they are creating a custom HTTP request to S3 and transmitting the response to MediaInfo. I'm not sure. I do not know Java; I only know Bash, Ruby, PHP.

Has anyone successfully obtained MediaInfo working with S3; something like that?

mediainfo https://AWSAccessKeyId:AWSSecretAccessKey@s3.amazonaws.com/bucketname/filename
+4
source share
3 answers

Java Example - An example of loading from Java and sending data to MediaInfo from memory. MediaInfo now has native S3 support. So just enter this URL.

The only problem is that you must have libcurl and MediaInfo compiled with libcurl support. This is not yet available on all platforms (for example, on Windows you must put libcurl.dll from the libcurl website in the same folder as mediainfo).

( libcurl, ), ETA.

+2

Mediainfo libcurl Linux, : ( centos)

yum groupinstall 'Development Tools'
yum install libcurl-devel
yum install wget
wget http://mediaarea.net/download/binary/mediainfo/17.12/MediaInfo_CLI_17.12_GNU_FromSource.tar.xz
tar xvf MediaInfo_CLI_17.12_GNU_FromSource.tar.xz
cd MediaInfo_CLI_GNU_FromSource/
./CLI_Compile.sh --with-libcurl
cd MediaInfo/Project/GNU/CLI
./mediainfo --version

URL- Amazon S3.

mediainfo --Output=XML https://AWSAccessKeyId:AWSSecretAccessKey@s3.amazonaws.com/bucketname/filename

AWS ( ), . URL-, AWS- .

aws s3 presign 's3://bucketname/testing/mini & bar™©.mp4' 
mediainfo 'presignd url'
+1

I have the same problem. Try it, it will work

https://{yourAwsAccessKey}:{yourAwswsSecretKey}@{yourBucketName}.s3.awsamazon.com/{file_path_in_bucket}

0
source

Source: https://habr.com/ru/post/1609384/


All Articles