Opened 4 years ago

Closed 4 years ago

#8708 closed enhancement (needs_more_info)

dash demuxer cannot support rotation

Reported by: K.Y.H Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: dash
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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

Attachments (1)

dashdec.diff (361 bytes ) - added by K.Y.H 4 years ago.

Download all attachments as: .zip

Change History (2)

comment:1 by Carl Eugen Hoyos, 4 years ago

Keywords: dash added
Resolution: needs_more_info
Status: newclosed

Please send your patch - made with git format-patch - to the FFmpeg development mailing list, patches are ignored on this bug tracker.

If you want to report a bug please test current FFmpeg git head and provide the command line you tested together with the complete, uncut console output to make this a valid ticket.

by K.Y.H, 4 years ago

Attachment: dashdec.diff added
Note: See TracTickets for help on using tickets.