Skip to content

Commit

Permalink
feat:Added recording support for five new live streaming platforms
Browse files Browse the repository at this point in the history
- Added recording support for five new live streaming platforms: winktv, flextv, look live, popkontv, and twitcasting.
- Implemented configuration for overseas platform accounts and passwords, enabling automatic login and cookie updates for overseas platforms.
- Added display name for overseas platforms as account nickname + account ID.
- Introduced custom configuration for platforms requiring proxy recording.
- Added option to only push live broadcast notifications without recording.
  • Loading branch information
ihmily committed Mar 9, 2024
1 parent c26e398 commit 903662d
Show file tree
Hide file tree
Showing 6 changed files with 1,271 additions and 438 deletions.
44 changes: 36 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
[![Docker Pulls](https://img.shields.io/docker/pulls/ihmily/douyin-live-recorder?label=Docker%20Pulls&color=blue&logo=docker)](https://hub.docker.com/r/ihmily/douyin-live-recorder/tags)
![GitHub issues](https://img.shields.io/github/issues/ihmily/DouyinLiveRecorder.svg)
[![Latest Release](https://img.shields.io/github/v/release/ihmily/DouyinLiveRecorder)](https://github.com/ihmily/DouyinLiveRecorder/releases/latest)
![Downloads](https://img.shields.io/github/downloads/ihmily/DouyinLiveRecorder/total)
[![Downloads](https://img.shields.io/github/downloads/ihmily/DouyinLiveRecorder/total)](https://github.com/ihmily/DouyinLiveRecorder/releases/latest)

一款简易的可循环值守的直播录制工具,基于FFmpeg实现多平台直播源录制,支持自定义配置录制以及直播状态推送。
一款**简易**的可循环值守的直播录制工具,基于FFmpeg实现多平台直播源录制,支持自定义配置录制以及直播状态推送。

</div>

Expand All @@ -27,8 +27,13 @@
- [x] AfreecaTV
- [x] 网易cc
- [x] 千度热播
- [x] pandaTV
- [x] PandaTV
- [x] 猫耳FM
- [x] Look直播
- [x] WinkTV
- [x] FlexTV
- [x] PopkonTV
- [x] TwitCasting
- [ ] 更多平台正在更新中

</div>
Expand All @@ -38,7 +43,6 @@
```
.
└── DouyinLiveRecorder/
├── /api -> (get live stream api )
├── /config -> (config record)
├── /logs -> (save runing log file)
├── /backup_config -> (backup file)
Expand Down Expand Up @@ -76,7 +80,7 @@
- 如果要长时间挂着软件循环监测直播,最好循环时间设置长一点(咱也不差没录制到的那几分钟),避免因请求频繁导致被官方封禁IP 。

- 要停止直播录制,使用`Ctrl+C ` 或直接关闭程序即可。
- 最后,欢迎右上角给本项目一个star,同时也非常乐意大家提交pr(请先询问我,避免做无用功)
- 最后,欢迎右上角给本项目一个star,同时也非常乐意大家提交pr。

&emsp;

Expand Down Expand Up @@ -107,7 +111,7 @@ B站:
https://live.bilibili.com/320
小红书:
https://www.redelight.cn/hina/livestream/569077534207413574/1707413727088?appuid=5f3f478a00000000010005b3&
https://www.xiaohongshu.com/hina/livestream/569077534207413574/1707413727088?appuid=5f3f478a00000000010005b3&
bigo直播:
https://www.bigo.tv/cn/716418802
Expand All @@ -124,11 +128,26 @@ https://cc.163.com/583946984
千度热播:
https://qiandurebo.com/web/video.php?roomnumber=33333
pandaTV
PandaTV
https://www.pandalive.co.kr/live/play/bara0109
猫耳FM:
https://fm.missevan.com/live/868895007
Look直播:
https://look.163.com/live?id=65108820&position=3
WinkTV:
https://www.winktv.co.kr/live/play/anjer1004
FlexTV:
https://www.flextv.co.kr/channels/593127/live
PopkonTV:
https://www.popkontv.com/live/view?castId=wjfal007&partnerCode=P-00117
TwitCasting:
https://twitcasting.tv/c:uonq
```

直播间分享地址和网页端长地址都能正常进行录制(抖音尽量用长链接,避免因短链接转换失效导致不能正常录制,而且需要有nodejs环境,否则无法转换)。
Expand All @@ -152,7 +171,6 @@ https://fm.missevan.com/live/868895007

```bash
git clone https://github.com/ihmily/DouyinLiveRecorder.git

```

2.进入项目文件夹,安装依赖
Expand Down Expand Up @@ -256,10 +274,20 @@ docker-compose stop
[![iridescentGray](https://github.com/iridescentGray.png?size=50)](https://github.com/iridescentGray)
[![annidy](https://github.com/annidy.png?size=50)](https://github.com/annidy)
[![wwkk2580](https://github.com/wwkk2580.png?size=50)](https://github.com/wwkk2580)
[![missuo](https://github.com/missuo.png?size=50)](https://github.com/missuo)

&emsp;

## ⏳提交日志

- 20240309
- 修复虎牙直播、小红书直播和B站直播录制
- 新增5个直播平台录制,包括winktv、flextv、look、popkontv、twitcasting
- 新增部分海外平台账号密码配置,实现自动登录并更新配置文件中的cookie
- 新增自定义配置需要使用代理录制的平台
- 新增只推送开播消息不进行录制设置
- 修复了一些bug

- 20240209
- 优化AfreecaTV录制,新增账号密码登录获取cookie以及持久保存
- 修复了小红书直播因官方更新直播域名,导致无法录制直播的问题
Expand Down
72 changes: 45 additions & 27 deletions config/config.ini
Original file line number Diff line number Diff line change
@@ -1,45 +1,63 @@
[录制设置]
直播保存路径(不填则默认) =
视频保存格式ts|mkv|flv|mp4|ts音频|mkv音频 = mp4
直播保存路径(不填则默认) =
视频保存格式ts|mkv|flv|mp4|ts音频|mkv音频 = ts
原画|超清|高清|标清 = 原画
是否使用代理ip(是/否) = 是
代理地址 =
代理地址 =
同一时间访问网络的线程数 = 3
循环时间(秒) = 120
排队读取网址时间(秒) = 0
是否显示循环秒数 = 否
分段录制是否开启 =
分段录制是否开启 =
视频分段时间(秒) = 1800
生成时间文件 = 否
TS录制完成后自动转为mp4格式 = 否
TS录制完成后自动增加生成m4a格式 = 否
ts录制完成后自动转为mp4格式 = 否
ts录制完成后自动增加生成m4a格式 = 否
追加格式后删除原文件 = 否
生成时间文件 = 否
使用代理录制的平台(逗号分隔) = tiktok, afreecatv, pandalive, winktv, flextv, popkontv
额外使用代理录制的平台(逗号分隔) =

[推送配置]
直播状态通知(可选微信|钉钉|TG或者都填) =
钉钉推送接口链接 =
微信推送接口链接 =
钉钉通知@对象(填手机号) =
TGAPI令牌 =
TG聊天ID(个人或者群组ID) =
直播状态通知(可选微信|钉钉|tg或者都填) =

This comment has been minimized.

Copy link
@brina60602

brina60602 Mar 9, 2024

这里的 tg或都填 要改成大写TG才能推送

钉钉推送接口链接 =
微信推送接口链接 =
钉钉通知@对象(填手机号) =
tgapi令牌 =
tg聊天id(个人或者群组id) =
只推送通知不录制(是/否) = 否
直播推送检测频率(秒) = 1800

[Cookie]
抖音cookie(录制抖音必须要有) = ttwid=1%7CB1qls3GdnZhUov9o2NxOMxxYS2ff6OSvEWbv0ytbES4%7C1680522049%7C280d802d6d478e3e78d0c807f7c487e7ffec0ae4e5fdd6a0fe74c3c6af149511; my_rd=1; passport_csrf_token=3ab34460fa656183fccfb904b16ff742; passport_csrf_token_default=3ab34460fa656183fccfb904b16ff742; d_ticket=9f562383ac0547d0b561904513229d76c9c21; n_mh=hvnJEQ4Q5eiH74-84kTFUyv4VK8xtSrpRZG1AhCeFNI; store-region=cn-fj; store-region-src=uid; LOGIN_STATUS=1; __security_server_data_status=1; FORCE_LOGIN=%7B%22videoConsumedRemainSeconds%22%3A180%7D; pwa2=%223%7C0%7C3%7C0%22; download_guide=%223%2F20230729%2F0%22; volume_info=%7B%22isUserMute%22%3Afalse%2C%22isMute%22%3Afalse%2C%22volume%22%3A0.6%7D; strategyABtestKey=%221690824679.923%22; stream_recommend_feed_params=%22%7B%5C%22cookie_enabled%5C%22%3Atrue%2C%5C%22screen_width%5C%22%3A1536%2C%5C%22screen_height%5C%22%3A864%2C%5C%22browser_online%5C%22%3Atrue%2C%5C%22cpu_core_num%5C%22%3A8%2C%5C%22device_memory%5C%22%3A8%2C%5C%22downlink%5C%22%3A10%2C%5C%22effective_type%5C%22%3A%5C%224g%5C%22%2C%5C%22round_trip_time%5C%22%3A150%7D%22; VIDEO_FILTER_MEMO_SELECT=%7B%22expireTime%22%3A1691443863751%2C%22type%22%3Anull%7D; home_can_add_dy_2_desktop=%221%22; __live_version__=%221.1.1.2169%22; device_web_cpu_core=8; device_web_memory_size=8; xgplayer_user_id=346045893336; csrf_session_id=2e00356b5cd8544d17a0e66484946f28; odin_tt=724eb4dd23bc6ffaed9a1571ac4c757ef597768a70c75fef695b95845b7ffcd8b1524278c2ac31c2587996d058e03414595f0a4e856c53bd0d5e5f56dc6d82e24004dc77773e6b83ced6f80f1bb70627; __ac_nonce=064caded4009deafd8b89; __ac_signature=_02B4Z6wo00f01HLUuwwAAIDBh6tRkVLvBQBy9L-AAHiHf7; ttcid=2e9619ebbb8449eaa3d5a42d8ce88ec835; webcast_leading_last_show_time=1691016922379; webcast_leading_total_show_times=1; webcast_local_quality=sd; live_can_add_dy_2_desktop=%221%22; msToken=1JDHnVPw_9yTvzIrwb7cQj8dCMNOoesXbA_IooV8cezcOdpe4pzusZE7NB7tZn9TBXPr0ylxmv-KMs5rqbNUBHP4P7VBFUu0ZAht_BEylqrLpzgt3y5ne_38hXDOX8o=; msToken=jV_yeN1IQKUd9PlNtpL7k5vthGKcHo0dEh_QPUQhr8G3cuYv-Jbb4NnIxGDmhVOkZOCSihNpA2kvYtHiTW25XNNX_yrsv5FN8O6zm3qmCIXcEe0LywLn7oBO2gITEeg=; tt_scid=mYfqpfbDjqXrIGJuQ7q-DlQJfUSG51qG.KUdzztuGP83OjuVLXnQHjsz-BRHRJu4e986
快手cookie =
tiktok_cookie =
虎牙cookie =
斗鱼cookie =
yy_cookie =
B站cookie =
小红书cookie =
bigo_cookie =
blued_cookie =
afreecatv_cookie =
netease_cookie =
千度热播_cookie =
快手cookie =
tiktok_cookie =
虎牙cookie =
斗鱼cookie =
yy_cookie =
b站cookie =
小红书cookie =
bigo_cookie =
blued_cookie =
afreecatv_cookie =
netease_cookie =
千度热播_cookie =
pandatv_cookie =
猫耳FM_cookie =
猫耳fm_cookie =
winktv_cookie =
flextv_cookie =
look_cookie =
twitcasting_cookie =

[Authorization]
popkontv_token =

[账号密码]
afreecatv账号 =
afreecatv密码 =
afreecatv密码 =
flextv账号 =
flextv密码 =
popkontv账号 =
partner_code = P-00001
popkontv密码 =
twitcasting账号 =
twitcasting密码 =
Loading

0 comments on commit 903662d

Please sign in to comment.