[FFmpeg-trac] #8708(avformat:new): dash demuxer cannot support rotation

FFmpeg trac at avcodec.org
Wed Jun 3 09:26:44 EEST 2020


#8708: dash demuxer cannot support rotation
----------------------------------+---------------------------------------
             Reporter:  kyh96403  |                     Type:  enhancement
               Status:  new       |                 Priority:  normal
            Component:  avformat  |                  Version:  git-master
             Keywords:            |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+---------------------------------------
 FFmpeg's dash demuxer is cannot transfer meta data..
 So mp4's rotation information is cannot support.

 libavformat/dashdec.c
 static int open_demux_for_component(AVFormatContext *s, struct
 representation *pls)
 {
     int ret = 0;
     int i;

     pls->parent = s;
     pls->cur_seq_no  = calc_cur_seg_no(s, pls);

     if (!pls->last_seq_no) {
         pls->last_seq_no = calc_max_seg_no(pls, s->priv_data);
     }

     ret = reopen_demux_for_component(s, pls);
     if (ret < 0) {
         goto fail;
     }
     for (i = 0; i < pls->ctx->nb_streams; i++) {
         AVStream *st = avformat_new_stream(s, NULL);
         AVStream *ist = pls->ctx->streams[i];
         if (!st) {
             ret = AVERROR(ENOMEM);
             goto fail;
         }
         st->id = i;
         avcodec_parameters_copy(st->codecpar, ist->codecpar);
         avpriv_set_pts_info(st, ist->pts_wrap_bits, ist->time_base.num,
 ist->time_base.den);
       av_dict_copy(&st->metadata, ist->metadata, 0); // added by K.Y.H
     }

     return 0;
 fail:
     return ret;
 }

 Please apply it^^

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8708>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list