# h264j **Repository Path**: samwen2019/h264j ## Basic Information - **Project Name**: h264j - **Description**: 从FFmpeg (libavcodec)库移植的纯JAVA H264解码器。 - **Primary Language**: Unknown - **License**: LGPL-2.1 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2020-07-22 - **Last Updated**: 2021-05-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README **A pure JAVA H264 Decoder ported from FFmpeg (libavcodec) library.** Everything is re-implemented in pure JAVA language. **h264j** can decode **Baseline / Main / Extend / High profile**. --- **To build the project**, ``` cd h264j mvn package ``` Your built JAR file should be in target directory --- **To run the project**, Use JAVA to run com.twilight.h264.player.H264Player with parameter H264 Raw File You can use sample H264 Raw files in /h264j/sample\_clips directory. >Example ``` java -cp h264j-1.0-SNAPSHOT.jar com.twilight.h264.player.H264Player ../../h264j/sample_clips/admiral.264 ``` --- Decoder source code, those are ported from FFmpeg, are in package com.twilight.h264.decoder. Package com.twilight.h264.util provides utility classes for JAVA system (and some for J2ME). To use decoder, please see example in class com.twilight.h264.player.H264Player. Enjoy :) Chulayuth A.