You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you get a duration of zero, it may be because the defaultSampleDuration is set in the trex box in the init segment, and that the other durations are not set.
You may also find an mehd box inside the mvex box in the init segment which provides the total duration of the track.
If you have the defaultDuration properly set from trex and tfhd, you can call the function
package main
import (
"fmt"
"os"
)
func main() {
filename := "aa.mp4"
f, err := os.Open(filename)
if err != nil {
panic(err)
}
defer f.Close()
d, err := mp4.DecodeFile(f)
if err != nil {
panic(err)
}
}
The text was updated successfully, but these errors were encountered: