-
Notifications
You must be signed in to change notification settings - Fork 235
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
Selecting Videos from Gallery for transcoding #33
Comments
Is this occurring on iOS or Android? What is the error that you are seeing? |
Android |
OK, so I got the trans-coding to work with Gallery videos, but now I have another issue with Gallery videos - they are not getting trimmed to my specified time/duration. I set the duration to 12, select a video that's around 50 seconds in length, start tran-scoding and end up with a full 50 second video that has been trans-coded. Any ideas as to how to get this to work??? |
What os version of android is on the device? What is the version of cordova android platform? I have an iPhone/android app that uses this plugin and limits duration, I haven't seen any issues limiting duration on android. Do you see anything in the adb logcat |
OS version is 4.4.2, cordova version is 5.1.1. I'm only having issues with trimming videos that are longer than my specified duration, so the duration of a video before trans-coding is the same after trans-coding. I've noticed in the ffmpeg plugin, there is no handling/passing of the duration parameter into the processVideo function, only in the other functions. Maybe this is the reason? |
@rossmartin even i am facing the same situation,i am not able to trim the video based on end time & start time, can u please do something for this, i will be very grateful to you, thanks in advance :) |
@srinivasulurao @cameronws I plan to work on this issue tomorrow. |
Thanks a ton, really appreciated ! |
I managed to get this working and have submitted a pull request on the ffmpeg project for the solution. guardianproject/android-ffmpeg-java#19
if (out.duration > 0)
{
cmd.add(Argument.DURATION);
cmd.add(out.duration+"");
}
|
@cameronws Thanks for finding this. I think I never noticed the issue on android because trimming used to work before I rewrote the android plugin to use Also, I'll be adding some instructions on how to select a video from the gallery for transcoding. It is easy using the
The |
Sorry about that guys. I am surprised myself that duration didn't work with that command, since we use this for trimming in our StoryMaker app. Anyhow, patch merged. Thanks @cameronws |
@n8fr8 @cameronws Thanks! |
I'm busy collaborating on an app that requires video upload but we have restrictions in place as to the length and size of videos that can be uploaded. I don't have any issues trans-coding videos straight after recording from the video camera, but I keep getting a JSON error when trying to trans-code a video from my phone's gallery. I've tried all sorts of ways of getting the file path so that it is similar to that provided by the camera's success callback to no avail. Has anyone else experienced this or have a solution?
The text was updated successfully, but these errors were encountered: