lovezzzxxx/liverecord

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

Opened this issue · 2 comments

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

#安装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

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