Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

录制TK出现错误 错误信息: type: TypeError, unsupported operand type(s) for #701

Closed
2 tasks done
luoyuLianga opened this issue Oct 18, 2024 · 9 comments
Closed
2 tasks done

Comments

@luoyuLianga
Copy link

⚠️ 确认是否已存在类似问题

  • 我已经搜索过issues,没有找到类似问题

🔧 运行方式

使用源代码运行

🐍 如果是使用源代码运行,请选择你的Python环境版本

Python 3.9

⚠️ 确认是否已经重试多次

  • 我已经尝试过多次,仍然出现问题

🕹 复现步骤

  1. https://www.tiktok.com/@eyzxie/live
  2. ts

😯 问题描述

image

📜 错误信息

No response

@luoyuLianga
Copy link
Author

更换直播间地址也还是有问题:
新地址: https://www.tiktok.com/@yanzkag_/live

@ihmily
Copy link
Owner

ihmily commented Oct 18, 2024

更换直播间地址也还是有问题:
https://www.tiktok.com/@yanzkag_/live

除了TikTok其他直播能正常录制吗?

@luoyuLianga
Copy link
Author

更换直播间地址也还是有问题:
https://www.tiktok.com/@yanzkag_/live

除了TikTok其他直播能正常录制吗?

测试了抖音的,正常的

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


There are still problems when changing the live broadcast room address:
https://www.tiktok.com/@yanzkag_/live

Can live broadcasts other than TikTok be recorded normally?

I tested Douyin and it’s normal.

@ihmily
Copy link
Owner

ihmily commented Oct 18, 2024

大概是type hint代码的问题导致报错,python 3.10以下没有 list[dict[str, int | Any]] 使用 | 这样的写法

升级python版本 或者 将DouyinLiveRecorder/douyinliverecorder/stream.py的大概65行

def get_video_quality_url(stream, q_key) -> list[dict[str, int | Any]]:

改为

def get_video_quality_url(stream, q_key) -> list[dict[str, Union[int, Any]]]

@luoyuLianga
Copy link
Author

大概是type hint代码的问题导致报错,python 3.10以下没有 list[dict[str, int | Any]] 使用 | 这样的写法

升级python版本 或者 将DouyinLiveRecorder/douyinliverecorder/stream.py的大概65行

def get_video_quality_url(stream, q_key) -> list[dict[str, int | Any]]:

改为

def get_video_quality_url(stream, q_key) -> list[dict[str, Union[int, Any]]]

def get_video_quality_url(stream, q_key) -> list[dict[str, int | Any]]:

改为

def get_video_quality_url(stream, q_key) -> list[dict[str, Union[int, Any]]]:

可以解决上述报错,但是录制中出现了一个新问题:
image

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


I also encountered this situation! mmexport1729531955091.png

@ihmily
Copy link
Owner

ihmily commented Oct 22, 2024

我也遇到了这种情况 Error opening input files:Connection reset by peer

访问外网的网络连接不稳定导致的 录制中断或者录制出错

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


I also encountered this situation Error opening input files:Connection reset by peer

Recording interruption or recording errors caused by unstable network connection to the external network

@ihmily ihmily closed this as completed Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants