media icon indicating copy to clipboard operation
media copied to clipboard

Transformer.start() should support Uri or OutputStream

Open steelbytes opened this issue 1 year ago • 6 comments

I need to be able to pass the result of DocumentFile.createFile() to Transformer.Start(). Either as a Uri from DocumentFile.getUri() or as an OutputStream from ContentResolver.openOutputStream().

This is important for large files (eg more than 10GB) as otherwise I have to write to a temp file (suppling it's filename to transformer.start) and then afterwards copy the contents of this into the above mentioned uri/outputsteam which sadly I can't even do with a File.renameTo. This causes twice the disk usage and a lot of extra time for the copy.

steelbytes avatar Nov 29 '23 23:11 steelbytes

Thank you for the feature request. This is currently not supported but it is on our roadmap to add more flexibility to Transformer. You could check out issue #619 to get a few alternative ideas how you could solve it in the meantime, for example you could write a custom muxer.

droid-girl avatar Dec 05 '23 21:12 droid-girl

Thank you for the feature request. This is currently not supported but it is on our roadmap to add more flexibility to Transformer. You could check out issue #619 to get a few alternative ideas how you could solve it in the meantime, for example you could write a custom muxer.

any idea on when you'll reach this item on your roadmap?

steelbytes avatar Dec 08 '23 22:12 steelbytes

Probably sometime in H2 next year or later. Keep in mind, these dates are subject to change 🙂

droid-girl avatar Dec 12 '23 18:12 droid-girl

nudge nudge

steelbytes avatar Apr 18 '24 07:04 steelbytes

nudge nudge nudge

steelbytes avatar May 17 '24 22:05 steelbytes

This is tentatively on the roadmap but I'm afraid it will likely still be a few months until we get round to this.

andrewlewis avatar May 20 '24 10:05 andrewlewis