if (ret != 0) {
throw new ResourceUnavailableException("av_open_input_file failed: " + ret); // Couldn't open file
}
formatCtx = new AVFormatContext(ppFormatCtx.getValue());
//System.out.println(new String(formatCtx.filename));
// Retrieve stream information
if (AVFORMAT.av_find_stream_info(formatCtx) < 0)