Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live stream starts playing after 10 minutes #11

Open
Hemube opened this issue Apr 12, 2016 · 1 comment
Open

Live stream starts playing after 10 minutes #11

Hemube opened this issue Apr 12, 2016 · 1 comment

Comments

@Hemube
Copy link

Hemube commented Apr 12, 2016

Using this tool i'm able to create live dash stream. I used dash.all.main.js to play this, but player starts playing after 10 minutes of delay. Not able to find the reason for it.
dash_config.txt

@tieleman
Copy link

I've tried your config file (minus the timing server URL) and that works when playing back in Osmo4/MP4Client. However, I do notice dash.js has some issues with it. I've removed some options from your config and now I'm able to get it to play in Dash.js without major issues. Do note that Dash.js still has some issues with live content streams, so it might be a case of a bad combination of parameters.

You might need to fix the paths to your files again. I do recommend you choose a slightly smaller segment size (for example 4 seconds), but of course that's up to you. ;)

{
 "segmentDir": "/Users/tieleman/Documents/Code/EBU/live/tmp",
 "outputDir": "/Users/tieleman/Documents/Code/EBU/live/html",
 "mp4box": "MP4Box",
 "ffmpeg": "ffmpeg",
 "encoding": {
  "commandPrefix": ["-re", "-i", "-", "-threads", "0", "-y"],
  "representations": {
   "audio": [
    "-map", "0:1", "-vn", "-acodec", "aac", "-strict", "-2", "-ar", "48000", "-ac", "2",
    "-f", "segment", "-segment_time", "4", "-segment_format", "mpegts"
   ],
   "video": [
    "-map", "0:0", "-vcodec", "libx264", "-vprofile", "baseline", "-preset", "veryfast",
    "-s", "640x360", "-vb", "512k", "-bufsize", "1024k", "-maxrate", "512k",
    "-level", "31", "-keyint_min", "25", "-g", "25", "-sc_threshold", "0", "-an",
    "-bsf", "h264_mp4toannexb", "-flags", "-global_header",
    "-f", "segment", "-segment_time", "4", "-segment_format", "mpegts"
   ]
  }
 },
 "packaging": {
  "mp4box_opts": [
   "-dash-ctx", "/Users/tieleman/Documents/Code/EBU/live/dash-live.txt", "-dash", "4000", "-rap", "-mpd-refresh", "10",
   "-no-frags-default", "-bs-switching", "no", "-url-template", "-time-shift", "1800", "-segment-name", "live_$RepresentationID$_",
    "-keep-utc", "-profile", "DASH-IF:dashavc264:live", "-out", "/Users/tieleman/Documents/Code/EBU/live/html/live", "-dynamic", "-subsegs-per-sidx", "-1"
  ]
 }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants