We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
如何将h264流或者h264文件封装成flv,没看到怎样获取h264的pts和dts 新手问题
The text was updated successfully, but these errors were encountered:
裸 264 流是不包含 pts 和 dts 的,你要手动生成
Sorry, something went wrong.
封装flv的粗略写法,没见flv里面有script tag,是哪一步有问题吗
flvWriter.WriteHeader() for { time.Sleep(time.Millisecond * 1) select { case Payload, _ := <-StreamProvider.GetDataChan(): frame := calculatePtsDts(Payload) flvWriter.WriteH264(Payload, frame.Pts, frame.Dts) default: } }
裸 264 流是不包含 pts 和 dts 的,你要手动生成 封装flv的粗略写法,没见flv里面有script tag,是哪一步有问题吗 flvWriter.WriteHeader() for { time.Sleep(time.Millisecond * 1) select { case Payload, _ := <-StreamProvider.GetDataChan(): frame := calculatePtsDts(Payload) flvWriter.WriteH264(Payload, frame.Pts, frame.Dts) default: } }
gomedia 还不支持写script tag
No branches or pull requests
如何将h264流或者h264文件封装成flv,没看到怎样获取h264的pts和dts 新手问题
The text was updated successfully, but these errors were encountered: