-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mp4 edts media time info is incorrect #1441
Comments
media_time is still in media time scale units, and the media time scale is sample rate in this case, so media_time equals to sample_number / sample_rate. |
quink-black
added a commit
to quink-black/MediaInfoLib
that referenced
this issue
Oct 19, 2021
1. Media time is signed value 2. Media time is in unit of mdhd time scale. Since mdhd comes after edts, we don't know mdhd_TimeScale yet when handle edts. Give a hint to user on which time scale to use. Fix MediaArea#1441
quink-black
added a commit
to quink-black/MediaInfoLib
that referenced
this issue
Oct 20, 2021
1. Media time is signed value 2. Media time is in unit of mdhd time scale. Since mdhd comes after edts, we don't know mdhd_TimeScale yet when handle edts. Give a hint to user on which time scale to use. Fix MediaArea#1441
JeromeMartinez
pushed a commit
to JeromeMartinez/MediaInfoLib
that referenced
this issue
Oct 27, 2021
1. Media time is signed value 2. Media time is in unit of mdhd time scale. Since mdhd comes after edts, we don't know mdhd_TimeScale yet when handle edts. Give a hint to user on which time scale to use. Fix MediaArea#1441
Looks like that it would be better to support |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
int(64) media_time
orint(32) media_time
. There is a special value -1. MediaInfoLib handled it as unsigned:Current code use
moov_mvhd_TimeScale
for media_time, which should beStreams[moov_trak_tkhd_TrackID].mdhd_TimeScale
. However, since mdhd comes after edts, we don't know mdhd_TimeScale yet when handle edts. The following patch doesn't work:The text was updated successfully, but these errors were encountered: