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
2
votes
0 answers

JCodec: FrameGrab8Bit.class not included in JAR download - how do I add it?

I just downloaded the latest version of JCodec: JCodec-0.1.9. However, I noticed the manifest doesn't include FrameGrab8Bit.class. As Picture has been deprecated and supplanted by Picture8Bit it would be nice, and almost necessary, to have access to…
tpm900
  • 271
  • 5
  • 11
2
votes
0 answers

My programically created video (JCodec) does not play in the browser (however it does play on VLC)

The HTML file is opened via double click. The player screen is black, and if I click play button, it jumps straight to the end. However, if I drag video player's handle around, I can see some shots from the video on screen. This is the HTML file:…
Coderino Javarino
  • 2,819
  • 4
  • 21
  • 43
2
votes
1 answer

Muxing MP4 and AAC (jcodec, MP4Parser)

I have an MP4 file that I generate with jcodec. I then have an AAC file I generate with Android's MediaCodec. I want to mux them together into a single file and since I don't want to limit my Android API too high, I'm opting for MP4Parser. Here's…
yesbutmaybeno
  • 1,078
  • 13
  • 31
2
votes
1 answer

Android: Jcodec Framerate and Duration

I'm having a hard time getting the right duration and the exact framerate in Jcodec. My situation is I have a app that shows an array of bitmaps, wherein the user can change its frame rate like 1fps, 5fps, 32fps, all I did was 1000/fps. so 1fps…
JamParaiso
  • 177
  • 16
2
votes
2 answers

How can I turn a series of images into a video using JCodec?

I'm trying to use JCodec to turn a series of images into a video inside of a Java SE desktop application. The few methods I've tried all resulted in a video that Windows Media Player could not play. It is unclear to me if this is a codec issue…
Luke
  • 3,742
  • 4
  • 31
  • 50
2
votes
1 answer

Get H.264 frame from UDP stream using jCodec

I am wondering how to get and decode a H.264 frame from a UDP live stream using jCodec. I see examples of how to get it from a file, but I need to get it from a live stream. I have the application receiving the live stream packets, but I need to…
Steve Glick
  • 698
  • 7
  • 19
1
vote
2 answers

How to combine multiple mp4 videos into one video using jcodec in Java?

I have multiple mp4 files which are parts of a whole mp4 file. They have been just split up to smaller files. I want to combine those files programmatically into one mp4 file using jcodec in Java. Currently, I'm using the following code to do…
Hadi
  • 544
  • 1
  • 8
  • 28
1
vote
0 answers

How to avoid blinking of video produced by JCodec

I've created a video by JCodec applying the following code. But it is blinking. I tried to change fps from 24 to 30 and 60 but still, it has the blinking side effect. I verified with different source graphic formats png and jpg. Especially the side…
0x01
  • 29
  • 1
1
vote
0 answers

I need to save a frame from the video using jcodec(i use Libgdx), but the frame is not saved on the android

I need to save a frame from the video using jcodec(i use Libgdx), but the frame is not saved on the android public void save(){ int framenum = 3; File file = new File(Gdx.files.internal("vid.mp4").toString()); try…
TemaTriz
  • 11
  • 1
1
vote
1 answer

Android Studio: Read .mp4 from res/raw/ directory frame by frame

For my app I need to load the individual images of a video file located in my res/raw/ directory into a list/array of images. From this list/array of images I need to pick some indecies, which will be stored into a new video video file also located…
1
vote
1 answer

Encoding Images Into Video with JCodec Errors

I need to encode multiple images (Of which I have the complete path) into a video of a certain FPS on android. Trials: How to create a video from an array of images in Android? Why I couldn't get it to work: I added the Jcodec Dependecy to gradle…
Fabrizio
  • 1,138
  • 4
  • 18
  • 41
1
vote
1 answer

Captured frame is rotating 90 degree right in the Server

Frame or image is captured from the Video sent by the android mobile, Used Jcodec(jcodec and jcodec-javase Version 0.2.2) to capture the image in java. Everything is working fine but while…
User
  • 89
  • 2
  • 13
1
vote
1 answer

Making a video file out of images in Java?

I make a robot that has an auto delay of 50 then do this. for(int a=0;a<1000;a++;) { Rectangle screenRect= new Rectangle(300,400); al.add(r.createScreenCapture(screenRect)); } File outputfile = new File(output,"Test.mp4"); AWTSequenceEncoder…
George
  • 39
  • 4
1
vote
2 answers

Create a video preview image like youtube or whatsapp from a Video file (.mp4) using JAVA Code

Issue 1. When I use FFmpeg Java api, program doesn't run and print anything after grabber.start(). No preview generated. Code Sample : public static boolean generatePreviewImage(String filePath, String previewFileName ) throws IOException { …
Ravi Dua
  • 43
  • 1
  • 8
1
vote
0 answers

Making a single .mp4 from 2 mp4s made into a byte[] JAVA

I'm making a project that the single objective is to transform 2 .mp4 files in a single one. For this I'm transforming the files into 2 byte[] and making it into a single one, but when I make the BufferedOutputStream on it it only keeps the content…
farbache
  • 21
  • 2