jcodec

Android encoder muxer: raw h264 to mp4 container

∥☆過路亽.° 提交于 2019-11-28 20:57:38
I created a h264 raw video file, and I was able to mux it with Android MediaMuxer on Android 4.3 and up. Now I need to support Android versions 4.1 and 4.2. I found Jcodec. And there is an example for doing this: https://github.com/jcodec/jcodec/blob/master/samples/main/java/org/jcodec/samples/mux/AVCMP4Mux.java But I'm getting java.nio.ReadOnlyBufferException exception at line 70: H264Utils.encodeMOVPacket(data); I guess this code is not for Android? How do I fix this. Can someone familiar with Jcodec help on this? xy uber.com I gave up on Jcodec. It exposes too many codec internal stuff, and

Recording Live OpenCV Processing on Android

本小妞迷上赌 提交于 2019-11-27 13:15:53
My goal is to do a couple things: Use OpenCV and the JavaCameraView to process frames from the phone's camera feed Enable recording of that processed video as it happens I have both of them working, but the way I had to implement number 2 is ridiculous: For each frame, write the processed Mat as an image file. When the recording stops, use JCodec's Android library to stitch them together into a video file. That works, but it comes with a ton of drawbacks: the framerate drops unbearably low during a recording, and the stitching step takes about half a second per frame, and runs out of memory

Android encoder muxer: raw h264 to mp4 container

泪湿孤枕 提交于 2019-11-27 12:34:48
问题 I created a h264 raw video file, and I was able to mux it with Android MediaMuxer on Android 4.3 and up. Now I need to support Android versions 4.1 and 4.2. I found Jcodec. And there is an example for doing this: https://github.com/jcodec/jcodec/blob/master/samples/main/java/org/jcodec/samples/mux/AVCMP4Mux.java But I'm getting java.nio.ReadOnlyBufferException exception at line 70: H264Utils.encodeMOVPacket(data); I guess this code is not for Android? How do I fix this. Can someone familiar

Recording Live OpenCV Processing on Android

帅比萌擦擦* 提交于 2019-11-27 04:26:05
问题 My goal is to do a couple things: Use OpenCV and the JavaCameraView to process frames from the phone's camera feed Enable recording of that processed video as it happens I have both of them working, but the way I had to implement number 2 is ridiculous: For each frame, write the processed Mat as an image file. When the recording stops, use JCodec's Android library to stitch them together into a video file. That works, but it comes with a ton of drawbacks: the framerate drops unbearably low