Linux 如何在播放器上播放 MPEG-DASH 的 mpd 中给出的 .m4s 文件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/13682218/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 17:56:52  来源:igfitidea点击:

How to play .m4s file given in mpd of MPEG-DASH on player?

clinuxvideo-streamingfile-formatmpeg-4

提问by mojkaro1988

I have downloaded the MPDs "http://dash.edgesuite.net/adobe/hdworld_dash/HDWorld.mpd" and all related .m4s files. I tried running it on VLC player. But the format is not recognized by VLC player.

我已经下载了 MPD“ http://dash.edgesuite.net/adobe/hdworld_dash/HDWorld.mpd”和所有相关的 .m4s 文件。我尝试在 VLC 播放器上运行它。但 VLC 播放器无法识别该格式。

I have downloaded this media segment using wget(1 to 14 segments are available) http://dash.edgesuite.net/adobe/hdworld_dash/hdworld_seg_hdworld_0696kbps_ffmpeg.mp4.video_temp2.m4s.

我已经使用wget(1 到 14 个片段可用) http://dash.edgesuite.net/adobe/hdworld_dash/hdworld_seg_hdworld_0696kbps_ffmpeg.mp4.video_temp2.​​m4s下载了这个媒体片段。

Can anybody tell me solution how to run .m4s format file on player?

谁能告诉我如何在播放器上运行 .m4s 格式文件的解决方案?

System: Ubuntu 11.10

系统:Ubuntu 11.10

采纳答案by rajneesh

you can play it using GPAC player, installing it with all the third party codecs also - http://gpac.wp.mines-telecom.fr/player/

您可以使用 GPAC 播放器播放它,也可以使用所有第三方编解码器安装它 - http://gpac.wp.mines-telecom.fr/player/

some ppl claim that they are able use vlc, i have not tested it.

一些人声称他们可以使用 vlc,我还没有测试过。

回答by mojkaro1988

.m4s file format is ISO Base Media File. i.e. MPEG-4 Part 14. read specs for more info you may get m4s player for windows. As far as I know on Linux platform GPAC will help. You can create your own MPD from any media source using MP4Box a GPAC tool.

.m4s 文件格式是 ISO 基础媒体文件。即 MPEG-4 第 14 部分。阅读规范以获取更多信息,您可能会获得适用于 Windows 的 m4s 播放器。据我所知,在 Linux 平台上 GPAC 会有所帮助。您可以使用 MP4Box 和 GPAC 工具从任何媒体源创建自己的 MPD。

You can use MP4Client for playing your DASHed Media from MPD. Actually .m4s's separate segment is not able to play by its own bcoz player should know Codec and mime type to play any media and m4s is not supported by any player, i.e. it has its own header and data (moof & mdat).

您可以使用 MP4Client 从 MPD 播放 DASHed 媒体。实际上,.m4s 的单独段不能由它自己的 bcoz 播放器播放,应该知道编解码器和 mime 类型来播放任何媒体,并且任何播放器都不支持 m4s,即它有自己的标题和数据(moof 和 mdat)。

For playing MPD which contains many m4s segment (you can make your own MPD or download each audio and video segment separately from any MPD & put it in to a same folder):

播放包含许多 m4s 片段的 MPD(您可以制作自己的 MPD 或从任何 MPD 单独下载每个音频和视频片段并将其放入同一文件夹):

  1. install GPAC.
  2. $MP4Client MYWorld.mpdwill open Osmo4 player and you can see your video is playing. Enjoy..
  1. 安装 GPAC。
  2. $MP4Client MYWorld.mpd将打开 Osmo4 播放器,您可以看到您的视频正在播放。享受..

FYI, local streaming server can also play this video:

仅供参考,本地流媒体服务器也可以播放此视频:

$MP4Client http://localhost/MYWorld.mpd

if not working change segmentAlignment flag, i.e. <AdaptationSet segmentAlignment="true" subsegmentAlignment="true">.

如果不起作用,请更改 segmentAlignment 标志,即<AdaptationSet segmentAlignment="true" subsegmentAlignment="true">.

回答by Ted Percival

You need the initialization segment. It is often named "00" or "init" or doesn't have a sequence number like the other files, and often ends in ".mp4" rather than ".m4s". Then you just concatenate the files together. You can start anywhere in the sequence so long as you begin with the initialization segment.

您需要初始化段。它通常被命名为“00”或“init”,或者不像其他文件那样具有序列号,并且通常以“.mp4”而不是“.m4s”结尾。然后你只需将文件连接在一起。只要从初始化段开始,您就可以在序列中的任何位置开始。

For example

例如

cat init.mp4 *.m4s > output.mp4

Then you have a playable mp4 file with content, assuming there is no encryption (DRM) applied to it.

然后你就有了一个可播放的 mp4 文件,假设没有对其应用加密 (DRM)。

回答by Alex Leung

Try this in the OSX terminal:

在 OSX 终端中试试这个:

open -a Osmo4 example.mpd

It works for me.

这个对我有用。