moviemasher / moviemasher.js

JavaScript library for realtime, browser-based video and audio editing
Mozilla Public License 2.0
304 stars 63 forks source link

frames bitmap files naming #9

Closed think-01 closed 6 years ago

think-01 commented 8 years ago

Hi, I managed to set up everything with SQS, S3 and moviemasher transcoder API on AWS and its working fine untill I try to import a very short movie which results in less than 100 frame files on S3... in this case transcoder names files like 01.jpg, 02.jpg and so on but moviemasher.js still tries to poll 001.jpg, 002.jpg etc. how can I avoid that?

Also, when I'm rendering a movie from mash it gets uploaded to S3 without specifying a mime type ( which results in download from S3 link instead of showing movie ). How can I set a mime type in export data structure?

Thanks in advance!

syntropo commented 8 years ago

Hmm... is it always exactly 100 frames? You can specify the zeropadding property in the media element - to two, in your case.

And that's weird the mime type didn't make it through. You can specify the mime_type property of the output job element to override.

think-01 commented 8 years ago

its not allways 100, thats the point it can be 50 and it can be 5000 frames, I cant forsee this thats why its a problem - ideally it would be that on import generated frame files are allways lets say 5 digits length ( with leading zeros ) but can I force this with import job?

think-01 commented 8 years ago

okay I managed, I calculate zeropadding from callbacks videorate and duration :)