-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes issue#8 output file metadata .MOV -> .mp4 #11
Conversation
I believe originally it defaulted to the input extension of the original file now its modified to match the output file type (.mp4)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the current version is fine, sourceVideoType
is only used for constructing the source path. If you look at line 195, the output type is hardcoded as MP4.
Edit: Nvm, think you're right. Nice catch!
On second look through, it seems like the crux of the problem is reusing the source url as the output url. Am I misunderstanding, or does it look like the original file is deleted/overwritten regardless of |
It is excluding compressionUrl, to prevent an exception from being thrown if the file already exists or is duplicated, the original file (sourceVideoUrl) will only be deleted if deleteOrigin is true. |
I need further testing to make sure that this will not raise an exception if a file other than mp4 is selected. I thank you both for the help you are giving me in this library. I will add your readme profile as contributors soon. |
I've tested it myself on an iPhone with videos in MOV format (or potentially HVEC?), and it seemed to fix some issues I was having. Regarding the file deletion I mentioned, read through the file yet again, and I have no clue what made me think the source file was being deleted... looks good. Glad to help, this library has already been rather useful! |
Perhaps there is a better way to do this, renaming the file to NameOfFile(1).mp4 instead of trying to delete it if the file already exists. |
I believe originally it defaulted to the input extension of the original file
now its modified to match the output file type (.mp4)