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出现问题 #40

Open
Macrow opened this issue Aug 25, 2019 · 4 comments
Open

点播mp4出现问题 #40

Macrow opened this issue Aug 25, 2019 · 4 comments

Comments

@Macrow
Copy link

Macrow commented Aug 25, 2019

配置好点播,mp4文件不能点播,flv点播没有问题。

同样的设置,在mac下的nginx-rtmp,同样的mp4文件播放是没有问题的。

@Macrow Macrow changed the title 点播mp 点播mp4出现问题 Aug 25, 2019
@Macrow
Copy link
Author

Macrow commented Aug 25, 2019

2019/08/25 22:31:33 [error] 676#8892: *2 mp4: mmap failed at offset=31238824, size=348652 (1132: The base address or the file offset specified does not have the proper alignment)

这个是错误提示,在nginx的日志里面,找了半天也没找到原因,放一个flv文件就可以点播,不知道是不是这个windows的编译版本对mp4点播不支持?

@TKsHb
Copy link

TKsHb commented Jul 13, 2021

请问这个问题解决了吗,网上找了半天也就你跟我遇到了同样的问题

@Macrow
Copy link
Author

Macrow commented Jul 14, 2021

这个库作者已经没有维护了,我也不知道较好的解决办法。

你可以试一试用FFmpeg或其他工具生成mp4文件的metadata信息,放在头部。

@TKsHb
Copy link

TKsHb commented Jul 14, 2021

通过nginx的location规则代替rtmp点播方式了,不过还是谢谢你!

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

2 participants