当m3u8文件大于26.5小时后,如何在26.5小时后使用ffplay搜索 [英] How do I use ffplay seek after 26.5hour when the m3u8 file is big than 26.5hour

查看:199
本文介绍了当m3u8文件大于26.5小时后,如何在26.5小时后使用ffplay搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

细节是我每10秒通过ffmpeg将一个rtsp流保存到ts文件,它可能会持续很长时间(超过26.5小时),当它完成时,它将保存一个m3u8文件,之后,我使用ffplay播放然后m3u8文件,如果我想寻求26.7小时,播放必须停止。 ----- PTS(秒)= 8589934592/90 000 Hz = 95443,7秒(26,5小时)



我尝试过:



如果我让它自己玩,ffplay将正常播放。当时间超过26.5小时时可以播放。 pls将从0开始重新启动

the particulars is i save a rtsp stream to ts file by ffmpeg per 10 second , it may last for a long time(more than 26.5hour), when it done, it will save a m3u8 file, after that, i use ffplay to play then m3u8 file, if i want to seek to 26.7hour , the play must be stoped. -----PTS (sec) = 8589934592 / 90 000 Hz = 95443,7 seconds (26,5 hours)

What I have tried:

if i let it play by it self, the ffplay will played normally.it can play when time is over 26.5hour. the pls will be restart from 0

推荐答案

我看到的唯一方法是将文件拆分为游戏时间少但大约26.5小时的部分并计算偏移量寻找正确的子文件。
The only way I see is to split the files in parts with playtime less but roughly the 26.5 h and than compute the offset and seek the correct subfile.


这篇关于当m3u8文件大于26.5小时后,如何在26.5小时后使用ffplay搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆