mirror of https://git.ffmpeg.org/ffmpeg.git
hlsenc: Set the default codecs to AAC and H264
Most HLS implementation only support these codecs. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
4d25c2bc76
commit
34e2ce5dde
|
@ -342,8 +342,8 @@ AVOutputFormat ff_hls_muxer = {
|
||||||
.long_name = NULL_IF_CONFIG_SMALL("Apple HTTP Live Streaming"),
|
.long_name = NULL_IF_CONFIG_SMALL("Apple HTTP Live Streaming"),
|
||||||
.extensions = "m3u8",
|
.extensions = "m3u8",
|
||||||
.priv_data_size = sizeof(HLSContext),
|
.priv_data_size = sizeof(HLSContext),
|
||||||
.audio_codec = AV_CODEC_ID_MP2,
|
.audio_codec = AV_CODEC_ID_AAC,
|
||||||
.video_codec = AV_CODEC_ID_MPEG2VIDEO,
|
.video_codec = AV_CODEC_ID_H264,
|
||||||
.flags = AVFMT_NOFILE | AVFMT_ALLOW_FLUSH,
|
.flags = AVFMT_NOFILE | AVFMT_ALLOW_FLUSH,
|
||||||
.write_header = hls_write_header,
|
.write_header = hls_write_header,
|
||||||
.write_packet = hls_write_packet,
|
.write_packet = hls_write_packet,
|
||||||
|
|
Loading…
Reference in New Issue