Skip to content
This repository was archived by the owner on Mar 6, 2025. It is now read-only.
This repository was archived by the owner on Mar 6, 2025. It is now read-only.

Livestreaming for hours instead of seconds? #68

Closed

Description

@TheBotlyNoob

I need to use hours. But because the python library only supports seconds I have to multiply the number of hours by 3600 to get the number of seconds. But then ffmpeg throws:
Invalid duration specification for t:
And tons of 1's.

btw my code is:

import pylivestream.api as pls
def livestream(hours):
    hours *= 3600
    pls.stream_screen(r"path\to\ini\pylivestream.ini", "youtube", assume_yes = True, timeout = hours)

Activity

  1. scivision commented on Oct 18, 2021

    @scivision
    Owner

    You don't have to specify timeout=. It might be a limitation of FFmpeg. So if you can, just omit the timeout= parameter

  2. Repository owner locked and limited conversation to collaborators on Dec 1, 2022
  3. converted this issue into a discussion #103 on Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions