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

57,514

Solution 1

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

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

Solution 2

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.

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.

Solution 3

.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.

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).

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):

  1. install GPAC.
  2. $MP4Client MYWorld.mpd will open Osmo4 player and you can see your video is playing. Enjoy..

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">.

Share:
57,514
mojkaro1988
Author by

mojkaro1988

Updated on October 04, 2020

Comments