Skip to content

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

Description

@601630051

测试视频文件 链接: 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
	}

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions