-
Notifications
You must be signed in to change notification settings - Fork 118
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
Store Filtered video in video formated file (like .mp4) #7
Comments
This was one of my goals for the original project. The issue is that Android does not provide any easy way (as far as I know) to create videos from a group of images. I managed to get something working on Android 2.2 using the FFMpeg library. The problem was that it was crashing on all of the Android 4+ devices I tested on making it relatively useless. I believe it the video output code and sample were committed to the project in one of the earlier commits, if you wanted to take a look at it. If not, it is still on my todo list, but I fear it will be a while before I actually get anything working properly. |
Thanks for reply. I also checked out many libraries like openCV, FFMpeg, Mp4Parser, etc. but couldn't reach to the solution yet. Waiting for your updated project with video filter output. |
Hello chrisbatt, can I add filter image ( e.g. watereffect.jpg) with video in android. Please let me know if you have any idea about this. Need sample code if possible. |
I am a little bit confused about what you are asking. If you are asking if you can use a JPGFileEndpoint with a video input then the answer is yes. I believe there is an example of this in the examples folder called VideoToImage. If you are asking about something else, would it be possible to clarify what you mean by a filter image with video? |
My question is, as in FastImageProcessing library you are creating filter classes (e.g. SepiaFilter.java, HueFilter.java,..etc.). I have an image like String[] ffmpegCommand = {ffmpegBin, "-v", "10", "-y", "-i", inputFile.getPath(), But it didnt work. Please help me if you have any idea how to implement this or have any other way to do this. |
Was going to create a new issue but this seems like a sensible place to put it. This seems to work fine in Android 4.0.3+ although I have only tested on KitKat so far. main code is in VideoFileEndpoint.java and VideoFileEndpointListener.java comments aren't all updated apologies. |
Thank you very much for all your efforts. Can you please also add VideoToVideoExample as well..? |
Can't do all the work kamdar :) You just need to hook it up like you would You should also review the javacv setup requirements if the bundled lib.so
|
OK..Thank you. |
leeicmobile i have tried what you posted here. I hooked videoFileEndpoint just like screenEndPoint included javaCv to my project and recording works but its very slow. Record speed is one frame in half a second so the result video has 2fps. |
Hi Stofo89, unfortunately I've also found that performance differs considerably from This is dues to the glreadpixels call which can be upto 100ms per call on All I could suggest is perhaps do post-processing of the video, if you are Lee On 15 March 2014 15:12, stofo89 [email protected] wrote:
|
Hey @leeicmobile , Your I noticed that the I will post updates if I manage to get the filtered video out while recording, so that I can push to your repo an example of Thanks, |
Hi Lee, @leeicmobile I need to only filter it and get the output file. is there a way to get the video file through background post-processing in a shorter period of time? Waiting for your reply. Thanks for your works. Justin |
First of all, I would like to thank you for giving us a great library similar to GPUImage framework of iOS.
While viewing Library, I could find VideoToImageExample filtering sample. But it storing output as image in .jpg format in JPGFileEndpoint.java class.
I wanted to filter video and store filtered video in video formate file (like .mp4). That means VideoToVideoExample. Please help me for the same.
Thanks in advance.
The text was updated successfully, but these errors were encountered: