Questions tagged [jcodec]

JCodec is an open source pure java implementation of video and audio codecs and formats.

JCodec is a library implementing a set of popular video and audio codecs. Currently JCodec supports:

Video

  • H.264 Main profile decoder ( CAVLC/CABAC, I/P/B frames );

  • H.264 Baseline profile encoder ( CAVLC, I-frames only, P-frames as of version 0.2 ); -MPEG 1/2 decoder ( I/P/B frames, interlace );

  • Apple ProRes decoder;

  • Apple ProRes encoder;

  • JPEG decoder;

Audio

  • SMPTE 302M decoder;

Wrappers ( muxers, demuxers, formats ):

  • MP4 ( ISO BMF, Apple QuickTime ) de-muxer;
  • MP4 ( ISO BMF, Apple QuickTime ) muxer;
  • MKV ( Matroska ) de-muxer;
  • MKV ( Matroska ) muxer;
  • MPEG PS ( Program Stream ) demuxer;
  • MPEG TS ( Transport Stream ) demuxer;

JCodec is free software distributed under FreeBSD License.

Home page: http://jcodec.org/

Repo : https://github.com/jcodec/jcodec

Dev team email : jcodecproject@gmail.com

76 questions
18
votes
4 answers

Recording Live OpenCV Processing on Android

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…
Kevin Workman
  • 41,537
  • 9
  • 68
  • 107
7
votes
2 answers

Create mp4 files on Android using Jcodec

i have some troubles with writing mp4 files on Android using MediaRecorder and Jcodec, here is my code public class SequenceEncoder { private final static String CLASSTAG = SequenceEncoder.class.getSimpleName(); private SeekableByteChannel…
user2427841
  • 71
  • 1
  • 2
6
votes
0 answers

Android: Jcodec: encoding image files to .mp4 video

I am using JCODEC to create a video of my screen activities. I don’t want to use android NDK as I want to do it in JAVA. I am running a for loop to encode images using SequenceEncoder. The problem is the loop is taking too long to run and log cat…
nihartrivedi810
  • 333
  • 1
  • 2
  • 12
6
votes
1 answer

Android encoder muxer: raw h264 to mp4 container

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…
X.Y.
  • 13,726
  • 10
  • 50
  • 63
5
votes
0 answers

JCodec simple H264 encode/decode

Ok, so trying to get my head around jcodec. Basically, I want to record what's on the screen as BufferedImages, encode the buffered images as H264 frames and then decode them and convert them back to buffered image. This is the code I have, the…
pranahata
  • 530
  • 4
  • 18
5
votes
0 answers

jcodec video from images and sound

I am creating a video from a image and a mp4 sound on my sd card on android from jcodec.I am getting output video but there is no voice and video is play on vlc but on android player continuous looping please help me Following is my code…
Sandeep Joshi
  • 179
  • 1
  • 8
4
votes
0 answers

Record and play h.264 video in memory using Jcodec

I am working on a project that requires h.264 video to be written to memory and then read from memory. In other words, using a byte array rather than a File. The only java encoder library that I can find is JCodec.      I am using version 0.2.0 of…
SolarFlare
  • 51
  • 3
4
votes
2 answers

JCodec Picture to BufferedImage

I am new to JCodec, but I am attempting to convert a JCodec Picture to a BufferedImage. Unfortunately, the methods to do so in JCodec have been deprecated, save for those methods converting a Picture to a Picture8Bit. However, I haven't found a…
tpm900
  • 271
  • 5
  • 11
3
votes
1 answer

Generate MP4 video file by sequence PNG images in Java 8

After testing several tools for Windows 10 found on the network, I had great difficulty in finding one that could carry around 5,000 PNG images in sequence and convert it into a video that was transmitted at the speed I wanted. I wasted a lot of…
Pereira
  • 719
  • 8
  • 22
3
votes
1 answer

Does JCODEC Support MPEG-TS or MPEG-PS

I am trying to be able to pick out frames (video and metadata) from MPEG, MPEG-TS and MPEG-PS files and live streams (network / UDP / RTP streams). I was looking into using JCODEC to do this and I started off by trying to use the FrameGrab /…
AeroBuffalo
  • 1,126
  • 1
  • 11
  • 31
3
votes
3 answers

create video from series of images android

I am trying to create a video from series of images in android. I have come across these three options MediaCodec, ffmpeg using ndk and jcodec. Can someone let me know which one of them is best and easiest. I didn't find any proper documentation so…
user3856223
  • 31
  • 1
  • 2
3
votes
2 answers

Decode H264 From Array of Integers

I'm trying to decode a H264 raw protocol from a camera but I'm having some problems using the Jcodec H264Decoder. I receive an array of integers with the information from the camera. Below a sample of the data: array: 00 00 01 FD 00 00 14 69 00 00…
Yore
  • 384
  • 1
  • 4
  • 18
2
votes
0 answers

I need to Convert video format to Codec: H264-MPEG-4 AVC in java.This video format will support to all latest html 5 browsers

I need to convert video format to Codec:- H264 - MPEG-4 AVC (part 10) (avc1) . This video format will support to all latest html 5 browsers. I need help to solve this issue If any one having the code please post the code Thank you in Advance. I…
vedanand
  • 21
  • 4
2
votes
0 answers

Android add mp3 to mp4 video or convert mp3 to acc or m4a

I have MP4 (H264) video. created by jcodec. jcodec not support not encode mp3 audio. i want add mp3 audio to my mp4 video. MP4parser is good solution for this merge, but not support mp3 format. FFmpeg (javacv) is very large native library and…
Farzad
  • 1,975
  • 1
  • 25
  • 47
2
votes
0 answers

Bitmap ListArray to MP4 using JCODEC is really slow

I am using the library called JCODEC in order to create an MP4 file from a Bitmap's ArrayList. Currently, I am converting 15 Bitmaps and the processing is really slow (15 seconds per Bitmap). Are there any ways to make this process more efficient?…
1
2 3 4 5 6