I'm lost
Archived 5 months ago
J
Ayman.
Verified
Hello, i have a site that uses jackett to get movie magnet links and stream these magnet links directly on the browser using something called webtorrent, and that all worked fine after a bunch of months (im dumb) but then faced a new issue, you see not all formats are streamable, mp4 can be streamed directly and cleanly, but mkv videos cannot be directly streamed on the browser, so i had to use ffmpeg to transcode these mkv files to mp4 and stream it, but then i had to download the entire video before streaming and I don't want that i want it to be a VOD site (video on demand) without downloading the entire file so i switched to ffmpeg segmenting (.ts files) so it basically transcodes these files on the fly to .ts segments and streams it and that worked fine, but another issue i faced it was literally a live stream, meaning i couldn't forward or rewind (couldn't seek) only pause the video and that's it, so i did some research and found out that i can use something called HLS (http live streaming) to do the same thing basically segmenting and stuff but with the ability to download segments from a certain time or a position, so i did that but it couldn't capture the duration, i fixed that temporarily by importing the duration manually, but still seeking did not work, so i switched to DASH which is something similar and managed to generate a manifest successfully from the new position but i cannot download segments from that new Position/time, is there anyone here who used dash or hls? Someone who got it to work that can help me or at least point me in the right direction (note that i do not want to use electron to turn it into an app and embed VLC i want it to be a site not an app)
