[英]Do we need to transcode mp4 or mp3 to HLS format for streaming video/ audio on mobile app?
We are developing a mobile app which play music and video .我们正在开发一个播放音乐和视频的移动应用程序。
The music (.mp3) and video(.mp4) is about 5 - 20 MB .音乐 (.mp3) 和视频 (.mp4) 大约 5 - 20 MB。 I knew we must to transcode from .mp4 to HLS format ( .m3u8) for streaming.
我知道我们必须将 .mp4 转码为 HLS 格式 (.m3u8) 才能进行流式传输。 And I still consider about transcode audio file to HLS format whether or not ?
而且我还在考虑是否将音频文件转码为 HLS 格式?
I have two question.我有两个问题。
Do we need transcode video (.mp4) to HLS format if the files are about 5- 20 MB.
如果文件大约 5-20 MB,我们是否需要将视频 (.mp4) 转码为 HLS 格式。
No. These are very small.不,这些很小。 No need to bother with segments, as they won't be a whole lot smaller than the original file anyway.
无需理会段,因为无论如何它们都不会比原始文件小很多。 You will have better compatibility with MP4 as-is.
您将拥有更好的 MP4 兼容性。 Just make sure you use
faststart
when encoding your MP4 files.只要确保在编码 MP4 文件时使用
faststart
。
Do we need transcode mp3 file to HLS format if the files are about 5 - 10 MB ?
如果文件大约 5-10 MB,我们是否需要将 mp3 文件转码为 HLS 格式?
No. Again, these are small and you have better compatibility for just streaming them as-is.不。同样,这些很小,并且您可以按原样流式传输它们具有更好的兼容性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.