Package javaforce.media
Class MediaDecoder
java.lang.Object
javaforce.media.MediaCoder
javaforce.media.MediaDecoder
Media Decoder.
- Author:
- pquiring
-
Field Summary
Fields inherited from class javaforce.media.MediaCoder
AUDIO_FRAME, AV_CODEC_ID_AAC, AV_CODEC_ID_AC3, AV_CODEC_ID_FLAC, AV_CODEC_ID_GSM_MS, AV_CODEC_ID_H263, AV_CODEC_ID_H264, AV_CODEC_ID_H265, AV_CODEC_ID_MP2, AV_CODEC_ID_MP3, AV_CODEC_ID_MPEG1VIDEO, AV_CODEC_ID_MPEG2VIDEO, AV_CODEC_ID_MPEG4, AV_CODEC_ID_NONE, AV_CODEC_ID_OPUS, AV_CODEC_ID_PCM_S16LE, AV_CODEC_ID_THEORA, AV_CODEC_ID_VORBIS, AV_CODEC_ID_VP8, AV_CODEC_ID_VP9, END_FRAME, NULL_FRAME, PROFILE_BASELINE, PROFILE_HIGH, PROFILE_MAIN, SEEK_CUR, SEEK_END, SEEK_SET, VIDEO_FRAME -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class javaforce.media.MediaCoder
ffmpeg_set_logging
-
Constructor Details
-
MediaDecoder
public MediaDecoder()
-
-
Method Details
-
start
public boolean start(MediaIO io, int new_width, int new_height, int new_chs, int new_freq, boolean seekable) -
startFile
-
stop
public void stop() -
read
public int read() -
getVideo
public int[] getVideo() -
getAudio
public short[] getAudio() -
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getFrameRate
public float getFrameRate() -
getDuration
public long getDuration() -
getSampleRate
public int getSampleRate() -
getChannels
public int getChannels() -
getBitsPerSample
public int getBitsPerSample() -
seek
public boolean seek(long seconds) -
getVideoBitRate
public int getVideoBitRate() -
getAudioBitRate
public int getAudioBitRate() -
isKeyFrame
public boolean isKeyFrame() -
resize
public boolean resize(int newWidth, int newHeight)
-