Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -352,5 +352,5 @@ $RECYCLE.BIN/
# Specific for the MacOS
.DS_Store

# Specific for the autostream
# Specific for the looplive
videos/*
18 changes: 9 additions & 9 deletions README-en.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# autostream
# looplive

[简体中文](./README.md) | English

> Welcome to `autostream`! We appreciate your feedback and contributions through PRs. Please do not use this project for purposes that violate community guidelines.
> Welcome to `looplive`! We appreciate your feedback and contributions through PRs. Please do not use this project for purposes that violate community guidelines.

`autostream` is a fully automated 24/7 live streaming tool, with plans to support more platforms in the future.
`looplive` is a fully automated 24/7 live streaming tool, with plans to support more platforms in the future.

The Python toolkit package and CLI designed for auto streaming.
The Python toolkit package and cli designed for auto loop live.

## Prerequisites

Expand Down Expand Up @@ -41,18 +41,18 @@ brew install ffmpeg
> To avoid command parameters being incorrectly separated, please wrap each parameter in English double quotes `"`. The parameter `-f` is the folder where the video files are stored.

```bash
autostream add -s "rtmp://xxxxxxxx" -k "?streamname=xxxxxxxx" -f "your/folder/path"
autostream bili
looplive add -s "rtmp://xxxxxxxx" -k "?streamname=xxxxxxxx" -f "your/folder/path"
looplive bili
```

### More Usage

```bash
$ autostream -h
$ looplive -h

autostream [-h] [-V] {check,add,reset,bili} ...
looplive [-h] [-V] {check,add,reset,bili} ...

The Python toolkit package and CLI designed for auto streaming
The Python toolkit package and cli designed for auto loop live.

positional arguments:
{check,add,reset,bili}
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# autostream
# looplive

简体中文 | [English](./README-en.md)

> 欢迎使用,欢迎提供更多反馈,欢迎 PR 贡献此项目,请勿用于违反社区规定的用途。

`autostream` 是一个 7 x 24 小时全自动循环推流直播工具,预计支持更多的平台。
`looplive` 是一个 7 x 24 小时全自动循环推流直播工具,预计支持更多的平台。

The Python toolkit package and cli designed for auto streaming.
The Python toolkit package and cli designed for auto loop live.

## 提前准备

Expand Down Expand Up @@ -41,19 +41,19 @@ brew install ffmpeg
> 为了避免命令参数被错误分隔,请使用英文双引号 `"` 包裹每一项参数。参数 `-f` 是视频文件的存放文件夹。

```bash
autostream add -s "rtmp://xxxxxxxx" -k "?streamname=xxxxxxxx" -f "your/folder/path"
autostream bili
looplive add -s "rtmp://xxxxxxxx" -k "?streamname=xxxxxxxx" -f "your/folder/path"
looplive bili
```

### 更多用法

```bash
$ autostream -h
$ looplive -h

autostream [-h] [-V] {check,add,reset,bili} ...
looplive [-h] [-V] {check,add,reset,bili} ...


The Python toolkit package and cli designed for auto streaming
The Python toolkit package and cli designed for auto loop live.

positional arguments:
{check,add,reset,bili}
Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions autostream/cli.py → looplive/cli.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Copyright (c) 2025 autostream
# Copyright (c) 2025 looplive

import argparse
import sys
import os
import logging
from autostream.controller.bili_controller import BiliController
from autostream.controller.config_controller import ConfigController
from looplive.controller.bili_controller import BiliController
from looplive.controller.config_controller import ConfigController


def cli():
parser = argparse.ArgumentParser(description='The Python toolkit package and cli designed for auto streaming')
parser.add_argument('-V', '--version', action='version', version='autostream 0.0.1', help='Print version information')
parser = argparse.ArgumentParser(description='The Python toolkit package and cli designed for auto loop live.')
parser.add_argument('-V', '--version', action='version', version='looplive 0.0.1', help='Print version information')

subparsers = parser.add_subparsers(dest='subcommand', help='Subcommands')

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Copyright (c) 2025 autostream
# Copyright (c) 2025 looplive

import subprocess
from autostream.execute.scan_and_execute import scan_folder_and_execute
from autostream.model.model import Model
from looplive.execute.scan_and_execute import scan_folder_and_execute
from looplive.model.model import Model

class BiliController:
def __init__(self):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2025 autostream
# Copyright (c) 2025 looplive

from autostream.model.model import Model
from looplive.model.model import Model

class ConfigController:
def __init__(self):
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2025 autostream
# Copyright (c) 2025 looplive

import os
import subprocess
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion autostream/model/model.py → looplive/model/model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2025 autostream
# Copyright (c) 2025 looplive

import json
import os
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Copyright (c) 2025 autostream
# Copyright (c) 2025 looplive

import unittest
from unittest.mock import patch, MagicMock
from autostream.execute.scan_and_execute import scan_folder_and_execute
from looplive.execute.scan_and_execute import scan_folder_and_execute

class TestScanAndExecute(unittest.TestCase):

def test_scan_folder_and_execute(self):
folder_to_scan = "/home/jh/Downloads/autostream/videos"
folder_to_scan = "/home/Downloads/looplive/videos"
command_to_execute = "ffmpeg -re -i {file_path} -c copy -f flv {stream_url}"
scan_folder_and_execute(folder_to_scan, command_to_execute)
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "autostream"
name = "looplive"
version = "0.0.1"
authors = [
{ name="timerring"},
]
description = "The Python toolkit package and cli designed for auto streaming"
description = "The Python toolkit package and cli designed for auto loop live."
readme = "README.md"
license = { file="LICENSE" }
requires-python = ">=3.8"
Expand All @@ -20,7 +20,7 @@ classifiers = [
dependencies = []

[project.scripts]
autostream = "autostream.cli:cli"
looplive = "looplive.cli:cli"

[project.urls]
"Homepage" = "https://github.com/timerring/autostream"
"Homepage" = "https://github.com/timerring/looplive"