ZLMediaKit / ZLMediaKit

WebRTC/RTSP/RTMP/HTTP/HLS/HTTP-FLV/WebSocket-FLV/HTTP-TS/HTTP-fMP4/WebSocket-TS/WebSocket-fMP4/GB28181/SRT server and client framework based on C++11
https://docs.zlmediakit.com
Other
13.69k stars 3.38k forks source link

Linux screen appears to be garbled. #3858

Open IOTWord opened 2 weeks ago

IOTWord commented 2 weeks ago

Here is the translation of the provided GitHub Flavored Markdown text:

Desktop screen appears to be twitching or flickering on Linux image

Phenomenon Description

How to reproduce?

Call the interface /index/api/getSnap parms.put("url","rtsp://192.168.1.108:554/rtp/流ID"); _parms.put("timeoutsec",15); _parms.put("expiresec",15);

Related logs or screenshots

Expand to view detailed logs

```
#Please paste the detailed log here!
```

Configuration

[ffmpeg] bin=/root/ffmpeg/azffmpeg/bin/ffmpeg cmd=%s -re -i %s -c:a aac -strict -2 -ar 44100 -ab 48k -c:v libx264 -f flv %s log=./ffmpeg/ffmpeg.log restart_sec=0 snap=%s -i %s -y -f mjpeg -frames:v 1 -an %s

Please expand to view detailed configuration

```ini
#Please paste the contents of the config.ini file here!
```

Various environment information

linux上截图出现花屏 image

现象描述

如何复现?

调用接口 /index/api/getSnap parms.put("url","rtsp://192.168.1.108:554/rtp/流ID"); parms.put("timeout_sec",15); parms.put("expire_sec",15);

相关日志或截图

展开查看详细日志

```
#详细日志粘在这里!
```

配置

[ffmpeg] bin=/root/ffmpeg/azffmpeg/bin/ffmpeg cmd=%s -re -i %s -c:a aac -strict -2 -ar 44100 -ab 48k -c:v libx264 -f flv %s log=./ffmpeg/ffmpeg.log restart_sec=0 snap=%s -i %s -y -f mjpeg -frames:v 1 -an %s

展开查看详细配置

```ini
#config.ini内容粘在这里!
```

各种环境信息

TRANS_BY_GITHUB_AI_ASSISTANT

xiongguangjie commented 2 weeks ago

Do not use UDP, if FFmpeg pulls the RTSP stream with RTSP screenshot, you need to specify TCP (details Baidu).

不要使用udp,如果rtsp截图ffmpeg拉取rtsp流需要指定tcp(详情百度)

TRANS_BY_GITHUB_AI_ASSISTANT