Closed rbouqueau closed 10 years ago
Updated by kevingoodluck on 2013-01-18 06:18 UTC
Commented by jeanlf on 2013-01-18 09:00 UTC This is not a bug report, please post in the forum if you want to discuss about the dashing algo.
Updated by jeanlf on 2013-01-18 09:00 UTC
Reported by kevingoodluck on 2013-01-18 05:06 UTC Hi : I have two questions about gpac part, thanks! The first questions is : static GF_Err dasher_mp2t_get_components_info(GF_DashSegInput dash_input, GF_DASHSegmenterOptions opts) { GF_TSSegmenter ts_seg; GF_Err e = dasher_generic_get_components_info(dash_input, opts); if (e) return e;
e = dasher_get_ts_demux(&ts_seg, dash_input->file_name, 2); if (e) return e;
dash_input->duration = (ts_seg.last_PTS + ts_seg.last_frame_duration - ts_seg.first_PTS)/90000.0; dasher_del_ts_demux(&ts_seg);
return GF_OK; }
I want to know why use this "dash_input->duration = (ts_seg.last_PTS + ts_seg.last_frame_duration - ts_seg.first_PTS)/90000.0;" to calculate the duration ??? The dash spec do not say this !!
The other quesitions is : in media_import.c --> void on_m2ts_import_data(GF_M2TS_Demuxer ts, u32 evt_type, void par) sprintf(import->tk_info[i].szCodecProfile, "avc1.%02x%02x%02x", (u8) pck->data[5], (u8) pck->data[6], (u8) pck->data[7]);
what's the pck->data[5], pck->data[6], pck->data[7] response for ? can you tell me the struct about this ? Thanks!