-
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
Could I convert raw H.264 stream to video file? #435
Comments
Looks fine to me. BTW, it would be easier to use FFmpegFrameGrabber I think.
|
Actually you want to do transcoding, so you'll to decode the packets to frames and encode them back to packets. Passing just the packets like that won't work. |
@saudet , FFmpegFrameGrabber just deal with File, right? But here what I want to do is real-time transcoding, I want to transcode raw H264 stream to MPEG1 stream and push it to server. BTW, could you please tell me how could I decode those packets to frames? Thanks :) |
Ah, so you want support for InputStream and OutputStream. Sure, a lot of people have been asking for that: #95 If you would like to make a contribution, it would be most welcome. Let me know if you start looking into this and you encounter any problems. I can help you with that. |
@ele828 I'm having the same problem as you described. did you ever find a solution to link the MediaCodec output to FFMpegRecorder frames? |
BTW, if the |
Hi,
I got raw H.264 bytes from MediaCodec on Android, and now I want to use FFmpeg to convert those bytes to MPEG1VIDEO format in real time, and push it to the server. How should I do?
it doesn't work in this way.
I got these in console.
Note that I saved those raw H.264 stream to a file, and use command line to convert, it just works fine:
Thanks!!!
The text was updated successfully, but these errors were encountered: