I have developed a video chatting application,but the video is displayed with high latency.video is streamed over rtsp.how to reduce the delay in playing the rtsp stream?
How to reduce delay in playing rtsp live video stream in java using vlcj
18.9k views Asked by Raji A C At
2
There are 2 answers
0
Eliasz Kubala
On
Currently you have to configure like this
String[] options = {
":file-caching=0",
":network-caching=300",
":sout = #transcode{vcodec=x264,vb=800,scale=0.25,acodec=none,fps=23}:display :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep"};
mediaPlayer.playMedia(address, options);
The most important is network-caching=300. Defualt is 1000 ms.
Related Questions in VIDEO-STREAMING
- Can I use local resources for mp4 playback?
- Google Chrome is consuming a lot of CPU on a video call?
- Agora Broadcast live streaming black screen on ios browsers when starting a stream agora-rtc-sdk-ng react web app
- Is there a way to add audio select button in controls of react-player along with captions select button?
- Issues Starting Real-Time Streaming onClick of an Icon in an Android App
- Unable to embed a local HLS stream into a browser
- How to control start and stop video streaming from ESP32-CAM?
- LiveKit: Stream audio and video using python sdk
- How to control fetch-size of Expo-AV Video component?
- Stream video through a nodejs proxy server
- API in nodeJS which serves a video from buffer, which is hosted on iis, working in localhost but not through domain name
- Flask Streaming mp4 video works perfectly on windows but not mobile phone
- bitmobin Streaming url video casting issue via DLNA service
- Sometimes when video is encoded using the Video Toolbox Encoder for web live streaming, the decoder output always has a 4 frame latency
- Scan QR code and redirect on successful scan opencv flask python
Related Questions in RTSP
- How can I integrate VLC in angular?
- How stream with gstreamer and open the stream on any computer
- Python + VLC + RTSP - cannot take screenshot
- python, vlc, rtsp. Screenshots doesn't work
- RTSP camera sub stream url
- Can we restrict client port range for GStreamer rtspsrc element?
- Android - RTSP Streaming from Camera and view from remote location
- Re-Identification while using YOLOv8 + ByteTrack on real time RTSP stream
- RTSP Stream Won't Start/Times out When Adding `rtspsrc` to Running Gstreamer Pipeline
- How to get frame number from FFMPEG RTSP stream
- Capturing rtspsrc headers in gstreamer
- Cannot open RTSP videostream with OpenCV in Java
- CCTV c# in WPF Forms exit button
- OpenCV real time streaming video capture is slow. How to get synced with real time?
- Encountering issues when attempting to stream RTMP with Jetson Nano using Gstreamer and OpenCV
Related Questions in VIDEOCHAT
- Expo can I use Stream's React Native video call with Expo-Dev-Client?
- Integrate XMPP Openfire STUN server with client side js web application
- React PeerJs Issue when building Video-Chat: Uncaught (in promise) DOMException: The play() request was interrupted by a new load request
- I don't want to include audio in screen recordings this app
- Expo video-chat with Agora SDK
- One to One video call between Ai and User
- When renegotiating a webrtc connection, stream gets "empty"
- User-connected event is not firing in a video chat app (Angular, PeerJS and Socket.IO)
- Flutter WebRTC with Firebase : Video not displaying in Peer-to-Peer connection
- Flutter Web SDK for a videochat
- Socket.IO emitting the event on the wrong Session
- WebRTC replaceTrack won't work for audio unless I replace video too
- How can I screen share and camera video same time in different tracks?
- AVAssetWriter not working with videoChat mode of AVAudioSession (iPhone 14 Pro only)
- React Native Building a Video Call function using expo go
Related Questions in VLCJ
- vlcj: two videos same volume
- How can I know when a MediaDiscoverer has finished discovering media?
- How can I ensure the correct display of Japanese and other foreign characters obtained from the MetaApi get() method?
- How to display a VLCj EmbeddedMediaPlayerComponent on top of JPanel in Java?
- VLCJ Media Event Listener not Firing
- How to use VLCJ embedded media list player properly
- How can I play a video with vlcj in the background in JavaSwing?
- Properly setting VLCJ tonemapping
- Errors when playing rtsp video with vlcj library
- My repaint() isn't doing anything and I'm at a complete loss
- How to interpret java kernel traces
- Open RTP stream in JPanel using VlcJ
- How to run vlcj in a separate thread in background just to calculate the duration of the media file
- javafx vlcj video freezes after few seconds while audio keeps playing
- vlcj: change video surface wthout stopping MediaPlayer
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
What video codec are you using? You should be able to reduce latency to <1s using following options:
:live-caching=0to input handling options (e.g. when opening webcam):sout-mux-caching=10(or some other low value) to stream optionsWith following line used to stream webcam video (notice: no audio) to my Android I was able to slightly reduce latency:
:sout=#transcode{vcodec=mp4v,vb=800,fps=30,scale=0.25,acodec=none}:rtp{sdp=rtsp://:8554/} :sout-keep :sout-mux-caching=10