Commit fb42d156 authored by Anton Khirnov's avatar Anton Khirnov

movenc: use libx264 by default when possible for mov, mp4 and psp

parent b71389cb
...@@ -2343,7 +2343,11 @@ AVOutputFormat ff_mov_muxer = { ...@@ -2343,7 +2343,11 @@ AVOutputFormat ff_mov_muxer = {
.extensions = "mov", .extensions = "mov",
.priv_data_size = sizeof(MOVMuxContext), .priv_data_size = sizeof(MOVMuxContext),
.audio_codec = CODEC_ID_AAC, .audio_codec = CODEC_ID_AAC,
#if CONFIG_LIBX264_ENCODER
.video_codec = CODEC_ID_H264,
#else
.video_codec = CODEC_ID_MPEG4, .video_codec = CODEC_ID_MPEG4,
#endif
.write_header = mov_write_header, .write_header = mov_write_header,
.write_packet = ff_mov_write_packet, .write_packet = ff_mov_write_packet,
.write_trailer = mov_write_trailer, .write_trailer = mov_write_trailer,
...@@ -2376,7 +2380,11 @@ AVOutputFormat ff_mp4_muxer = { ...@@ -2376,7 +2380,11 @@ AVOutputFormat ff_mp4_muxer = {
.extensions = "mp4", .extensions = "mp4",
.priv_data_size = sizeof(MOVMuxContext), .priv_data_size = sizeof(MOVMuxContext),
.audio_codec = CODEC_ID_AAC, .audio_codec = CODEC_ID_AAC,
#if CONFIG_LIBX264_ENCODER
.video_codec = CODEC_ID_H264,
#else
.video_codec = CODEC_ID_MPEG4, .video_codec = CODEC_ID_MPEG4,
#endif
.write_header = mov_write_header, .write_header = mov_write_header,
.write_packet = ff_mov_write_packet, .write_packet = ff_mov_write_packet,
.write_trailer = mov_write_trailer, .write_trailer = mov_write_trailer,
...@@ -2392,7 +2400,11 @@ AVOutputFormat ff_psp_muxer = { ...@@ -2392,7 +2400,11 @@ AVOutputFormat ff_psp_muxer = {
.extensions = "mp4,psp", .extensions = "mp4,psp",
.priv_data_size = sizeof(MOVMuxContext), .priv_data_size = sizeof(MOVMuxContext),
.audio_codec = CODEC_ID_AAC, .audio_codec = CODEC_ID_AAC,
#if CONFIG_LIBX264_ENCODER
.video_codec = CODEC_ID_H264,
#else
.video_codec = CODEC_ID_MPEG4, .video_codec = CODEC_ID_MPEG4,
#endif
.write_header = mov_write_header, .write_header = mov_write_header,
.write_packet = ff_mov_write_packet, .write_packet = ff_mov_write_packet,
.write_trailer = mov_write_trailer, .write_trailer = mov_write_trailer,
......
...@@ -87,7 +87,7 @@ do_lavf flv -an ...@@ -87,7 +87,7 @@ do_lavf flv -an
fi fi
if [ -n "$do_mov" ] ; then if [ -n "$do_mov" ] ; then
do_lavf mov "-acodec pcm_alaw" do_lavf mov "-acodec pcm_alaw -c:v mpeg4"
fi fi
if [ -n "$do_dv_fmt" ] ; then if [ -n "$do_dv_fmt" ] ; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment