Skip to content

[Help] merge 模式中一直等待上传 Found flv files in /Videos Skipping. #208

Closed

Description

@WernerHai

国外服务器没有gpu搭建的,没有配置教程中第三步。
运行record.sh成功开启录制,直播结束后发现Videos里面都是一段段几分钟的,后台设置是整段录制后台设置。

运行scan.sh提示:
[INFO] - [2025-03-18 14:35:11,366 bilive scan] - Found flv files in /root/bilive/Videos/131220. Skipping.
[INFO] - [2025-03-18 14:35:11,366 bilive scan] - There is no file recorded. Check again in 120 seconds.

运行upload.sh提示:
[INFO] - [2025-03-18 14:46:43,222 bilive upload] - Empty queue, wait 2 minutes and check again.
[INFO] - [2025-03-18 14:48:43,223 bilive upload] - wait for 20 seconds
[INFO] - [2025-03-18 14:49:03,223 bilive upload] - Empty queue, wait 2 minutes and check again.
请问是什么问题?

Activity

  1. timerring commented on Mar 18, 2025

    @timerring
    Owner

    这种情况只会在 merge 中产生,所以你的 config 中配置模式的应该是 merge 模式吧。

  2. self-assigned this
    on Mar 18, 2025
  3. timerring commented on Mar 18, 2025

    @timerring
    Owner

    如果是 merge 的话,需要等待该场直播的内容都录制完了才会自动检测并且合并上传。所以耐心等待即可。

    另外录制一段一段可能是多种原因,例如:

    • 主播网络波动
    • 主播和其他房间进行连麦,这时双方的录制都会新开一个流,所以会产生一个新录播文件。
    • b 站服务器推流波动
  4. WernerHai commented on Mar 18, 2025

    @WernerHai
    Author

    是merge,直播已经结束了,凌晨一点多结束了
    [INFO] - [2025-03-18 00:55:53,577 bilive scan] - There is no file recorded. Check again in 120 seconds.
    [INFO] - [2025-03-18 00:57:53,577 bilive scan] - There is no file recorded. Check again in 120 seconds.
    [INFO] - [2025-03-18 00:59:53,578 bilive scan] - There is no file recorded. Check again in 120 seconds.
    [INFO] - [2025-03-18 01:01:53,578 bilive scan] - There is no file recorded. Check again in 120 seconds.
    [INFO] - [2025-03-18 01:03:53,579 bilive scan] - There is no file recorded. Check again in 120 seconds.
    [INFO] - [2025-03-18 01:05:53,580 bilive scan] - Found flv files in /root/bilive/Videos/131220. Skipping.
    [INFO] - [2025-03-18 01:05:53,580 bilive scan] - There is no file recorded. Check again in 120 seconds.
    [INFO] - [2025-03-18 01:07:53,581 bilive scan] - Found flv files in /root/bilive/Videos/131220. Skipping.
    [INFO] - [2025-03-18 01:07:53,581 bilive scan] - There is no file recorded. Check again in 120 seconds.
    [INFO] - [2025-03-18 01:09:53,582 bilive scan] - Found flv files in /root/bilive/Videos/131220. Skipping.
    [INFO] - [2025-03-18 01:09:53,582 bilive scan] - There is no file recorded. Check again in 120 seconds.

  5. WernerHai commented on Mar 18, 2025

    @WernerHai
    Author

    所以录制成一段段的,要合并视频就必须要有GPU支持吗

  6. timerring commented on Mar 18, 2025

    @timerring
    Owner

    这种情况可能有中断或者波动的情况,应该就是我说的上面的几种情况之一,估计可能那一段视频的 metadata 也是不完整的。可以用 ffprobe xxx.flv 检查一下视频文件。

    最简单的解决方法就是删除那一段 flv 视频文件,剩下的 mp4 文件会自动合并上传。

  7. timerring commented on Mar 18, 2025

    @timerring
    Owner

    所以录制成一段段的,要合并视频就必须要有GPU支持吗

    与 GPU 无关,因为 CPU 也能压制视频,如果 GPU_EXIST 为 False 就是用 CPU 压制。我给 CPU 的 ffmpeg 压制精调了参数,不会有问题,合并也是用的 ffmpeg。

  8. WernerHai commented on Mar 18, 2025

    @WernerHai
    Author

    删除那个flv后,就自动合并上传了,但是弹幕、礼物都没记录,是正常的吗

  9. timerring commented on Mar 18, 2025

    @timerring
    Owner

    删除那个flv后,就自动合并上传了,但是弹幕、礼物都没记录,是正常的吗

    才发现你填的短链接的房间号,请按照文档找到真正的房间号吧。短链接只是用来推广房间的,因此从短链接是获取不到弹幕服务器的。

    https://bilive.timerring.com/record.html#%E5%BD%95%E5%88%B6%E7%9A%84%E5%BC%B9%E5%B9%95-xml-%E4%BB%A5%E5%8F%8A-jsonl-%E4%B8%BA%E7%A9%BA

  10. changed the title [-][Help] 成功录制指定直播间视频,但不是完整一个视频,无法上传[/-] [+][Help] merge 模式中一直等待上传 Found flv files in /Videos Skipping.[/+] on Mar 18, 2025
  11. timerring commented on Mar 18, 2025

    @timerring
    Owner

    为了方便后面的使用者排查 issue,这个 issue 我修改下主要问题的标题,然后先暂时关了,如果有新的问题的话欢迎提新的 issue。

  12. Repository owner locked and limited conversation to collaborators on May 1, 2025
  13. converted this issue into a discussion #322 on May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions