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

Turning Java 8 BufferedImages into MP4s via JCodec or similar

Java 8 here. And while I mention JCodec, that I'm open to any solution that works! In the JCodec README they provide a decent example for how one can turn a list of BufferedImages into an MP4 on disk like so: SeekableByteChannel out = null; try { …
hotmeatballsoup
  • 385
  • 6
  • 58
  • 136
0
votes
0 answers

How do I live encode a video in Java with JCodec?

In short, my question is: Which is the fastest format for encoding with JCodec, without loosing too much quality (like mangled colors)? An example to what I mean with "Mangled colours, can be found in the videos in the description of this issue. The…
beruic
  • 5,517
  • 3
  • 35
  • 59
0
votes
0 answers

Rotate mp4 using jcodec

Is there a way to rotate mp4 files using Jcodec? I am able to add/edit meta data using Jcodec but could not find a way to change the rotation of the video. For example if the mp4 file is in portrait, I want to change the orientation to…
ravi
  • 2,722
  • 7
  • 25
  • 42
0
votes
1 answer

IPCM Macroblock found

I try to load an video into an Vectorpublish document. Everything works find so far. But at frame 150 the Video (huge mp4-file about 56.2 Gibibyte) decoder breaks. This is the code. package net.vectorpublish.desktop.vp.video; import…
Grim
  • 1,938
  • 10
  • 56
  • 123
0
votes
1 answer

How to set cover art to mp4 media file jcodec-android

I'm using jcodec. I'm trying to set cover art to an mp4 file, but it's not working. I've done the following: fun AppCompatActivity.setAlbumCover(filePath: String) { try { val file = File(filePath) val bitmap =…
Kasim Rangwala
  • 1,765
  • 2
  • 23
  • 44
0
votes
0 answers

what is the absolute path of output.mp4 generated from these jcodec sample codes?

I am using the following codes from JCodec in the MainActivity which extends AppCompatActivity to make a video with a set of images from memory in android, but getting confused about the actual path: Bitmap[] bitmaps = new Bitmap[3]; …
AAMSharif
  • 1
  • 1
0
votes
1 answer

Java BufferedImages from .ts File

How can I get a BufferedImage (Frame at defined Position) from a .ts File in Java? I don't want to use any JNI / CLI Wrapper if possible. System.out.println( JCodecUtil.detectFormat( file ) ); Demuxer demuxer =…
p4skal
  • 17
  • 6
0
votes
0 answers

demuxer video use jcodec

I want to hide the text on video (in java). I created video from images, and I got a video lossless format. Now, I want to get frame from this video. How can I do it?. This is code that I used: public class SequenceMuxer { private…
MeiMei
  • 1
0
votes
1 answer

I was trying to convert images to a video using jcodec

I was trying to convert a set of images into video using Jcodec, Saw a video on youtube that was running correctly. I did everything they showed. But the code didn't work. plz, help. I'm posting the link to the video, my code, and the errors. video…
0
votes
4 answers

Get exact frame from a video in Android

So I have an app where users can take videos, and I want to grab specific frames from the file. When I use the method MediaMetaDataRetriever.getFrameAtTime(), it can only extract one frame for every second, but I want to grab frames between the…
hermt2
  • 844
  • 3
  • 14
  • 33
0
votes
1 answer

Downloading video file by streaming a certain part of the video

An online link gives me back a video in my browser, that is then streamed. In my browser, I don't need to download the whole video to visualize it - I can skip to a certain part, visualize that part, and even stop watching before the end. How can I,…
user2065501
  • 99
  • 2
  • 9
0
votes
1 answer

Getting ArrayIndexOutOfBoundsException when using JCodec in android

I am creating a video from the static images present in the external storage of my phone. The video will be like an automatic slideshow of the images. I have used JCodec for it. Below is my code. import android.app.AlertDialog; import…
0
votes
1 answer

Extracting rotation metadata from mp4 file

A piece of software I am writing is required to generate thumbnails from video. iPhone users can record video in portrait mode and send it to me. When you open such video in video player like VLC - everything is ok. Problem is when you try to…
Mateusz
  • 418
  • 3
  • 17
0
votes
1 answer

Missing getFrame method in Jcodec 0.1.9 in Android

I'm using Jcodec for my application.. I've added this in my gradle: compile 'org.jcodec:jcodec:0.1.9' However when I tried to follow the example on that page, Android Studio cannot resolve getFrame() method. When I tried to look at code, there's no…
kishidp
  • 1,918
  • 6
  • 23
  • 29
0
votes
1 answer

jcodec Permission Denied for NIOUtils.readableFileChannel

I'm trying to use JCodec to get all the frames from an MP4 on my emulator. I have the following permissions in my manifest:
medloh
  • 941
  • 12
  • 33