-
Notifications
You must be signed in to change notification settings - Fork 149
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
使用 mp4clip 的 API clip.tick(0) 获取第0s画面和本地播放器第0s画面不一致 #348
Labels
bug
Something isn't working
Comments
@hughfenghen |
为了隔离对 demuxer 的依赖,直接提供二进制数据了 MP4Clip提供新方法(getFileHeaderBinData)获取文件 header(ftyp, moov)数据 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
描述问题
我用下面提到的这段代码来切割视频,使用了‘-c copy’参数,目的是为了加快切割视频的速度。
但现在遇到一个问题,比如视频时长为7s,我从视频第3s开始截取,截取4s时长,
将上面切割后的结果视频,通过fetch方式获取后,MP4Clip 的api mp4Clip.tick(0)得到的视频帧是从原视频的第0秒开始播放的,但应该是要从原视频的第3s开始播放才对。
我也用本地播放器试了下,视频就是从原视频第3s开始播放,是对的。
复现步骤
重现问题的步骤:
期望行为
使用mp4clip,可以拿到切割后的结果视频的第一帧(对应原视频的第3s的画面)。
在我们的场景里,使用‘-c copy’参数必须保留(目的是为了加快切割视频的速度)。
视频文件[可选]
test.zip
环境信息
The text was updated successfully, but these errors were encountered: