-
Notifications
You must be signed in to change notification settings - Fork 6
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
Compression always gives empty bytes #27
Comments
Can you catch exception and print it? This feature depends upon MP4 transcoder that is part of Android itself, very old devices and some devices had buggy implementation so it might be the case. |
@ackava I have used the same code as shown above by @architpoddar and the video bytes is 0. Following is the exception logged in the output window:
|
If you read line |
Thank you so much @ackava. Will be waiting for the update. Really need to get this working. |
Hi, i have the same issue. i'm using android 9.0. And the code always gives me a 0 kb output file. Could you help me? public async Task ConvertFileAsync(string path)
|
Package` id="Xamarin.Android.MP4Transcoder" version="1.0.47"
Hi, I'm trying to use this plugin for compressing videos to 720p.
But for some phones, the resultant file is of 0 bytes, ie, it doesn't get created. It works fine for some phones too.
Here is the code that I'm using:
public async Task CompressVideo(FileDto file, bool deleteOldFile = false)
{
if (Build.VERSION.SdkInt >= BuildVersionCodes.Kitkat)
{
Java.IO.File oldVideo = new Java.IO.File(file.FilePath);
Could you please help me out?
The text was updated successfully, but these errors were encountered: