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

twitcastffmpeg录制错误,是不是我设置的不对? #75

Open
DMC-cmd997 opened this issue Dec 18, 2021 · 2 comments
Open

twitcastffmpeg录制错误,是不是我设置的不对? #75

DMC-cmd997 opened this issue Dec 18, 2021 · 2 comments

Comments

@DMC-cmd997
Copy link

nohup ./record/record_new.sh twitcastffmpeg "054109" -f 1080p,720p,480p,360p,worst -l 30 -o "record_video/twitcast" -dt 1 >/dev/null 2>log &

系统:Ubuntu 18.04.6

log日志在这样的

[2021-12-18 21:57:35] metadata main https://twitcasting.tv/054109 status 1
[2021-12-18 21:57:35] record start: PID=2652, PART_URL=054109, STREAM_ID=713870452, STREAM_URL=, FNAME=twitcast_054109_20211218_215735_713870452.ts
[2021-12-18 21:57:45] record already stopped
[2021-12-18 21:57:45] record_video/twitcast/twitcast_054109_20211218_215735_713870452.ts file not exist remove log
[2021-12-18 21:57:45] record end too early retry after 170 seconds
[2021-12-18 22:00:35] metadata main https://twitcasting.tv/054109 status 1
[2021-12-18 22:00:35] record start: PID=2767, PART_URL=054109, STREAM_ID=713870452, STREAM_URL=, FNAME=twitcast_054109_20211218_220035_713870452.ts
[2021-12-18 22:00:45] record already stopped
[2021-12-18 22:00:45] record_video/twitcast/twitcast_054109_20211218_220035_713870452.ts file not exist remove log
[2021-12-18 22:00:45] record end too early retry after 170 seconds
[2021-12-18 22:03:35] metadata main https://twitcasting.tv/054109 status 1
[2021-12-18 22:03:36] record start: PID=2957, PART_URL=054109, STREAM_ID=713870452, STREAM_URL=, FNAME=twitcast_054109_20211218_220336_713870452.ts
[2021-12-18 22:03:46] record already stopped
[2021-12-18 22:03:46] record_video/twitcast/twitcast_054109_20211218_220336_713870452.ts file not exist remove log
[2021-12-18 22:03:46] record end too early retry after 170 seconds
[2021-12-18 22:06:36] metadata main https://twitcasting.tv/054109 status 1
[2021-12-18 22:06:36] record start: PID=3118, PART_URL=054109, STREAM_ID=713870452, STREAM_URL=, FNAME=twitcast_054109_20211218_220636_713870452.ts
[2021-12-18 22:06:46] record already stopped
[2021-12-18 22:06:46] record_video/twitcast/twitcast_054109_20211218_220636_713870452.ts file not exist remove log
[2021-12-18 22:06:46] record end too early retry after 170 seconds

@SekiBetu
Copy link
Contributor

#安装python3相关录制工具
python3 -m pip install --user --upgrade pip
pip3 install --user --upgrade git+https://github.com/streamlink/streamlink.git
pip3 install --user --upgrade git+https://github.com/ytdl-org/youtube-dl.git
pip3 install --user --upgrade git+https://github.com/soimort/you-get.git
echo 'export PATH=$PATH:/usr/local/bin'>>~/.bashrc
echo 'export PATH=$HOME/.local/bin:$PATH'>>~/.bashrc
export PATH=$PATH:/usr/local/bin
export PATH=$HOME/.local/bin:$PATH
source ~/.bashrc

@DMC-cmd997
Copy link
Author

试过了,还是不行,YouTubeFFmpeg倒是可以录了。已经改用用twitcast录了,谢谢。
我还有一个问题。录制nico会限,脚本这样写对吗?
nohup ./record/record_new.sh nicoch "macoto2525" –nico-id [email protected] -nico-psw 123456 -f 1080p,720p,480p,360p,worst -l 30 -o "record_video/macoto" -dt 1 >/dev/null 2>log &

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

2 participants