简体   繁体   中英

How to make file .mpd for adaptive streaming supported on iOS device

I would like to do DASH Adaptive Streaming in Ubuntu server. I used ffmpeg and MP4Box to convert video to.mpd file.

Below is command that I use for convert and to generate a file

ffmpeg -i myvideo.mp4 \
-vcodec libx264 \
-profile:v main -level 3.1 \
-preset medium \
-crf 23 \
-x264-params ref=4 \
-acodec copy \
-movflags +faststart myvideo-output.mp4
MP4Box -dash 4000 \
-rap -bs-switching no 
-profile live \ 
-out myvideo-output.mpd \
-segment-name my_video_segment_ myvideo-output.mp4#audio myvideo-output.mp4#video

in browser side, I implemented dash.js to video player. the problem is it works on Chrome, Firefox and Safari on Desktop/iPad but it not works on some all iPhone.

How to solve it?

dash.js requires the browser support media source extensions. Safari on iPone does not. To play video on Safari iPhone, it must be HLS, not DASH.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM