-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add a new API to FFmpegFrameGrabber/Recorder to take a stream as input parameter #95
Comments
Of course, "planning" is a big word though. We only need to find someone to take on the workload! :) Are you willing to give it a try yourself? |
I tried something in combining MediaCodec and JavaCV. I say something because I lack the full understanding of ffmpeg. You can find my SO question related to the attempt here: http://stackoverflow.com/questions/28775931/muxing-android-mediacodec-encoded-h264-packets-into-rtmp. If you can provide me with more clarification, I'd like to continue. |
@ardoramor Could you explain how your SO question relates to this issue? |
I was coming more from https://code.google.com/p/javacv/issues/detail?id=430&q=mediacodec but I think the purpose is the similar. At least one part of it deals with FFmpegFrameRecorder. For live streaming, integration of MediaCodec would simplify and enhance the streaming. |
@ardoramor I see. It might be easier to try to get things running without |
…rder(OutputStream)` constructors (issue #95) * Make `FrameFilter`, `FrameGrabber`, and `FrameRecorder` implement `Closeable` to let us try-with-resources
Feature added in version 1.3.1. Enjoy! |
Whow, this is great news, thanks!! |
Unfortunately I can't get OutputStream to work correctly. I'm converting images into video on android. Tried using 1.3 and 1.3.2 snapshot. The frames/bitmaps are valid as I checked them, but it will crash at
|
@peter9870 The same code works fine with Java SE on the desktop, right? |
@saudet Actually I think ParcelFileDescriptor and DocumentFile are unique to Android so it's not possible to have the same code tested on Java SE. However I saw your test file says mp4 is not a streamable format and you used matroska. So using matroska the file actually gets written to but is unplayable as it has a frame rate of 1000 fps and 0 bit rate despite setting the options on the recorder. |
@peter9870 Sounds like a bug in FFmpeg? |
So is it not possible to write to Removable MicroSD Card yet? I tried
But I get next error when I start recording |
I tried #645 (comment) Bad it doesn't work with mp4. (mFrameRecorder.setFormat("mp4");) Is there any other solutions? |
This enhancement was open in:
https://code.google.com/p/javacv/issues/detail?id=363
Are you guys still planing to develop?
The text was updated successfully, but these errors were encountered: