#6575: Bitrate Atom MP4 enhancement
-------------------------------------+-------------------------------------
             Reporter:  Mista_D      |                    Owner:
                 Type:  enhancement  |                   Status:  new
             Priority:  important    |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  btrt moov    |               Blocked By:
  mp4 mov                            |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by oscord):

 @line 1077

 +static int mov_write_btrt_tag(AVIOContext *pb, MOVTrack *track)
 +{
 +       AVCPBProperties *props;
 +       int64_t pos = avio_tell(pb);
 +       unsigned avg_bitrate;
 +       props = (AVCPBProperties*)av_stream_get_side_data(track->st,
 AV_PKT_DATA_CPB_PROPERTIES, NULL);
 +       avg_bitrate = compute_avg_bitrate(track);
 +
 +    avio_wb32(pb, 0);
 +    ffio_wfourcc(pb, "btrt");
 +    avio_wb32(pb, props ? props->buffer_size : 0);
 +    avio_wb32(pb, props ? FFMAX3(props->max_bitrate, props->avg_bitrate,
 avg_bitrate) : FFMAX(track->par->bit_rate, avg_bitrate));
 +    avio_wb32(pb, avg_bitrate);
 +       return update_size(pb, pos);
 +}


 @line 1939

         mov_write_avcc_tag(pb, track);
 +       mov_write_btrt_tag(pb, track);
         if (track->mode == MODE_IPOD)



 Use the cash for something good

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6575#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac

Reply via email to