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

请教使用libmov封装FMP4文件,VLC可以播放,但是无法快进到指定位置,是什么原因呢? #362

Open
arnold0kang opened this issue Nov 15, 2024 · 4 comments

Comments

@arnold0kang
Copy link

请教一下,我使用的是fmp4相关的函数接口
第一步, fmp4_writer_create(mov_file_buffer(), fp, 0);
第二步, fmp4_writer_add_video(mov, MOV_OBJECT_H264, 2560, 1440, NULL, 0);
第三步, fmp4_writer_write ,循环写入H264
第四步,fmp4_writer_destroy(mov);
文件能够使用ffplay和vlc播放,但是不能seek,快进到指定位置,这是什么原因呢?

@ireader
Copy link
Owner

ireader commented Nov 16, 2024

fmp4相比普通mp4,缺少了关键帧索引信息,所以vlc不能拖动。

@arnold0kang
Copy link
Author

非常感谢,看来最好还是用MP4格式

@lcflyr
Copy link

lcflyr commented Nov 19, 2024

fmp4适合用来直播的

@zozobreakzou
Copy link

fmp4相比普通mp4,缺少了关键帧索引信息,所以vlc不能拖动。

flv也没有关键帧索引,请问为啥能拖动seek呢

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

4 participants