public class FfmpegUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
formatError(int error)
Get the string for a given FFmpeg error code
|
static int |
fourCcToTag(String str)
Convert four CC string to an integer tag
|
static String |
getCodecName(org.bytedeco.ffmpeg.avformat.AVFormatContext context,
int index) |
static org.bytedeco.ffmpeg.avformat.AVStream |
getDataStream(org.bytedeco.ffmpeg.avformat.AVFormatContext context) |
static int |
getDataStreamIndex(org.bytedeco.ffmpeg.avformat.AVFormatContext context) |
static double |
getDuration(org.bytedeco.ffmpeg.avformat.AVFormatContext context)
Get the file duration
|
static double |
getFrameRate(org.bytedeco.ffmpeg.avformat.AVFormatContext context)
Get the frame rate
|
static int |
getNumStreams(org.bytedeco.ffmpeg.avformat.AVFormatContext context) |
static int |
getStreamType(org.bytedeco.ffmpeg.avformat.AVFormatContext context,
int index) |
static org.bytedeco.ffmpeg.avformat.AVStream |
getVideoStream(org.bytedeco.ffmpeg.avformat.AVFormatContext context) |
static int |
getVideoStreamIndex(org.bytedeco.ffmpeg.avformat.AVFormatContext context) |
static String |
tagToFourCc(int i)
Convert 32-bit integer codec tag to a four CC string
|
public static String formatError(int error)
error - The error codepublic static org.bytedeco.ffmpeg.avformat.AVStream getVideoStream(org.bytedeco.ffmpeg.avformat.AVFormatContext context)
public static org.bytedeco.ffmpeg.avformat.AVStream getDataStream(org.bytedeco.ffmpeg.avformat.AVFormatContext context)
public static int getVideoStreamIndex(org.bytedeco.ffmpeg.avformat.AVFormatContext context)
public static int getDataStreamIndex(org.bytedeco.ffmpeg.avformat.AVFormatContext context)
public static String tagToFourCc(int i)
i - The codec tagpublic static int fourCcToTag(String str)
str - 4-character string with the four CCpublic static double getDuration(org.bytedeco.ffmpeg.avformat.AVFormatContext context)
context - The format contextpublic static double getFrameRate(org.bytedeco.ffmpeg.avformat.AVFormatContext context)
context - The format contextpublic static int getNumStreams(org.bytedeco.ffmpeg.avformat.AVFormatContext context)
public static int getStreamType(org.bytedeco.ffmpeg.avformat.AVFormatContext context,
int index)
public static String getCodecName(org.bytedeco.ffmpeg.avformat.AVFormatContext context, int index)
Copyright © 2019 West Ridge Systems. All rights reserved.