rtp2httpd icon indicating copy to clipboard operation
rtp2httpd copied to clipboard

视频快照相关问题

Open xxllllll opened this issue 1 year ago • 2 comments

在Macos上使用APTV时,调用视频快照刷新预览图时出现问题,尝试了三个请求方式 一、在流媒体 URL 后添加 snapshot=1 参数 二、在APTV的自定义Header中添加Accept=image/jpeg 三、在APTV的自定义Header中添加X-Request-Snapshot=1 查看debug日志可以发现ffmpeg是成功的

08:45:02 DEBUG [Worker 0] Snapshot: Executing ffmpeg: ffmpeg -hwaccel vaapi -loglevel error -f mpegts -i /proc/self/fd/12 -frames:v 1 -q:v 8 -f image2 -y /proc/self/fd/14 2>&1

08:45:02 DEBUG [Worker 0] Snapshot: JPEG conversion successful (128606 bytes)

08:45:02 DEBUG [Worker 0] zerocopy_queue_add_file: Queued file fd=14 offset=0 size=128606

08:45:02 INFO [Worker 0] Snapshot: Sent JPEG response (128606 bytes)

08:45:02 DEBUG [Worker 0] Zero-copy: sendfile complete (128606 bytes)

但是当我使用直播观看时,发现画面是一帧一帧的,感觉像是ffmpeg实时再截图然后传输过来播放。 详细的debug日志如下,不知道是什么问题,劳烦佬指教下。

debug.log

xxllllll avatar Nov 24 '25 01:11 xxllllll

这个功能是给客户端内部用的,你在m3u上加那服务器返回的就是image而不是视频流了。

jelliesfrothy0q-stack avatar Nov 24 '25 01:11 jelliesfrothy0q-stack

需要 APTV 去做支持,目前是不支持的

https://github.com/Kimentanm/aptv/issues/147

stackia avatar Nov 24 '25 03:11 stackia