cordova-plugin-video-editor icon indicating copy to clipboard operation
cordova-plugin-video-editor copied to clipboard

Change Output location on Transcode

Open gkrizek opened this issue 8 years ago • 5 comments

Is the output location of the video when you transcode it a temporary directory or permanent?

Are you able to change the directory to something that is temporary or permanent, depending on what you want?

Thanks

gkrizek avatar Jul 15 '16 11:07 gkrizek

Any ideas here? I would like to be able to write these transcoded videos to a temporary location that automatically gets cleaned out.

I could just create my own way of clearing them, but it would be much easier to just write to a temp directory.

gkrizek avatar Jul 21 '16 11:07 gkrizek

It seems that the API places the file in the same directory as the input file. Can you not just move the file after you transcode it? That was the way I approached it my app.

selsamman avatar Jul 22 '16 13:07 selsamman

Hmmm. My original file is in: /var/mobile/Containers/Data/Application/22054F35-31B1-41F7-9257-61A4E9E3B3F4/tmp/capture-T0x146d14a40.tmp.JnGasA/capturedvideo.MOV and my output file goes into: /var/mobile/Containers/Data/Application/22054F35-31B1-41F7-9257-61A4E9E3B3F4/Library/Caches/38Rza4wk2eSG2qkGh.mp4

Are those the same thing just sym-linked or something? Yes, I could just move it. But adding the ability to specify where it is written seems like a good and efficient feature.

gkrizek avatar Jul 22 '16 14:07 gkrizek

Sorry about that. I didn't realize this because I always move the file afterwards :-)

selsamman avatar Jul 22 '16 14:07 selsamman

+1, it'd be great if we could choose to transcode to the temp directory rather than to the library or not. (where does it save the file when not saving to library? - the code isn't very clear and my app is broken at the moment)

Redmage3555 avatar Apr 13 '17 18:04 Redmage3555