Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var command = ffmpeg({ logger: console.log() }) //, { timeout: 432000 }
- .addOption('-probesize', 2147483647)
- .addOption('-analyzeduration', 2147483647)
- .addOption('-ss', 2)
- .addOption('-i', 'public/sdps/video-audio3.sdp')
- .addOption('-async', 1)
- .addOption('-acodec', 'aac')
- .addOption('-ac', 2)
- .addOption('-vcodec', 'libx264')
- .addOption('-r', 24)
- .addOption('-vprofile', 'baseline')
- .addOption('-preset', 'superfast')
- .addOption('-tune', 'zerolatency')
- .addOption('-x264opts', 'level=31')
- .addOption('-s', '640x360')
- .addOption('-f', 'segment')
- .addOption('-segment_time', 10)
- .addOption('-segment_list_flags', '+live')
- .addOption('-segment_list', streamPath + '/test.m3u8')
- .addOption('-segment_list_entry_prefix', 'https://45.55.*.*:8443/stream/')
- .addOption('-segment_format', 'mpegts')
- .save(streamPath + '/test-%03d.ts');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement