Sample Header Ad - 728x90

Why can't pull the dash stream with ffplay?

3 votes
1 answer
1059 views
The nginx.conf is simple: sudo cat /usr/local/nginx/conf/nginx.conf worker_processes 1; error_log logs/error.log error; events { worker_connections 4096; } rtmp { server { listen 1935; application live { live on; dash on; dash_path /mnt/dash; dash_fragment 15s; } } } http { server { listen 80; location /dash { root /mnt; } } types { text/html html; application/dash+xml mpd; } } I push the web camera to 127.0.0.1. output="rtmp://127.0.0.1:1935/live/sample" ffmpeg -f v4l2 -video_size 640x480 -i /dev/video0 -c:v libx264 -f flv $output Pull it with rtmp protocol: ffplay rtmp://127.0.0.1:1935/live/sample Succeeded! Pull it with dash protocol: ffplay http://127.0.0.1/dash/sample.mpd It encounter an error: http://127.0.0.1/dash/sample.mpd : Invalid data found when processing input How to fix it? My os :debian9. ffplay -formats |& grep "DASH Muxer" E dash DASH Muxer
Asked by scrapy (353 rep)
Jan 15, 2021, 01:38 PM
Last activity: Jan 19, 2021, 07:39 AM