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
0
votes
1 answer

Decoding H.264 NALU stream

I am trying to get a frame out of a videoStream in H.264 format on Android. I have a callback function that receives (byte[] video, int size) where video is composed of NALU packets and the 'size' int seems to be the size of the video (I've been…
0
votes
2 answers

java: package does not exist error only after build

I'm trying to add the JCodec library to my android studio project. I followed the steps listed here. I import these four lines: import org.jcodec.codecs.h264.H264Decoder; import org.jcodec.common.AndroidUtil; import…
0
votes
1 answer

Android using jcodec to convert a series of images takes very long time

I am using jcodec library for converting a series of images to video, along with the transitions / animation like fade / flip and so on... While this conversion process, I use the below function of SequenceEncoder class for each of the image. …
Narendra Singh
  • 3,990
  • 5
  • 37
  • 78
0
votes
2 answers

How to add library to Processing?

i would like to use jar library from http://jcodec.org/ with Processing. I know there are many of tutorials about libraries but none of them are clear enough for me to understand. I have already dragged and dropped the jcodec-0.1.5.jar to my sketch…
distiking
  • 7
  • 3
0
votes
1 answer

Unable to encode series of JPEG images to MPEG video

I need to convert JPEG images to MPEG video and to be able to easily set the duration that each frame displayed. I have tried JMF, Xuggler, & JCodec but all have their problems. I will appreciate any solution that is well explained for either JMF ,…
cyber101
  • 2,822
  • 14
  • 50
  • 93
0
votes
0 answers

Android: Does Jcodec support Arraylist of Bitmap?

I've been searching for a possible way to convert my Bitmap (Not in drawable, I'm using canvas bitmap) into a video format. And I've found the Jcodec. I don't know if it support an arraylist of bitmap. And the website doesn't give any clear…
JamParaiso
  • 177
  • 16
0
votes
2 answers

What is the difference between YUVFormat.YUV_420 and ColorSpace.YUV420?

I have searched through and have read a ton of sources, but I cannot seem to find an answer. I thought these "types" were equal, but when I decode h264 into bytes using jcodec I assumed the data output was YUV 4:2:O Planar (YUV420P); this is the…
Paul Gregoire
  • 9,715
  • 11
  • 67
  • 131
0
votes
2 answers

Set the image duration with jcodec in android

i am making an app that makes a video with few pictures. my problem is that the video with 20 or 30 images have a 1 second duration. I create the encoder in my OnCreate method and in a Timer, i use this encoder.encodeNativeFrame(pic); The Timer…
Javier
  • 103
  • 11
0
votes
1 answer

Create video from series of images using android

I'm trying to write an android application in which we allow user to create video from series of images. I did lot of investigation like C/C++ libraries FFMPEG, X264. These can be used using NDK, but i dont know how to use it via NDK, i also did…
Farrakh Javed
  • 153
  • 12
0
votes
1 answer

Creating video from images with jcodec (error)

I'm trying to use jcodec library to create video from images but sequenceEncoder.encodeImage(bitmap) is showing error. my code for encoding is :- class EncodeImages extends AsyncTask{ @Override protected…
ranjitzade
  • 541
  • 5
  • 14
0
votes
1 answer

Get YUV420 bytes from JCodec Picture

Using an H264Decoder I would like to obtain the decoded YUV420 data as a Java byte array. I have searched all over and I don't see any examples that fit. ByteBuffer buf = ByteBuffer.wrap(h264EncodedByteArray); H264Decoder decoder = new…
Paul Gregoire
  • 9,715
  • 11
  • 67
  • 131
0
votes
1 answer

How to multiplex mp3 and mp4 files in Android

Problem statement: I am designing an android app in which I have to get images from the user's gallery, combine them to make a video file and add background music. I have used jcodec library to create mp4 video file using my image resources (I know…
Syed Zeeshan
  • 1
  • 1
  • 1
0
votes
1 answer

how to create ts (transport stream) video file from mp4 in android

In my project I need to implement an HLS (HTTP live Streaming) for an android device and it stream to an iOS device to play where android device will record the video and send it to server and iOS device will play the stream from the server using an…
0
votes
1 answer

Creating a video from set of images Android

I am working on an app for android that creates video file from a video at start and then set of images, and saves it. Is there any way to accomplish that? I tried JCodec and it has broken libraries, untrusted code on the web and lack of knowledge…
0
votes
0 answers

Using jcodec SequenceEncoder give ArrayListOutOfBoundsException

I'm trying to encode video from a few images in my application. I'm Using jcodec library to implement my task. This is my code: public class Encoder extends AsyncTask { private static final String TAG = "ENCODER"; …
SacreDeveloper
  • 1,253
  • 1
  • 9
  • 16