Top |
GstCaps * gst_ffmpeg_codecid_to_caps (enum AVCodecID codec_id
,AVCodecContext *context
,gboolean encode
);
GstCaps * gst_ffmpeg_codectype_to_audio_caps (AVCodecContext *context
,enum AVCodecID codec_id
,gboolean encode
,AVCodec *codec
);
GstCaps * gst_ffmpeg_codectype_to_video_caps (AVCodecContext *context
,enum AVCodecID codec_id
,gboolean encode
,AVCodec *codec
);
enum AVCodecID gst_ffmpeg_caps_to_codecid (const GstCaps *caps
,AVCodecContext *context
);
void gst_ffmpeg_caps_with_codecid (enum AVCodecID codec_id
,enum AVMediaType codec_type
,const GstCaps *caps
,AVCodecContext *context
);
void gst_ffmpeg_caps_with_codectype (enum AVMediaType type
,const GstCaps *caps
,AVCodecContext *context
);
void gst_ffmpeg_videoinfo_to_context (GstVideoInfo *info
,AVCodecContext *context
);
void gst_ffmpeg_audioinfo_to_context (GstAudioInfo *info
,AVCodecContext *context
);
GstVideoFormat
gst_ffmpeg_pixfmt_to_videoformat (enum AVPixelFormat pixfmt
);
enum AVPixelFormat
gst_ffmpeg_videoformat_to_pixfmt (GstVideoFormat format
);
GstAudioFormat
gst_ffmpeg_smpfmt_to_audioformat (enum AVSampleFormat sample_fmt
);
gboolean gst_ffmpeg_formatid_get_codecids (const gchar *format_name
,enum AVCodecID **video_codec_list
,enum AVCodecID **audio_codec_list
,AVOutputFormat *plugin
);
gboolean gst_ffmpeg_channel_layout_to_gst (guint64 channel_layout
,gint channels
,GstAudioChannelPosition *pos
);
This setting instructs libav on how strictly it should follow the associated standard.
From avcodec.h: Setting this to STRICT or higher means the encoder and decoder will generally do stupid things, whereas setting it to unofficial or lower will mean the encoder might produce output that is not supported by all spec-compliant decoders. Decoders don't differentiate between normal, unofficial and experimental (that is, they always try to decode things when they can) unless they are explicitly asked to behave stupidly (=strictly conform to the specs)