We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The transcoded video doesn't play in the html5 video element.
The text was updated successfully, but these errors were encountered:
example
private async encodeVideo(inputFilePath: string, outputFilePath: string) { // https://superuser.com/questions/1155186/convert-mov-video-to-mp4-with-ffmpeg if (inputFilePath) { const command = [ `-i ${inputFilePath}`, '-vcodec libx264', '-preset veryfast', '-vf scale=w=1280:h=1280:force_original_aspect_ratio=decrease', '-pix_fmt yuv420p', '-c:a aac', '-ss 00:00', '-to 00:30', '-movflags +faststart', outputFilePath, ].join(' '); await this.ffMpeg.exec(command); } }
Npm package https://www.npmjs.com/package/cordova-plugin-ffmpeg
Active fork https://github.com/MaximBelov/cordova-plugin-ffmpeg
Sorry, something went wrong.
No branches or pull requests
The transcoded video doesn't play in the html5 video element.
The text was updated successfully, but these errors were encountered: