bytelang / kplayer-go

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

Generic error in an external library [-542398533] #69

Closed yuban10703 closed 1 year ago

yuban10703 commented 1 year ago
root@Ubuntu:~/kplayer# ./kplayer play start -c config.json.me
kplayer for golang v0.5.8 Copyright(c) 2019-2023 the ByteLang Studio (https://kplayer.bytelang.cn)
  libkplayer version: v1.5.4-1-ge0cab16 plugin version: 1.5.1 license version: v1
  toolchains GNU(10.3.1) C++ Standard 17 on Linux-x86_64-6.0.2-arch1-1
  build with build-chains cmake(3.21.3) type with Release
  Hope you have a good experience.
-------------------------------------------------------------------------------------------------------------------
INFO[2023-02-24 22:53:43] core start up success
ERRO[2023-02-24 22:53:43] output add failed. error: Generic error in an external library [-542398533]  error="Generic error in an external library [-542398533]" path="rtmp://live-push.bilivideo.com/live-bvc/?streamna" unique=me_b
INFO[2023-02-24 22:53:43] will be reconnect on after 3 seconds          path="rtmp://live-push.bilivideo.com/live-bvc/?streamname=live" unique=me_b
INFO[2023-02-24 22:53:43] kplayer start success
INFO[2023-02-24 22:53:43] checked play resource                         duration=7610 end=-1 hit_cache=false path="/nas/杂物/录播/2021-09-10 17-07-46.mkv" seek=0 type=resource_input_type_single unique=6niqay
ERRO[2023-02-24 22:53:43] core return error                             code=-542398533 error="[P17KPEncodeException] error: Generic error in an external library [-542398533]. file: codec/KPEncode.cpp. line: 194"
INFO[2023-02-24 22:53:43] core shut down success
INFO[2023-02-24 22:53:43] finish play resource                          path="/nas/杂物/录播/2021-09-10 17-07-46.mkv" unique=6niqay
^C

下面是配置文件

{
  "version": "2.0.0",
  "resource": {
    "lists": [
      "/nas/杂物/录播"
    ],
    "extensions": [
      "mkv"
    ]
  },
  "output": {
    "reconnect_internal": 3,
    "lists": [
      {
        "path": "rtmp://live-push.bilivideo.com/live-bvc/?streamname=",
        "unique": "me_b"
      }
    ]
  },
  "play": {
    "encode": {
      "video_width": 854,
      "video_height": 480,
      "video_fps": 24,
      "audio_channel_layout": 3,
      "audio_sample_rate": 44100,
      "bit_rate": 1,
      "avg_quality": 10
    },
    "play_model": "loop",
    "cache_on": true,
    "skip_invalid_resource": true,
    "rpc": {
      "on": false,
      "http_port": 4158,
      "grpc_port": 4159,
      "address": "0.0.0.0"
    }
  }
}
vaptu commented 1 year ago

暂时分析不出来原因,请尝试更换视频文件或者更换Linux发行版本来排除问题

yuban10703 commented 1 year ago

暂时分析不出来原因,请尝试更换视频文件或者更换Linux发行版本来排除问题

0.5.7版本是正常的,我只替换了二进制文件

yuban10703 commented 1 year ago

https://github.com/bytelang/kplayer-go/issues/70

yuban10703 commented 1 year ago

同样的配置文件只要删掉 bit_rate和avg_quality这两个参数,就可以运行,这2个参数是不是有问题...

yuban10703 commented 1 year ago

@vaptu

vaptu commented 1 year ago

尝试换个视频文件还报错吗

yuban10703 commented 1 year ago

尝试换个视频文件还报错吗

我从bilibili下载了个视频,还是一样....

yuban10703 commented 1 year ago
root@nanopik2-s905:~/kplayer# ./kplayer play start
kplayer for golang v0.5.8 Copyright(c) 2019-2023 the ByteLang Studio (https://kplayer.bytelang.cn)
  libkplayer version: v1.5.5 plugin version: 1.5.1 license version: v1
  toolchains GNU(10.3.1) C++ Standard 17 on Linux-aarch64-5.10.104-linuxkit
  build with build-chains cmake(3.21.3) type with Release
  Hope you have a good experience.
-------------------------------------------------------------------------------------------------------------------
INFO[2023-03-30 23:35:03] core start up success
ERRO[2023-03-30 23:35:03] output add failed. error: Generic error in an external library [-542398533]  error="Generic error in an external library [-542398533]" path="rtmp://dag=1" unique=me
INFO[2023-03-30 23:35:03] will be reconnect on after 5 seconds          path="rtmp://live-pushedule=rtmp&pflag=1" unique=me
INFO[2023-03-30 23:35:03] kplayer start success
INFO[2023-03-30 23:35:03] checked play resource                         duration=141 end=-1 hit_cache=false path=/root/1.mp4 seek=0 type=resource_input_type_single unique=6nE7zi
ERRO[2023-03-30 23:35:03] core return error                             code=-542398533 error="[P17KPEncodeException] error: Generic error in an external library [-542398533]. file: codec/KPEncode.cpp. line: 194"
INFO[2023-03-30 23:35:03] core shut down success
INFO[2023-03-30 23:35:03] finish play resource                          path=/root/1.mp4 unique=6nE7zi
ERRO[2023-03-30 23:35:08] output add failed. error: I/O error [-5]      error="I/O error [-5]" path="rtmp://live-push.b5&schedule=rtmp&pflag=1" unique=me
INFO[2023-03-30 23:35:08] will be reconnect on after 5 seconds          path="rtmp://live-push.bilivideo.com/livg=1" unique=me
^C
yuban10703 commented 1 year ago

@vaptu

yuban10703 commented 1 year ago

@vaptu