[英]How to play random part of mp4 file with vlc or something else?
I have random part (99,9% somewhere in the middle) of the mp4 file. 我有mp4文件的随机部分(中间有99.9%)。 Problem is that it's not in any container or anything just a binary piece of the file in random offset and send to me... it will keep growing but it'll take a while and I need to play content right away. 问题在于它不在任何容器中,也不是随机偏移的文件的二进制文件发送给我...它会继续增长,但是需要一段时间,我需要立即播放内容。
I can get all necessary metadata information for that file from other source before I even start receiving those binary data, but: 在开始接收那些二进制数据之前,我可以从其他来源获取该文件的所有必要元数据信息,但是:
OK, I've solved it like this (dirty workaround): Coppied the moov part (just looking for this atom) from oryginal file and created the file of the oryginal size filling with zeros and the metadata parts. 好的,我已经这样解决了(肮脏的解决方法):从原始文件中删除了moov部分(只是在寻找原子),并创建了原始大小的文件,其中填充了零和元数据部分。 Than I'm simply running player and jump with it to part that is already downloaded. 比起我只是在运行播放器,然后跳到已经下载的部分。 (still having problems how to find where to jump based on binary offset, but proportions of files seems to work quite ok with it, however the keyframe is often lost and artefacts are for quite some time, also the color is off for few seconds) (仍然存在如何根据二进制偏移量查找跳转位置的问题,但是文件的比例似乎可以正常工作,但是关键帧经常丢失并且伪像已经存在了很长一段时间,颜色也消失了几秒钟)
But I'm still interested with more elegant solutions. 但是我仍然对更优雅的解决方案感兴趣。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.