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

mp4文件推送到rtmp,文件读取失败 #164

Open
601630051 opened this issue Dec 28, 2024 · 0 comments
Open

mp4文件推送到rtmp,文件读取失败 #164

601630051 opened this issue Dec 28, 2024 · 0 comments

Comments

@601630051
Copy link

测试视频文件 链接: https://pan.baidu.com/s/1OyIEi0CYDcO1BWdoewuoBQ?pwd=dnd9 提取码: dnd9 复制这段内容后打开百度网盘手机App,操作更方便哦

我用的是example_mp4_to_rtmp_server.go 这个测试例子
./your_mp4_dir/5.mp4
头文件:[{Duration:278960 TrackId:1 Cid:2 Height:480 Width:720 SampleRate:0 SampleSize:0 SampleCount:6974 ChannelCount:0 Timescale:12800 StartDts:0 EndDts:278920} {Duration:278015 TrackId:2 Cid:102 Height:0 Width:0 SampleRate:44100 SampleSize:16 SampleCount:11911 ChannelCount:2 Timescale:44100 StartDts:0 EndDts:278011}]
mp4文件:{MajorBrand:1836020585 MinorVersion:512 CompatibleBrands:[1836020585 846164841 825520237] Duration:278960 Timescale:1000 CreateTime:0 ModifyTime:0}
读的包错误: EOF

for {
	pkg, err := demuxer.ReadPacket()
	if err != nil {
		fmt.Println("读的包错误:", err)
		break
	}

这里出错了。没搞懂这个文件无法解析

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