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

循环播放mp3,第一次全部播放结束后,第二次循环从第一个开始播放就报错 #126

Closed Y00z closed 1 year ago

Y00z commented 1 year ago

core return error code=-1094995529 error="decode failed. file path: /video/111.mp3. error: Invalid data found when processing input [-1094995529]. file: codec/KPMix.cpp. line: 298"

配置这样的 { "lists": [ { "groups": [ { "path": "/video/bg.jpg", "media_type": "video", "persistent_loop": true }, { "path": "/video/111.mp3", "media_type": "audio" } ] }, { "groups": [ { "path": "/video/bg.jpg", "media_type": "video", "persistent_loop": true }, { "path": "/video/222.mp3", "media_type": "audio" } ] } ] }

"play": { "start_point": 1, "play_model": "loop", "encode_model": "rtmp", "cache_on": false, "cache_uncheck": false, "skip_invalid_resource": false, "fill_strategy": "tile", "rpc": { "on": true, "http_port": 4156, "grpc_port": 4157, "address": "127.0.0.1" }, "encode": { "video_width": 854, "video_height": 480, "video_fps": 1, "audio_channel_layout": 3, "audio_sample_rate": 44100, "bit_rate": 0, "avg_quality": 0 } },