bytelang / kplayer-go

A live streaming tool more suitable for non-graphical servers
https://kplayer.net
Apache License 2.0
756 stars 72 forks source link

配置文件中avg_quality设置为0时候 #36

Closed yuban10703 closed 1 year ago

yuban10703 commented 2 years ago

这是我的配置文件

{
    "version": "2.0.0",
    "resource": {
        "lists": [
            "/home/ubuntu/kplayer/videos"
        ],
        "extensions": [
            "mkv"
        ]
    },
    "output": {
        "reconnect_internal": 3,
        "lists": [
            {
                "path": "rtmp://xxxxxxxxxxxxx",
                "unique": "aaa"
            },
            {
                "path": "rtmp://xxxxxxxxxxx",
                "unique": "me"
            }
        ]
    },
    "play": {
        "encode": {
            "video_width": 854,
            "video_height": 480,
            "video_fps": 24,
            "audio_channel_layout": 3,
            "audio_sample_rate": 44100,
            "bit_rate": 1,
            "avg_quality": 0
        },
        "reconnect_internal": 3,
        "play_model": "loop",
        "cache_on": true,
        "skip_invalid_resource": true,
        "rpc": {
            "on": true,
            "http_port": 4156,
            "grpc_port": 4157,
            "address": "0.0.0.0"
        }
    }
}

报错如下

ubuntu@VM-4-13-ubuntu:~/kplayer$ ./kplayer play start
kplayer for golang v0.5.6 Copyright(c) 2019-2022 the ByteLang Studio (https://kplayer.bytelang.cn)
  libkplayer version: v1.4.14 plugin version: 1.5.1 license version: v1
  toolchains GNU(10.3.1) C++ Standard 17 on Linux-x86_64-5.18.14-arch1-1
  build with build-chains cmake(3.21.3) type with Release
  Hope you have a good experience.
-------------------------------------------------------------------------------------------------------------------
INFO[2022-09-29 22:55:08] grpc server listening                         address=0.0.0.0 port=4157
INFO[2022-09-29 22:55:08] http server listening                         address=0.0.0.0 port=4156
ERRO[2022-09-29 22:55:08] output add failed. error: Generic error in an external library [-542398533]  error="Generic error in an external library [-542398533]" path="rtmp://xxxxxxxxxxxxxxxxxxx" unique=aaa
INFO[2022-09-29 22:55:08] will be reconnect on after 3 seconds          path="rtmp://xxxxxxxxxxxxxxxxxxx" unique=aaa
INFO[2022-09-29 22:55:08] core start up success
ERRO[2022-09-29 22:55:08] output add failed. error: Generic error in an external library [-542398533]  error="Generic error in an external library [-542398533]" path="rtmp://xxxxxxxxxxxxxxxx" unique=me
INFO[2022-09-29 22:55:08] kplayer start success
INFO[2022-09-29 22:55:09] checked play resource                         duration=7610 hit_cache=false path="/home/ubuntu/kplayer/videos/2021-09-10 17-07-46.mkv" unique=FJJzqe
ERRO[2022-09-29 22:55:09] core return error                             code=-542398533 error="[P17KPEncodeException] error: Generic error in an external library [-542398533]. file: codec/KPEncode.cpp. line: 175"
INFO[2022-09-29 22:55:09] core shut down success