Description
Description
I'm looking for some help with playing a HLS file while it is being created (transcoded) from an existing file.
I am using liveui:true
which is nice, I like the progress bar it enables, but it's not quite right because the video isn't a live stream. If I do not use the new liveui
, it just says "live" with no progress bar.
Maybe I'm not using the right settings, any help would be greatly appreciated.
Steps to reproduce
Explain in detail the exact steps necessary to reproduce the issue.
- Start transcoding a file (I use FFmpeg) to HLS. My command is:
ffmpeg -i input.mkv -c:v copy -c:a libvorbis -ac 2 -copyts -flags cgop -f hls -hls_flags omit_endlist -hls_base_url /ts/ -hls_list_size 0 -hls_time 10 -hls_allow_cache 1 -y C:\Users\user\AppData\Local\Temp\output.m3u8
- Have Video.js start playing the file while it is being transcoded
- Observe that the interface doesn't suit what is happening
Results
Expected
I expected there to be a way to have a progress bar that starts at 0 and its duration grows with the playlist as it is being created.
Actual
While it is transcoding I get a screen like this
with the minus values during playback, and those numbers continue to change constantly as more of the file is transcoded.
So in 5 seconds it will say -52:00
then 5 seconds later, -53:00
, for example. I understand that this makes sense for live streams where you are getting further away from the stream as you seek backwards, but that's not the case here.
Additional Information
Please include any additional information necessary here. Including the following:
versions
videojs
what version of videojs does this occur with?
7.18.0
browsers
what browser are affected?
Chrome
OSes
what platforms (operating systems and devices) are affected?
Windows 11