Advertisement
Guest User

Untitled

a guest
Mar 24th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. var command = ffmpeg({ logger: console.log() }) //, { timeout: 432000 }
  2. .addOption('-probesize', 2147483647)
  3. .addOption('-analyzeduration', 2147483647)
  4. .addOption('-ss', 2)
  5. .addOption('-i', 'public/sdps/video-audio3.sdp')
  6. .addOption('-async', 1)
  7. .addOption('-acodec', 'aac')
  8. .addOption('-ac', 2)
  9. .addOption('-vcodec', 'libx264')
  10. .addOption('-r', 24)
  11. .addOption('-vprofile', 'baseline')
  12. .addOption('-preset', 'superfast')
  13. .addOption('-tune', 'zerolatency')
  14. .addOption('-x264opts', 'level=31')
  15. .addOption('-s', '640x360')
  16. .addOption('-f', 'segment')
  17. .addOption('-segment_time', 10)
  18. .addOption('-segment_list_flags', '+live')
  19. .addOption('-segment_list', streamPath + '/test.m3u8')
  20. .addOption('-segment_list_entry_prefix', 'https://45.55.*.*:8443/stream/')
  21. .addOption('-segment_format', 'mpegts')
  22. .save(streamPath + '/test-%03d.ts');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement