yuna icon indicating copy to clipboard operation
yuna copied to clipboard

Transcode Unplayable Local Files

Open beeequeue opened this issue 6 years ago • 3 comments

Make unplayable files playable in some way.

Option to transcode files, store them locally somewhere then allow playback

FFMPEG to HLS file, load from there.

Live transcode and stream result to html5 player

Attempted once, worked terribly, e.g. seeking did not work.

Useful links? https://stackoverflow.com/questions/39431714/ffmpeg-transcode-to-live-stream https://github.com/BeeeQueue/stream-transcoder.js (couldn't get this to work) https://trac.ffmpeg.org/wiki/StreamingGuide

beeequeue avatar May 11 '19 16:05 beeequeue

@BeeeQueue How did seeking behave besides not working?

BitForger avatar Jun 03 '19 22:06 BitForger

When you start transcoding a file using ffmpeg you specify the start time in seconds. I could barely create a solution that found a start time based on the start bytes that browsers send in headers (Range"bytes=12312313-"), but then it always started from the beginning, no matter what I did.

Then there was also an issue with starting to transcode. The initial request from the browser is responded with about 200kb of video with duration included in it, which the player then parses and asks for the rest of the video, starting another transcoding.

I have no idea how the Plex guys do it but their stuff seems to work pretty much flawlessly...

beeequeue avatar Jun 03 '19 22:06 beeequeue

interesting.. I might take a shot at this later

BitForger avatar Jun 03 '19 23:06 BitForger