|
|
@ -34,195 +34,163 @@ int ff_raw_write_packet(AVFormatContext *s, AVPacket *pkt) |
|
|
|
|
|
|
|
|
|
|
|
#if CONFIG_AC3_MUXER |
|
|
|
#if CONFIG_AC3_MUXER |
|
|
|
AVOutputFormat ff_ac3_muxer = { |
|
|
|
AVOutputFormat ff_ac3_muxer = { |
|
|
|
"ac3", |
|
|
|
.name = "ac3", |
|
|
|
NULL_IF_CONFIG_SMALL("raw AC-3"), |
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("raw AC-3"), |
|
|
|
"audio/x-ac3", |
|
|
|
.mime_type = "audio/x-ac3", |
|
|
|
"ac3", |
|
|
|
.extensions = "ac3", |
|
|
|
0, |
|
|
|
.audio_codec = CODEC_ID_AC3, |
|
|
|
CODEC_ID_AC3, |
|
|
|
.video_codec = CODEC_ID_NONE, |
|
|
|
CODEC_ID_NONE, |
|
|
|
.write_packet = ff_raw_write_packet, |
|
|
|
NULL, |
|
|
|
|
|
|
|
ff_raw_write_packet, |
|
|
|
|
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
}; |
|
|
|
}; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if CONFIG_DIRAC_MUXER |
|
|
|
#if CONFIG_DIRAC_MUXER |
|
|
|
AVOutputFormat ff_dirac_muxer = { |
|
|
|
AVOutputFormat ff_dirac_muxer = { |
|
|
|
"dirac", |
|
|
|
.name = "dirac", |
|
|
|
NULL_IF_CONFIG_SMALL("raw Dirac"), |
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("raw Dirac"), |
|
|
|
NULL, |
|
|
|
.extensions = "drc", |
|
|
|
"drc", |
|
|
|
.audio_codec = CODEC_ID_NONE, |
|
|
|
0, |
|
|
|
.video_codec = CODEC_ID_DIRAC, |
|
|
|
CODEC_ID_NONE, |
|
|
|
.write_packet = ff_raw_write_packet, |
|
|
|
CODEC_ID_DIRAC, |
|
|
|
|
|
|
|
NULL, |
|
|
|
|
|
|
|
ff_raw_write_packet, |
|
|
|
|
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
}; |
|
|
|
}; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if CONFIG_DNXHD_MUXER |
|
|
|
#if CONFIG_DNXHD_MUXER |
|
|
|
AVOutputFormat ff_dnxhd_muxer = { |
|
|
|
AVOutputFormat ff_dnxhd_muxer = { |
|
|
|
"dnxhd", |
|
|
|
.name = "dnxhd", |
|
|
|
NULL_IF_CONFIG_SMALL("raw DNxHD (SMPTE VC-3)"), |
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("raw DNxHD (SMPTE VC-3)"), |
|
|
|
NULL, |
|
|
|
.extensions = "dnxhd", |
|
|
|
"dnxhd", |
|
|
|
.audio_codec = CODEC_ID_NONE, |
|
|
|
0, |
|
|
|
.video_codec = CODEC_ID_DNXHD, |
|
|
|
CODEC_ID_NONE, |
|
|
|
.write_packet = ff_raw_write_packet, |
|
|
|
CODEC_ID_DNXHD, |
|
|
|
|
|
|
|
NULL, |
|
|
|
|
|
|
|
ff_raw_write_packet, |
|
|
|
|
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
}; |
|
|
|
}; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if CONFIG_DTS_MUXER |
|
|
|
#if CONFIG_DTS_MUXER |
|
|
|
AVOutputFormat ff_dts_muxer = { |
|
|
|
AVOutputFormat ff_dts_muxer = { |
|
|
|
"dts", |
|
|
|
.name = "dts", |
|
|
|
NULL_IF_CONFIG_SMALL("raw DTS"), |
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("raw DTS"), |
|
|
|
"audio/x-dca", |
|
|
|
.mime_type = "audio/x-dca", |
|
|
|
"dts", |
|
|
|
.extensions = "dts", |
|
|
|
0, |
|
|
|
.audio_codec = CODEC_ID_DTS, |
|
|
|
CODEC_ID_DTS, |
|
|
|
.video_codec = CODEC_ID_NONE, |
|
|
|
CODEC_ID_NONE, |
|
|
|
.write_packet = ff_raw_write_packet, |
|
|
|
NULL, |
|
|
|
|
|
|
|
ff_raw_write_packet, |
|
|
|
|
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
}; |
|
|
|
}; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if CONFIG_EAC3_MUXER |
|
|
|
#if CONFIG_EAC3_MUXER |
|
|
|
AVOutputFormat ff_eac3_muxer = { |
|
|
|
AVOutputFormat ff_eac3_muxer = { |
|
|
|
"eac3", |
|
|
|
.name = "eac3", |
|
|
|
NULL_IF_CONFIG_SMALL("raw E-AC-3"), |
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("raw E-AC-3"), |
|
|
|
"audio/x-eac3", |
|
|
|
.mime_type = "audio/x-eac3", |
|
|
|
"eac3", |
|
|
|
.extensions = "eac3", |
|
|
|
0, |
|
|
|
.audio_codec = CODEC_ID_EAC3, |
|
|
|
CODEC_ID_EAC3, |
|
|
|
.video_codec = CODEC_ID_NONE, |
|
|
|
CODEC_ID_NONE, |
|
|
|
.write_packet = ff_raw_write_packet, |
|
|
|
NULL, |
|
|
|
|
|
|
|
ff_raw_write_packet, |
|
|
|
|
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
}; |
|
|
|
}; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if CONFIG_G722_MUXER |
|
|
|
#if CONFIG_G722_MUXER |
|
|
|
AVOutputFormat ff_g722_muxer = { |
|
|
|
AVOutputFormat ff_g722_muxer = { |
|
|
|
"g722", |
|
|
|
.name = "g722", |
|
|
|
NULL_IF_CONFIG_SMALL("raw G.722"), |
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("raw G.722"), |
|
|
|
"audio/G722", |
|
|
|
.mime_type = "audio/G722", |
|
|
|
"g722", |
|
|
|
.extensions = "g722", |
|
|
|
0, |
|
|
|
.audio_codec = CODEC_ID_ADPCM_G722, |
|
|
|
CODEC_ID_ADPCM_G722, |
|
|
|
.video_codec = CODEC_ID_NONE, |
|
|
|
CODEC_ID_NONE, |
|
|
|
.write_packet = ff_raw_write_packet, |
|
|
|
NULL, |
|
|
|
|
|
|
|
ff_raw_write_packet, |
|
|
|
|
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
}; |
|
|
|
}; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if CONFIG_H261_MUXER |
|
|
|
#if CONFIG_H261_MUXER |
|
|
|
AVOutputFormat ff_h261_muxer = { |
|
|
|
AVOutputFormat ff_h261_muxer = { |
|
|
|
"h261", |
|
|
|
.name = "h261", |
|
|
|
NULL_IF_CONFIG_SMALL("raw H.261"), |
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("raw H.261"), |
|
|
|
"video/x-h261", |
|
|
|
.mime_type = "video/x-h261", |
|
|
|
"h261", |
|
|
|
.extensions = "h261", |
|
|
|
0, |
|
|
|
.audio_codec = CODEC_ID_NONE, |
|
|
|
CODEC_ID_NONE, |
|
|
|
.video_codec = CODEC_ID_H261, |
|
|
|
CODEC_ID_H261, |
|
|
|
.write_packet = ff_raw_write_packet, |
|
|
|
NULL, |
|
|
|
|
|
|
|
ff_raw_write_packet, |
|
|
|
|
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
}; |
|
|
|
}; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if CONFIG_H263_MUXER |
|
|
|
#if CONFIG_H263_MUXER |
|
|
|
AVOutputFormat ff_h263_muxer = { |
|
|
|
AVOutputFormat ff_h263_muxer = { |
|
|
|
"h263", |
|
|
|
.name = "h263", |
|
|
|
NULL_IF_CONFIG_SMALL("raw H.263"), |
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("raw H.263"), |
|
|
|
"video/x-h263", |
|
|
|
.mime_type = "video/x-h263", |
|
|
|
"h263", |
|
|
|
.extensions = "h263", |
|
|
|
0, |
|
|
|
.audio_codec = CODEC_ID_NONE, |
|
|
|
CODEC_ID_NONE, |
|
|
|
.video_codec = CODEC_ID_H263, |
|
|
|
CODEC_ID_H263, |
|
|
|
.write_packet = ff_raw_write_packet, |
|
|
|
NULL, |
|
|
|
|
|
|
|
ff_raw_write_packet, |
|
|
|
|
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
}; |
|
|
|
}; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if CONFIG_H264_MUXER |
|
|
|
#if CONFIG_H264_MUXER |
|
|
|
AVOutputFormat ff_h264_muxer = { |
|
|
|
AVOutputFormat ff_h264_muxer = { |
|
|
|
"h264", |
|
|
|
.name = "h264", |
|
|
|
NULL_IF_CONFIG_SMALL("raw H.264 video format"), |
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("raw H.264 video format"), |
|
|
|
NULL, |
|
|
|
.extensions = "h264", |
|
|
|
"h264", |
|
|
|
.audio_codec = CODEC_ID_NONE, |
|
|
|
0, |
|
|
|
.video_codec = CODEC_ID_H264, |
|
|
|
CODEC_ID_NONE, |
|
|
|
.write_packet = ff_raw_write_packet, |
|
|
|
CODEC_ID_H264, |
|
|
|
|
|
|
|
NULL, |
|
|
|
|
|
|
|
ff_raw_write_packet, |
|
|
|
|
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
}; |
|
|
|
}; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if CONFIG_CAVSVIDEO_MUXER |
|
|
|
#if CONFIG_CAVSVIDEO_MUXER |
|
|
|
AVOutputFormat ff_cavsvideo_muxer = { |
|
|
|
AVOutputFormat ff_cavsvideo_muxer = { |
|
|
|
"cavsvideo", |
|
|
|
.name = "cavsvideo", |
|
|
|
NULL_IF_CONFIG_SMALL("raw Chinese AVS video"), |
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("raw Chinese AVS video"), |
|
|
|
NULL, |
|
|
|
.extensions = "cavs", |
|
|
|
"cavs", |
|
|
|
.audio_codec = CODEC_ID_NONE, |
|
|
|
0, |
|
|
|
.video_codec = CODEC_ID_CAVS, |
|
|
|
CODEC_ID_NONE, |
|
|
|
.write_packet = ff_raw_write_packet, |
|
|
|
CODEC_ID_CAVS, |
|
|
|
|
|
|
|
NULL, |
|
|
|
|
|
|
|
ff_raw_write_packet, |
|
|
|
|
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
}; |
|
|
|
}; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if CONFIG_M4V_MUXER |
|
|
|
#if CONFIG_M4V_MUXER |
|
|
|
AVOutputFormat ff_m4v_muxer = { |
|
|
|
AVOutputFormat ff_m4v_muxer = { |
|
|
|
"m4v", |
|
|
|
.name = "m4v", |
|
|
|
NULL_IF_CONFIG_SMALL("raw MPEG-4 video format"), |
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("raw MPEG-4 video format"), |
|
|
|
NULL, |
|
|
|
.extensions = "m4v", |
|
|
|
"m4v", |
|
|
|
.audio_codec = CODEC_ID_NONE, |
|
|
|
0, |
|
|
|
.video_codec = CODEC_ID_MPEG4, |
|
|
|
CODEC_ID_NONE, |
|
|
|
.write_packet = ff_raw_write_packet, |
|
|
|
CODEC_ID_MPEG4, |
|
|
|
|
|
|
|
NULL, |
|
|
|
|
|
|
|
ff_raw_write_packet, |
|
|
|
|
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
}; |
|
|
|
}; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if CONFIG_MJPEG_MUXER |
|
|
|
#if CONFIG_MJPEG_MUXER |
|
|
|
AVOutputFormat ff_mjpeg_muxer = { |
|
|
|
AVOutputFormat ff_mjpeg_muxer = { |
|
|
|
"mjpeg", |
|
|
|
.name = "mjpeg", |
|
|
|
NULL_IF_CONFIG_SMALL("raw MJPEG video"), |
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("raw MJPEG video"), |
|
|
|
"video/x-mjpeg", |
|
|
|
.mime_type = "video/x-mjpeg", |
|
|
|
"mjpg,mjpeg", |
|
|
|
.extensions = "mjpg,mjpeg", |
|
|
|
0, |
|
|
|
.audio_codec = CODEC_ID_NONE, |
|
|
|
CODEC_ID_NONE, |
|
|
|
.video_codec = CODEC_ID_MJPEG, |
|
|
|
CODEC_ID_MJPEG, |
|
|
|
.write_packet = ff_raw_write_packet, |
|
|
|
NULL, |
|
|
|
|
|
|
|
ff_raw_write_packet, |
|
|
|
|
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
}; |
|
|
|
}; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if CONFIG_MLP_MUXER |
|
|
|
#if CONFIG_MLP_MUXER |
|
|
|
AVOutputFormat ff_mlp_muxer = { |
|
|
|
AVOutputFormat ff_mlp_muxer = { |
|
|
|
"mlp", |
|
|
|
.name = "mlp", |
|
|
|
NULL_IF_CONFIG_SMALL("raw MLP"), |
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("raw MLP"), |
|
|
|
NULL, |
|
|
|
.extensions = "mlp", |
|
|
|
"mlp", |
|
|
|
.audio_codec = CODEC_ID_MLP, |
|
|
|
0, |
|
|
|
.video_codec = CODEC_ID_NONE, |
|
|
|
CODEC_ID_MLP, |
|
|
|
.write_packet = ff_raw_write_packet, |
|
|
|
CODEC_ID_NONE, |
|
|
|
|
|
|
|
NULL, |
|
|
|
|
|
|
|
ff_raw_write_packet, |
|
|
|
|
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
}; |
|
|
|
}; |
|
|
|
#endif |
|
|
|
#endif |
|
|
@ -241,60 +209,49 @@ AVOutputFormat ff_srt_muxer = { |
|
|
|
|
|
|
|
|
|
|
|
#if CONFIG_TRUEHD_MUXER |
|
|
|
#if CONFIG_TRUEHD_MUXER |
|
|
|
AVOutputFormat ff_truehd_muxer = { |
|
|
|
AVOutputFormat ff_truehd_muxer = { |
|
|
|
"truehd", |
|
|
|
.name = "truehd", |
|
|
|
NULL_IF_CONFIG_SMALL("raw TrueHD"), |
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("raw TrueHD"), |
|
|
|
NULL, |
|
|
|
.extensions = "thd", |
|
|
|
"thd", |
|
|
|
.audio_codec = CODEC_ID_TRUEHD, |
|
|
|
0, |
|
|
|
.video_codec = CODEC_ID_NONE, |
|
|
|
CODEC_ID_TRUEHD, |
|
|
|
.write_packet = ff_raw_write_packet, |
|
|
|
CODEC_ID_NONE, |
|
|
|
|
|
|
|
NULL, |
|
|
|
|
|
|
|
ff_raw_write_packet, |
|
|
|
|
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
}; |
|
|
|
}; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if CONFIG_MPEG1VIDEO_MUXER |
|
|
|
#if CONFIG_MPEG1VIDEO_MUXER |
|
|
|
AVOutputFormat ff_mpeg1video_muxer = { |
|
|
|
AVOutputFormat ff_mpeg1video_muxer = { |
|
|
|
"mpeg1video", |
|
|
|
.name = "mpeg1video", |
|
|
|
NULL_IF_CONFIG_SMALL("raw MPEG-1 video"), |
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("raw MPEG-1 video"), |
|
|
|
"video/x-mpeg", |
|
|
|
.mime_type = "video/x-mpeg", |
|
|
|
"mpg,mpeg,m1v", |
|
|
|
.extensions = "mpg,mpeg,m1v", |
|
|
|
0, |
|
|
|
.audio_codec = CODEC_ID_NONE, |
|
|
|
CODEC_ID_NONE, |
|
|
|
.video_codec = CODEC_ID_MPEG1VIDEO, |
|
|
|
CODEC_ID_MPEG1VIDEO, |
|
|
|
.write_packet = ff_raw_write_packet, |
|
|
|
NULL, |
|
|
|
|
|
|
|
ff_raw_write_packet, |
|
|
|
|
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
}; |
|
|
|
}; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if CONFIG_MPEG2VIDEO_MUXER |
|
|
|
#if CONFIG_MPEG2VIDEO_MUXER |
|
|
|
AVOutputFormat ff_mpeg2video_muxer = { |
|
|
|
AVOutputFormat ff_mpeg2video_muxer = { |
|
|
|
"mpeg2video", |
|
|
|
.name = "mpeg2video", |
|
|
|
NULL_IF_CONFIG_SMALL("raw MPEG-2 video"), |
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("raw MPEG-2 video"), |
|
|
|
NULL, |
|
|
|
.extensions = "m2v", |
|
|
|
"m2v", |
|
|
|
.audio_codec = CODEC_ID_NONE, |
|
|
|
0, |
|
|
|
.video_codec = CODEC_ID_MPEG2VIDEO, |
|
|
|
CODEC_ID_NONE, |
|
|
|
.write_packet = ff_raw_write_packet, |
|
|
|
CODEC_ID_MPEG2VIDEO, |
|
|
|
|
|
|
|
NULL, |
|
|
|
|
|
|
|
ff_raw_write_packet, |
|
|
|
|
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
}; |
|
|
|
}; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if CONFIG_RAWVIDEO_MUXER |
|
|
|
#if CONFIG_RAWVIDEO_MUXER |
|
|
|
AVOutputFormat ff_rawvideo_muxer = { |
|
|
|
AVOutputFormat ff_rawvideo_muxer = { |
|
|
|
"rawvideo", |
|
|
|
.name = "rawvideo", |
|
|
|
NULL_IF_CONFIG_SMALL("raw video format"), |
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("raw video format"), |
|
|
|
NULL, |
|
|
|
.extensions = "yuv,rgb", |
|
|
|
"yuv,rgb", |
|
|
|
.audio_codec = CODEC_ID_NONE, |
|
|
|
0, |
|
|
|
.video_codec = CODEC_ID_RAWVIDEO, |
|
|
|
CODEC_ID_NONE, |
|
|
|
.write_packet = ff_raw_write_packet, |
|
|
|
CODEC_ID_RAWVIDEO, |
|
|
|
|
|
|
|
NULL, |
|
|
|
|
|
|
|
ff_raw_write_packet, |
|
|
|
|
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
.flags= AVFMT_NOTIMESTAMPS, |
|
|
|
}; |
|
|
|
}; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|