private static double av_q2d(FFmpeg.AVRational a) { return (double)a.num / (double)a.den; }
public static extern FFmpeg.CodecID av_guess_codec(IntPtr pAVOutoutFormat, [MarshalAs(UnmanagedType.LPTStr)] string short_name, [MarshalAs(UnmanagedType.LPTStr)] string filename, [MarshalAs(UnmanagedType.LPTStr)] string mime_type, FFmpeg.CodecType type);
public static extern int av_get_bits_per_sample(FFmpeg.CodecID codec_id);
public static extern uint avcodec_pix_fmt_to_codec_tag(FFmpeg.PixelFormat p);
public static extern IntPtr avcodec_find_encoder(FFmpeg.CodecID id);
public static extern FFmpeg.PixelFormat avcodec_default_get_format(IntPtr pAVCodecContext, ref FFmpeg.PixelFormat fmt);