how to play mpd file
Asked Answered
R

4

10

. I am trying to understand how mpd file plays and i am referring to the following data set: http://www-itec.uni-klu.ac.at/ftp/datasets/mmsys12/Valkaama/MPDs/Valkaama_1s_act_isoffmain_DIS_23009_1_v_2_1c2_2011_08_30.mpd

In mpd file format there is segment base consists of mp4 chunk and within it has chunk list with extension .m4s.I downloaded mpd file using :

http://www-itec.uni-klu.ac.at/ftp/datasets/mmsys12/Valkaama/valkaama_1s/valkaama_1s_50kbit/valkaama_50kbit_dash.mp4

and m4s chunk by following link:

http://www-itec.uni-klu.ac.at/ftp/datasets/mmsys12/Valkaama/valkaama_1s/valkaama_1s_50kbit/valkaama_1s1.m4s

I tried to play both mp4 and m4s in vlc player but not able to play any of these two so i want to ask which of the chunk links in the mpd file forma i can be able to play standalone in vlc player.

Please correct me if any of my observations is wrong:

Regards Mayank

Redbird answered 11/8, 2015 at 12:49 Comment(0)
C
10

MPD file is just a index of streams with various formats in order to adapt to your bandwidth, to get more information follow the links of the other answers here.

It's possible to download all streams and merge them into a single file, you could achieve this by using youtube-dl:

youtube-dl http://URL/TO/manifest.mpd

You can get more information in https://mcmap.net/q/517816/-given-a-mpeg-dash-mpd-url-is-that-possible-to-down-all-media-segments-through-youtube_dl.

Also, VLC 3.0.0+ can play that kind of file from a url, just open VLC, use the shortcut CTRL+N, paste the url and enjoy.

Caviar answered 2/1, 2019 at 22:46 Comment(1)
this is perfect youtube-dl were able to recognize the long link immediately as mpd file opposite of ffmpegBlessing
B
7

A DASH player plays an MPD by selecting a Period, and in the Period one or more AdaptationSet, and then one Representation per AdaptationSet. For the chosen Representation, it downloads and passes the intialization segment and some media segments to the media engine. As indicated by others you can simulate that by concatenating (simply using caton Linux).

The MPEG-DASH standard requires that initialization segments (in your case the mp4 file) contain no data. This is because when switching the player might use several times the initialization segment. You can open it in a player but it does not contain any media.

For m4s files, they contain media data but they cannot be interpreted without the associated initialization segment.

Boletus answered 7/9, 2015 at 20:18 Comment(0)
A
3

I dont think it is possible to play any of the files in a standalone player. The mp4 is the init segment which is required to decode the .m4s media segments. I dont think there is an option in the vlc player to map an init segment to multiple media segments. Nevertheless you can try a Dash player to play the manifest file. For instance dash.js

Initialization segment: A sequence of bytes that contain all of the initialization information required to decode a sequence of media segments. This includes codec initialization data, Track ID mappings for multiplexed segments, and timestamp offsets (e.g. edit lists).

Media segment: A sequence of bytes that contain packetized & timestamped media data for a portion of the media timeline. Media segments are always associated with the most recently appended initialization segment.

Source: http://www.w3.org/TR/media-source/#init-segment

Atomizer answered 13/8, 2015 at 19:3 Comment(0)
M
3

you can download init segment (SegmentBase/Initialization@sourceURL) and all media segments (SegmentList/SegmentURL@media) and concatenate everything (e.g. with the copy command on windows). The result should be playable on VLC. This has to be done for audio and video separately. In the next step you can then use MP4Box or similar tools to mux audio and video.

Meunier answered 21/8, 2015 at 9:19 Comment(1)
Not any more apparentlyPutrescine

© 2022 - 2024 — McMap. All rights reserved.