Spaces:
Paused
Paused
update
Browse files
data/porter_tasks_dev.json
CHANGED
|
@@ -1,4 +1,26 @@
|
|
| 1 |
[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
{
|
| 3 |
"enable": true,
|
| 4 |
"type": "douyin_live_to_bilibili",
|
|
|
|
| 1 |
[
|
| 2 |
+
{
|
| 3 |
+
"enable": true,
|
| 4 |
+
"type": "douyin_video_download",
|
| 5 |
+
"user_name": "陈杰森 资本NewBoombap",
|
| 6 |
+
"sec_user_id": "MS4wLjABAAAATGoBrO7yiJ3q9go4fxq9JXjrnP1bFpdkgKckC1IpfXA_vrjSmL9ZtjmTju8ApwbT",
|
| 7 |
+
"check_interval": 900,
|
| 8 |
+
"key_of_credentials": "douyin_wentao_credentials",
|
| 9 |
+
"min_date2": "2025-09-06 00:00:00",
|
| 10 |
+
"output_video_dir": "data/video/douyin/陈杰森",
|
| 11 |
+
"output_video_info_file": "data/video/douyin/陈杰森/file_info.json"
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"enable": true,
|
| 15 |
+
"type": "douyin_video_download",
|
| 16 |
+
"user_name": "小熊Bella与老爸",
|
| 17 |
+
"sec_user_id": "MS4wLjABAAAA49QFP6YhorLIIX9M-FiZeKxmqhqXlttluSsZeaxvxzU",
|
| 18 |
+
"check_interval": 900,
|
| 19 |
+
"key_of_credentials": "douyin_wentao_credentials",
|
| 20 |
+
"min_date2": "2025-09-06 00:00:00",
|
| 21 |
+
"output_video_dir": "data/video/douyin/陈杰森",
|
| 22 |
+
"output_video_info_file": "data/video/douyin/陈杰森/file_info.json"
|
| 23 |
+
},
|
| 24 |
{
|
| 25 |
"enable": true,
|
| 26 |
"type": "douyin_live_to_bilibili",
|
toolbox/bilibili/live/live_manager.py
CHANGED
|
@@ -118,27 +118,46 @@ class BilibiliLiveManager(BilibiliClient):
|
|
| 118 |
|
| 119 |
# cmd = f'ffmpeg -re -i "{input_source}" -c copy -f flv -flvflags no_duration_filesize "{rtmp_url}"'
|
| 120 |
|
| 121 |
-
# cmd_list = [
|
| 122 |
-
# 'ffmpeg',
|
| 123 |
-
# '-i', input_source,
|
| 124 |
-
# '-c', 'copy',
|
| 125 |
-
# '-f', 'flv',
|
| 126 |
-
# rtmp_url
|
| 127 |
-
# ]
|
| 128 |
cmd_list = [
|
| 129 |
"ffmpeg",
|
|
|
|
| 130 |
"-i", input_source,
|
| 131 |
-
"-c", "
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
"-f", "flv",
|
| 133 |
rtmp_url
|
| 134 |
]
|
|
|
|
| 135 |
cmd_str = [
|
| 136 |
"ffmpeg",
|
|
|
|
| 137 |
'-i', f'"{input_source}"',
|
| 138 |
-
"-c", "
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
"-f", "flv",
|
| 140 |
f'"{rtmp_url}"'
|
| 141 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 142 |
cmd_str = " ".join(cmd_str)
|
| 143 |
cmd = RtmpPublishCMD(
|
| 144 |
cmd_list=cmd_list,
|
|
|
|
| 118 |
|
| 119 |
# cmd = f'ffmpeg -re -i "{input_source}" -c copy -f flv -flvflags no_duration_filesize "{rtmp_url}"'
|
| 120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
cmd_list = [
|
| 122 |
"ffmpeg",
|
| 123 |
+
"-re",
|
| 124 |
"-i", input_source,
|
| 125 |
+
"-c:v", "libx264",
|
| 126 |
+
"-preset", "veryfast",
|
| 127 |
+
"-b:v", "1500k",
|
| 128 |
+
"-c:a", "aac",
|
| 129 |
+
"-b:a", "128k",
|
| 130 |
"-f", "flv",
|
| 131 |
rtmp_url
|
| 132 |
]
|
| 133 |
+
|
| 134 |
cmd_str = [
|
| 135 |
"ffmpeg",
|
| 136 |
+
"-re",
|
| 137 |
'-i', f'"{input_source}"',
|
| 138 |
+
"-c:v", "libx264",
|
| 139 |
+
"-preset", "veryfast",
|
| 140 |
+
"-b:v", "1500k",
|
| 141 |
+
"-c:a", "aac",
|
| 142 |
+
"-b:a", "128k",
|
| 143 |
"-f", "flv",
|
| 144 |
f'"{rtmp_url}"'
|
| 145 |
]
|
| 146 |
+
|
| 147 |
+
# cmd_list = [
|
| 148 |
+
# "ffmpeg",
|
| 149 |
+
# "-i", input_source,
|
| 150 |
+
# "-c", "copy",
|
| 151 |
+
# "-f", "flv",
|
| 152 |
+
# rtmp_url
|
| 153 |
+
# ]
|
| 154 |
+
# cmd_str = [
|
| 155 |
+
# "ffmpeg",
|
| 156 |
+
# '-i', f'"{input_source}"',
|
| 157 |
+
# "-c", "copy",
|
| 158 |
+
# "-f", "flv",
|
| 159 |
+
# f'"{rtmp_url}"'
|
| 160 |
+
# ]
|
| 161 |
cmd_str = " ".join(cmd_str)
|
| 162 |
cmd = RtmpPublishCMD(
|
| 163 |
cmd_list=cmd_list,
|
toolbox/porter/tasks/douyin_video_download_task.py
CHANGED
|
@@ -31,6 +31,7 @@ class DouyinVideoDownloadTask(BaseTask):
|
|
| 31 |
min_date: str = None,
|
| 32 |
output_video_dir: str = "output",
|
| 33 |
output_video_info_file: str = "output.json",
|
|
|
|
| 34 |
):
|
| 35 |
super().__init__(
|
| 36 |
flag=f"[{self.__class__.__name__}_{user_name}]",
|
|
|
|
| 31 |
min_date: str = None,
|
| 32 |
output_video_dir: str = "output",
|
| 33 |
output_video_info_file: str = "output.json",
|
| 34 |
+
**kwargs
|
| 35 |
):
|
| 36 |
super().__init__(
|
| 37 |
flag=f"[{self.__class__.__name__}_{user_name}]",
|
toolbox/porter/tasks/video_to_bilibili_task.py
CHANGED
|
@@ -52,6 +52,7 @@ class VideoToBilibiliTask(BaseTask):
|
|
| 52 |
key_of_credentials: str,
|
| 53 |
remove_after_upload: bool = False,
|
| 54 |
min_date: str = None,
|
|
|
|
| 55 |
):
|
| 56 |
super().__init__(
|
| 57 |
flag=f"[{self.__class__.__name__}_{video_group}]",
|
|
|
|
| 52 |
key_of_credentials: str,
|
| 53 |
remove_after_upload: bool = False,
|
| 54 |
min_date: str = None,
|
| 55 |
+
**kwargs
|
| 56 |
):
|
| 57 |
super().__init__(
|
| 58 |
flag=f"[{self.__class__.__name__}_{video_group}]",
|
toolbox/porter/tasks/video_to_youtube_task.py
CHANGED
|
@@ -55,6 +55,7 @@ class VideoToYoutubeTask(BaseTask):
|
|
| 55 |
playlist_title: str = None,
|
| 56 |
playlist_id: str = None,
|
| 57 |
min_date: str = None,
|
|
|
|
| 58 |
):
|
| 59 |
super().__init__(
|
| 60 |
flag=f"[{self.__class__.__name__}_{video_group}]",
|
|
|
|
| 55 |
playlist_title: str = None,
|
| 56 |
playlist_id: str = None,
|
| 57 |
min_date: str = None,
|
| 58 |
+
**kwargs
|
| 59 |
):
|
| 60 |
super().__init__(
|
| 61 |
flag=f"[{self.__class__.__name__}_{video_group}]",
|