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 best solutions below
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
- Image based steganography that survives resizing?
- Strange picture noise at the beginning of live stream
- Android: Video Player Like Dailymotion App
- Cloudfront stream only part of the video
- Realtime/zero-latency video stream: what codec parameters to use?
- How to toggle mjpg_streamer on and off
- Cam streaming Flash client/widget
- ffserver - invalid codec name libvpx
- Only play rtsp video using VideoView or MediaPlayer after 3 minutes or more
- Why so many partial content requests in Firefox when streaming mp4 video on Apache?
- IIS 8 video streaming concurrency
- Why segment files into chunks for HTTP streaming?
- Error being thrown by ffmpeg and ffserver, not getting a stream
- How to send HTTP chunked response to emulate a video stream using Proxygen and Folly?
- Youtube Stats for Nerds: What does the (137/140) behind "DASH: yes" stand for?
Related Questions in RTSP
- Strange picture noise at the beginning of live stream
- ffmpeg stream rtsp to mpegts
- Only play rtsp video using VideoView or MediaPlayer after 3 minutes or more
- C# Vlc ActiveX Play rtsp stream
- Applying skin to VLC activex plugin to play RTSP source files in web pages
- WPF VLC PluginV2 Cache time delay
- Assertion error when encoding video using ffmpeg library on visual studio c++
- Failed to create element 'rtpbin'
- H.264 decoding error log from RTSP stream
- Check RTSP URI during onCreate in Android
- Live555 RTSPServer object destroyed improperly or the library bug?
- Recieving RTSP stream With JavaCV Library
- How to send data (input stream type - not video source ) to rtsp server
- How to make a mjpeg stream from pixelarray
- Why vxgplayer keeps loading in https?
Related Questions in VIDEOCHAT
- Split audio route in active VoiceChat AVAudioSession to play at AirPlay but record using a device
- Is it possible to user quickblox on my own server?
- Videochat implementation for Nativescript
- How can I allow stop the video track and resend the video track using twilio video depending on the user preference?
- Live streaming using Flash
- Using Flash Media Server (FMS) with RTMP for live video chat
- APIs for videochatting
- Start video chat without user interaction - Android
- video chat. red5 faster/needed?? why not just p2p?
- Getting Noise and echo in Quickblox audio/video chat Sample
- One to One video call between Ai and User
- Expo video-chat with Agora SDK
- I don't want to include audio in screen recordings this app
- How to reduce delay in playing rtsp live video stream in java using vlcj
- Problem in creating A Video Chat App With WebRTC
Related Questions in VLCJ
- how to detect connection lost in vlcj
- vlcj MediaPlayer: how to detect when video has finished playing
- Wrong Color DirectMediaPlayer VLCj and Libgdx
- Vlcj not displaying Video in JavaFx 8
- Old Fashioned Java countdown alarm
- Live Stream RTSP using VLCJ Mac OS
- which is better? JMF or VLCJ. especially for streaming youtube videos
- VLCJ - playing a rtsp stream video in eclipse, but not after make executable JAR
- VLC is unable to open th MRL when using vlcj in Java
- Don't show file path when playing video using VLCJ
- Capturing with vlcj only gives a corrupt video file
- vlcj video not showing, but video sound is heard
- JME3 and VLCJ optimisation
- Playing a video from an array of vlcj player
- VLCJ: Time code missing when saving a video stream from an embedded media player
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)
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?
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