bug: avutil.CopyFile not ok for for xxx.ts input file
fastfading opened this issue · 1 comments
fastfading commented
func Mp4Mux(srcFile, dstFile string) {
demuxer, err := avutil.Open(srcFile)
if err != nil {
log.Fatalln(" srcFile:", srcFile, "error", err)
}
defer demuxer.Close()
muxer, _ := avutil.Create(dstFile)
defer muxer.Close()
// CopyFile(muxer, demuxer)
avutil.CopyFile(muxer, demuxer)
}
this is ok for mp4 file , but not ok for for xxx.ts input file.
output file can not be played
fastfading commented