[FFmpeg-user] Quicktime Files create with -vtag aivx

Michael Niedermayer michaelni at gmx.at
Mon Dec 8 04:57:29 CET 2014


On Sat, Dec 06, 2014 at 02:20:38AM +0100, Rens Dijkshoorn wrote:
> 
> 
> ----- Original Message -----
> > From: "Carl Eugen Hoyos" <cehoyos at ag.or.at>
> > To: ffmpeg-user at ffmpeg.org
> > Sent: Saturday, 6 December, 2014 01:38:27
> > Subject: Re: [FFmpeg-user] Quicktime Files create with -vtag aivx
> 
> > Rens Dijkshoorn <rens <at> offlinemedia.nl> writes:
> 
> > > For autoselect the correct -vtag an extra
> > > condition is needed in movenc.c
> 
> > Will you send a patch?
> 
> > Thank you, Carl Eugen
> 
> This will work, but i'am not really a programmer.
> There might be a better way to achieve this.
> 
> 
> diff --git a/libavformat/movenc.c b/libavformat/movenc.c
> index 10e883c..2321748 100644
> --- a/libavformat/movenc.c
> +++ b/libavformat/movenc.c
> @@ -1279,7 +1279,8 @@ static int mov_get_h264_codec_tag(AVFormatContext *s, MOVTrack *track)
>                  else if (rate == 60) tag = MKTAG('a','i','1','6');
>              }
>          } else if (   track->enc->width == 4096 && track->enc->height == 2160
> -                   || track->enc->width == 3840 && track->enc->height == 2160) {
> +                   || track->enc->width == 3840 && track->enc->height == 2160
> +                   || track->enc->width == 2048 && track->enc->height == 1080) {
>              tag = MKTAG('a','i','v','x');
>          }

patch applied

thanks


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

it is not once nor twice but times without number that the same ideas make
their appearance in the world. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20141208/d1524493/attachment.asc>


More information about the ffmpeg-user mailing list