Media files in Gaia

@jude
Quick question, can we store media files like music/ video data in GAIA.
Will it be encrypted ?
If so how the encryption is done and are there any specific configuration that needs to be done for this?

Please let us know.

You can store media and music files. Encryption is no different than other file types. putFile is configured to encrypt files by default unless you set the encrypt option to `false. You should be aware that there is a file size limit on the Blockstack PBC provided gaia hub that will likely make it impractical to store large video files.

Thanks @larry May I know the size limit.

I referred this post: Any data storage limit for current default Blockstack Gaia hub?

The size limit is 5 MB.

Any chance that this can be increased or in future road map.

The size limit is actually 25MB. But, this is specific to the public Gaia hub that Blockstack PBC runs. If you want to remove this limit, you’ll need to run your own hub (instructions here).

You can also separate the files into blobs of 5-25mb and then put them back together on the client side. Might even help with streaming/buffering things, who knows.

1 Like

This is exactly how common web video streaming formats like HTTP Live Streaming and Dash - they device video up into many small files and devices download each file as it is needed.

1 Like

@jude Why can I upload over 25Mb files when I use xor drive(https://xordrive.io/) ?

Thanks @larry & @MichaelFedora and yes I got the funda with video blobs.
@jude The link is not reachable.

They split the files up into smaller chunks before storing.

Yes, we split the files into chunks before storing.

Hello,

I have set up my own Gaia hub and I am trying to upload mp3 and mp4 files, but its not working for me. While I uploaded mp3 and mp4 files in blockstack hub, it uploaded successfully.

@larry @jude
Hello, Hope you are doing Excellent!!!
I have set up my own gaia hub, and I am trying to upload mp3 and mp4 videos in my hub then I am getting this error:
Error: Error when uploading to Gaia hub
at Object. (/home/sol54/Desktop/gaiapdf/cli-blockstack/node_modules/blockstack/lib/storage/hub.js:48:19)
at Generator.next ()
at fulfilled (/home/sol54/Desktop/gaiapdf/cli-blockstack/node_modules/blockstack/lib/storage/hub.js:4:58)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
Error when uploading to Gaia hubwhile I am uploading mp3 and mp4 files to https://hub.blockstack.org then it is uploaded successfully.how can i resolve this.

Hi @ripal_400, thank you for asking this on the forum!

There are a few ways uploads can fail:

  • Your Gaia hub is configured for private use (in which case, the address of your private key must be whitelisted)
  • Your Gaia hub’s maximum file size is smaller than the size of the files you tried to upload
  • Your Gaia hub is not reachable.

Can you post your Gaia hub’s configuration file here, as well as the log data of when you try and upload files? The fact that the CLI was able to upload to hub.blockstack.org suggests to me that the CLI isn’t the problem.

@jude Thanks a lot for reply!!
I am sharing my config file, here

{
“servername”: “hub”,
“port”: “3000”,
“driver”: “aws”,
“bucket”: “todo-dapp”,
“readURL”: “https://todo-dap.s3.ap-south-1.amazonaws.com/”,
“cacheControl”: “public, max-age=1”,
“pageSize”: 20,
“diskSettings”: {
“storageRootDirectory”: “/tmp/gaia-disk”
},
“awsCredentials”: {
“accessKeyId”: “xxxxxxxxxxxx”,
“secretAccessKey”: “xxxxxxxxxx/xxxx”
},

“proofsConfig”: {
“proofsRequired” : 0
},

“azCredentials”: {
“accountName”: “”,
“accountKey”: “”
},

“argsTransport”: {
“level”: “debug”,
“handleExceptions”: true,
“stringify”: true,
“timestamp”: true,
“colorize”: true,
“json”: true
}
}
where i have to set max file upload size limit?