当m3u8文件大于26.5小时后,如何在26.5小时后使用ffplay搜索

编程入门 行业动态 更新时间:2024-10-25 02:28:50
本文介绍了当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搜索

本文发布于:2023-11-27 01:50:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1636076.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:小时后   文件   如何在   ffplay

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!