apache - Issue when playing DashCast live stream -


i'm trying capture desktop , stream live in apache server using dashcast. captures , plays correctly when on demand, when live , play mp4client shows black screen, not getting error message while capturing it. commands i’m using are:

dashcast -vf x11grab -vres 1280x720 -v :0.0 -npts -live -out /public_html/ 

and play with:

mp4client http://localhost/vitor/dashcast.mpd 

which results in following output:

mp4client http://localhost/vitor/dashcast/dashcast.mpd using config file in /home/vitor directory system info: 11948 mb ram - 8 cores modules found : 36  loading gpac terminal [thread mediamanager] couldn't set priority(2) thread id 0x9b55a700 [thread mediamanager] couldn't set priority(2) thread id 0x9b55a700 terminal loaded in 35 ms opening url localhost/vitor/dashcast/dashcast.mpd [dash] slight drift in utc clock @ time 2015-08-05t12:38:45z: diff ast - 3563501 ms service connected 

so doing wrong? client apparently connects correctly server, open player doesn't show on screen. i'm using ubuntu 14.04 gpac version 0.5.0.

[dash] slight drift in utc clock @ time 2015-08-05t12:38:45z: diff ast - 3563501 ms 

this message indicates there difference ('slight' wrong word here given actual difference !) between utc time indicated in mpd in availabilitystarttime attribute , current time mp4client uses compute segment fetch. relevant live because on demand, segments assumed available time.

mp4client uses different strategies determine 'current' time. system time on client may different system time on server, if using different ntp servers instance. system time not reliable. mp4client tries time server. first tries use specific http "server-utc" header server may set. see example this code. if header not set, looks @ http "date" header, if it's not precise. in case, http server has time configuration not match system time. can tell mp4client stop using server information , rely on system time. since using client , server on same machine, should work. documentation of option here. that, use:

mp4client http://localhost/file.mpd -opt dash:useserverutc=no 

alternatively, can try play mpd locally without going through web server.

mp4client file.mpd 

if not working, open issue on gpac's github providing information possible, in particular result of mp4box -version.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -