Skip to content
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

bug: avutil.CopyFile not ok for for xxx.ts input file #113

Open
fastfading opened this issue May 27, 2020 · 1 comment
Open

bug: avutil.CopyFile not ok for for xxx.ts input file #113

fastfading opened this issue May 27, 2020 · 1 comment

Comments

@fastfading
Copy link

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
Copy link
Author

fastfading commented Jul 2, 2020

image

image
this will happen when there are 2 I frame in ts
each I frame in different ts packet
seems not work well in multi-slice mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant