Giter VIP home page Giter VIP logo

Comments (11)

futzu avatar futzu commented on July 16, 2024

I thought I had fixed that, give me a minute.

from scte-35_hls_x9k3.

futzu avatar futzu commented on July 16, 2024

I did it that way intentionally and it really doesn't make sense to continue for live.

  • If you are trying to recover from a crash, you can't do it fast enough for it not to error the client.

  • If you're trying to concatenate videos use a FIFO socket or cat.

  • Why would you ever use continue with replay?

  • Why would you ever use 0 second segments?

  • PTS doesn't restart to 0, it restart to the first PTS value it finds.

  • Why would you tell me throttling works, has it been broken?

from scte-35_hls_x9k3.

alfonsosiloniz avatar alfonsosiloniz commented on July 16, 2024

Hi Adrian. Thanks for your responses.

I didn´t ask for "continue" "-c" feature. It was another person.

PTS doesn't restart to 0, it restart to the first PTS value it finds.

True. I simplified in my message. The thing is that PTS breaks its sequence, so a discontinuity must be signaled in the playlist. that was my point

Why would you tell me throttling works, has it been broken?

No as fas as I know. Just was describing the process at a whole.

Why would you ever use continue with replay?

Agree. As I say above, I didn´t ask for that feature. The only thing I was asking is that replay feature works and is playable.

Why would you ever use 0 second segments?

Sorry but I don´t understand why you ask me this.

My understanding of what the "replay" feature was (maybe am I wrong? ) is that I can take one input file, and the tool is able to generate a continuous linear channel that plays indefinitely. In the open issue, what it "fails" from that description is that playlist restarts loosing the previous segments making the player to stop playing.

from scte-35_hls_x9k3.

futzu avatar futzu commented on July 16, 2024

You said you tested 0 -7 seconds, that's why I asked about zero. I actually came up with a decent way to do it.

Here's what I'm doing,
when you continue or replay, I'm using m3ufu to parse the m3u8 and load the segments back into the sliding window.

  • If you're testing,
    • use at least a video that fills your window size. For example if you have a window size of 5 and a segment duration of 6 , use at least 35 - 40 seconds. Really short video like 10 seconds, will tend to hang, because of the segments being deleted.
    • There is about a half a second pause at the end of the video, I believe it's because m3ufu and x9k3 throttling, I haven't figured out the best way to address that yet.

Other than those two details it should be cool.

  • Discontinuity sequence count is now incrementing correctly as well.

Here's the commit

v0.2.03 has the update. Try it out and let me know.

from scte-35_hls_x9k3.

alfonsosiloniz avatar alfonsosiloniz commented on July 16, 2024

Oh. I see that I get you confused with my text. Sorry for that. I was testing with 6 seconds segments, having 8 segments with id 0 to id 7. My input video is 48.02 seconds long, so I have 8 segments with that time.

I am trying the last version. I need to confirm one thing. Does m3ufu requires python 3.9 ? As I am having an exception in https://github.com/futzu/x9k3/blob/f8eac35117cf382831dce8fe74972337131aa877/x9k3.py#L162 because is using the removeprefix method in the constructor of a Segment, that it seems to be python 3.9

from scte-35_hls_x9k3.

futzu avatar futzu commented on July 16, 2024

x9k3 v0.2.05 should fix the lag from the m3ufu throttling, you still want to fill the window though.

What version of python are you using?

I try to stay a few releases back from the newest release.

I didn't realize removeprefix was 3.9, but 3.9 is reasonable, 3.12 is the latest.

if you just flatly refuse to update python

  • line 259 in m3ufu.py
        self.relative_uri = media_uri.removeprefix(base_uri)
  • change it to
        self.relative_uri = media_uri.replace(base_uri,'')

I use pypy3, it's way faster. Check this out.

  • the file
a@fu:~$ ls -alh msnbc.ts
-rw-r--r-- 1 a a 3.3G Oct 25 04:24 msnbc.ts
  • parsing it with threefive
engine seconds
Python 3.11.5 12.993
PyPy 7.3.12 3.437

from scte-35_hls_x9k3.

alfonsosiloniz avatar alfonsosiloniz commented on July 16, 2024

Thansk for the indications.

Just wanted to know cause the m3ufu readme indicated 3.6+

I will try it later to confirm. thanks!

from scte-35_hls_x9k3.

futzu avatar futzu commented on July 16, 2024

you cool on this?

from scte-35_hls_x9k3.

futzu avatar futzu commented on July 16, 2024

I fixed the m3ufu remove prefix thing, update to the latest x9k3 0.2.09.
I also added support for m3u8 input files, so you can re-segment, re-size segments and add SCTE-35 to an exist m3u8 file via sidecar file.

from scte-35_hls_x9k3.

futzu avatar futzu commented on July 16, 2024

grab v0.2.19, I think things are working a bit better.

from scte-35_hls_x9k3.

alfonsosiloniz avatar alfonsosiloniz commented on July 16, 2024

Confirm it works with v0.2.19. Now it plays correctly. Thank you!!

from scte-35_hls_x9k3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.