[GH-ISSUE #3223] Lag in video streaming #2584

Closed
opened 2026-05-05 13:39:51 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @sayan-futurehook on GitHub (Dec 20, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/3223

Bug Description

I am trying to stream video from a RTSP camera to mobile app. I am using FRPS on AWS EC2 ubuntu and FRPC on a Raspberry pi. I am tunnelling the RTSP port from my local network to my EC2 instance ip and streaming the video, on mobile.
I am able to stream the video using FRP, but there is a lot of delay and choppy. But when I am putting local ip there is not lag and choppiness.
Is there any way to fix, or optimize the lag.

frpc Version

0.44.0

frps Version

0.44.0

System Architecture

frps on ubuntu/amd64, frpc on raspbian/arm

Configurations

# frps.ini
[common]
bind_port = 7000
# frpc.ini
[common]
server_addr = ec2InstanceIp
server_port = 7000

[ssh]
type = tcp
local_ip = 192.0.0.65
local_port = 554
remote_port = 10000

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @sayan-futurehook on GitHub (Dec 20, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/3223 ### Bug Description I am trying to stream video from a RTSP camera to mobile app. I am using FRPS on AWS EC2 ubuntu and FRPC on a Raspberry pi. I am tunnelling the RTSP port from my local network to my EC2 instance ip and streaming the video, on mobile. I am able to stream the video using FRP, but there is a lot of delay and choppy. But when I am putting local ip there is not lag and choppiness. Is there any way to fix, or optimize the lag. ### frpc Version 0.44.0 ### frps Version 0.44.0 ### System Architecture frps on ubuntu/amd64, frpc on raspbian/arm ### Configurations ```ini # frps.ini [common] bind_port = 7000 ``` ```ini # frpc.ini [common] server_addr = ec2InstanceIp server_port = 7000 [ssh] type = tcp local_ip = 192.0.0.65 local_port = 554 remote_port = 10000 ``` ### Affected area - [ ] Docs - [ ] Installation - [X] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:39:51 -06:00
Author
Owner

@fatedier commented on GitHub (Dec 20, 2022):

The lag is rely on your network delay between frpc and frps.

<!-- gh-comment-id:1359193552 --> @fatedier commented on GitHub (Dec 20, 2022): The lag is rely on your network delay between frpc and frps.
Author
Owner

@sayan-futurehook commented on GitHub (Dec 20, 2022):

The lag is rely on your network delay between frpc and frps.

This is the speedtest on frpc
Screenshot 2022-12-20 at 4 59 55 PM

frps is in aws ec2

Is there any way to optimize?

<!-- gh-comment-id:1359219546 --> @sayan-futurehook commented on GitHub (Dec 20, 2022): > The lag is rely on your network delay between frpc and frps. This is the speedtest on frpc ![Screenshot 2022-12-20 at 4 59 55 PM](https://user-images.githubusercontent.com/110037874/208657030-4cc33bd7-238e-42b4-871e-b77480403f82.png) frps is in aws ec2 Is there any way to optimize?
Author
Owner

@Becods commented on GitHub (Dec 20, 2022):

Select the server area nearest to you.

Or try xtcp.

<!-- gh-comment-id:1359599788 --> @Becods commented on GitHub (Dec 20, 2022): Select the server area nearest to you. Or try [xtcp](https://github.com/fatedier/frp#p2p-mode).
Author
Owner

@github-actions[bot] commented on GitHub (Jan 20, 2023):

Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

<!-- gh-comment-id:1397784306 --> @github-actions[bot] commented on GitHub (Jan 20, 2023): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#2584
No description provided.