node-m3u8stream
node-m3u8stream copied to clipboard
Concatenates segments from a m3u8/dash-mpd playlist into a consumable stream.
Hi all, I am unable to play more than 2-3 seconds of any live video (such as https://www.youtube.com/watch?v=5qap5aO4i9A) via the ytdl-core package. The stream ends without any errors. Normal videos...
When streaming to Discord, it hangs up after 30 seconds with the status `ERR_STREAM_PREMATURE_CLOSE`. It happens right after the `progress` event for the 6th chunk. Messing with the function parameters...
I have a code like this ``` app.get('/stream', (req, res) => { res.attachment('twitter-spaces-' + Date.now() + '.aac'); const stream = m3u8stream(req.query['url']) .pipe(res) }) ``` But when the stream ends I...
Try this : ``` const fs = require('fs'); const m3u8stream = require('m3u8stream') m3u8stream('https://prod-fastly-eu-central-1.video.periscope.tv/Transcoding/v1/hls/rR3sEEtIYIXRbEx5ThxVpftu1BX4T8UN_x8ObMCkkhMy4Bg9F0bnU5nzMQVSfrmqMk0-_tGWcx3niQ9R5-0yxA/non_transcode/eu-central-1/periscope-replay-direct-prod-eu-central-1-public/master_dynamic_16889594913756400541.m3u8?type=replay').pipe(fs.createWriteStream('videofile.mp4')); ``` It downloads another m3u8 file but not the video. As i understand that's because the given...
``` at new ClientRequest (_http_client.js:148:13) at request (https.js:314:10) at Object.get (https.js:318:15) at doDownload (...node_modules/miniget/dist/index.js:110:25) at processTicksAndRejections (internal/process/task_queues.js:79:11) ``` m3u8 url: https://cf-hls-media.sndcdn.com/playlist/8IsFZS7TMDjy.128.mp3/playlist.m3u8?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiKjovL2NmLWhscy1tZWRpYS5zbmRjZG4uY29tL3BsYXlsaXN0LzhJc0ZaUzdUTURqeS4xMjgubXAzL3BsYXlsaXN0Lm0zdTgiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE1ODcwNTE3MjJ9fX1dfQ__&Signature=af4QA-bocT7jB6bsI~3ZbcSYx~jWpxkUKDDcPD--6iY7XjaDzTV6aTOPi5N2SyTtwaMgpNDJ1U6~HfGPducyQdkOWPyVd~1obDj7RG~AoendyxOaFpTxmUyBxvfw~GIUOT8Z~KlNx-OfUvLOWdZXlXlZMDYOxH18AEscqCKUImSaG6WLQA123byNBQwpwogR8qxNt41DbcM2KlyYz9TQRIRH2BRNK0gP~zEXzFez3NFxlJJ8Z5ZProEjze9bhmjpxmnAMDgrYCfWin2QVZBGpwFDXahqtZZ6glAeqLwlWixh6-Ovej73iwH7FhCfwD85cNm3GZZ78nCr4H~~fd2SPg__&Key-Pair-Id=APKAI6TU7MMXM5DG6EPQ
It works like a charm, but can u please add a duration parameter. that we can export a clip from stream begin - to duration.
Here is my code: https://github.com/agamemnus/node-m3u8stream/tree/master/lib I modified index.ts (index.js) and m3u8-parser.ts (m3u8-parser.js) I can't be bothered to try to make it work with Typescript -- just throwing it out there...
I don't understand why this happens **this is the full error** ```` { num: 1, size: 2208248, duration: 8000, url: 'seg-1-v1-a1.ts' } { num: 2, size: 761400, duration: 8000, url:...
Please forgive the stupidity of this question as I am learning as I go with programming and Javascript. I am currently using your YTDL module to output the "audio_only" portion...
Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request. ### What changed?...