Play Audio File Stored in AWS S3 - node.js

I have successfully uploaded some audio files via Nodejs to AWS, the file url is also returned from my function. I plan to save this url in MongoDB Atlas as a reference to the original file but before doing that, I tried to play the file (from the url) in my mobile app and it won't play.
The file is in .m4a format. How do I get this to work in any audio player for mobile and web? I'm using flutter for both. I don't want to do piping, chunking and streaming manually as this is just a dummy test of the system. The original files to be used in the app will be much larger.
Here's the file url https://empty-bouquet.s3.af-south-1.amazonaws.com/Dax+-Dear+God.m4a.
Thanks

.m4a audios aren't natively streamed from S3, but after a test I can verify that .mp3 files are. Most browsers will recognize that filetype and render a built-in player for you.
You can convert from one format to another using a lot of free tools. I used Audacity.
And yes, you need to make at least the file public. Or if you're going to do this a lot I would recommend making a bucket policy that makes everything public, no matter what you throw in there.

Related

Unable to encode an asset with two videos in azure media services v3

I am capturing multiple videos and trying to store them all in one media asset and later encode them. But I always get the below error. There are no issues however if I upload one file to asset and run the encoding job.
Output 'BuiltInStandardEncoderPreset_0', Error : Microsoft.Azure.Management.Media.Models.JobError : While trying to download the input files, the files were not accessible, please check the availability of the source.
Do I need to use one media asset for each upload? Is having multiple files in one asset not the right approach?
FYI: I tried all thesew steps on media servicer explorer desktop app. So please be sure I didn't write any code for this.
You would indeed need to use a separate Asset for each video. We'll follow up with a service update to improve the error message in this situation.
I think the problem here is not the upload of multiple files in one asset, but the fact that the encoding job will not pick each blob of the asset and encoding them. That's why you need to use one asset per video file to be encoded.

Google Cloud Storage: M4A audio files: Won't play in console when uploaded using gsutil

I store M4A audio files on GCS. When uploading the files manually from the GCP Console, the file type on GCS is x-m4a and you can click on the file and play it (if it's small enough). If I upload the same file using gsutil cp, however, the resulting file type is mp4a-latm and, if you click on it, GCS doesn't offer the audio player widget. The files are the same size. I run gsutil on a Mac Catalina. I'd like to use gsutil and play the audio in the Console. Anyone knows why the difference and how to adjust gsutil's behavior? Many thanks Example: two different types on GCS; this is the same file on my laptop

Azure Media player gives "no compatible source was found for this media 0x10600000" error on android

Azure Media player gives "no compatible source was found for this media 0x10600000" error on android for downloaded video files for few formats like mpeg. Http url for the same file is playing fine but, if we download the file to local storage and try to play from storage it throws this error.
I think it might be related to the Media Server being able to do different encodings/formats to match the players supported formats, but once a file is downloaded locally, if the player doesn't support the format internally, it won't be able to play it.
I would suggest you try to tweak the encoding/format using HTTP headers (I think it's the Accepts header) and to trigger a download with a format supported by the player.
Hope it helps!

External audio enclosure transfer to local

I am trying to find a way of easily importing external audio urls (podcasts) into my private blog. I have the external url as part of the enclosure but I want to be able to download it (either as part of FeedWordPress) or automatically. Currently, if I wanted to host the file locally I would need to save the file to my computer and then upload it via the Media uploaded. This is rather tiresome. Any ideas? Thank you.

Multiple media encode and Merge (join) media file in azure

I am new to azure, I ref media encoding sample tutorial & it working fine too,
but when I upload multiple file it successfully upload but while encoding job, my job.Submit(); method throw an exception
and another is I want single file in output (in short I want merge video files and add some snaps in between video)
No, currently (as of October the 7th) you can't join/combine multiple files into single one.
As for the errors you get while job.Submit() - in order to receive a proper answer, you have to ask the question properly - provide relevant code lines/snippet, full stack trace, exact steps to reproduce etc.
Also, then doing media trans-coding, always keep an eye on the list of supported media codecs here. Make sure you are using supported codecs before asking question.
Azure's Media Encoder Stander (MES) supports combining multiple video files using a custom preset.
Azure MES Doc: Concatenate two or more video files

Resources