Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7020779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:21:45+00:00 2026-05-27T23:21:45+00:00

I am trying to stream desktop using vlcj. But the streaming stops after 13

  • 0

I am trying to stream desktop using vlcj. But the streaming stops after 13 or 15 seconds.

public static void main(String[] args) throws IOException, InterruptedException {


NativeLibrary.addSearchPath("libvlc", WindowsRuntimeUtil.getVlcInstallDir());

String media = "screen://";

String [] options ={ ":sout =#transcode{vcodec=h264,vb=56,fps=12,scale=0.5,width=176,height=144,acodec=mp4a,ab=24,channels=1,samplerate=44100} :rtp{sdp=rtsp://:5544/ok.mp4} :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep"} ;  

System.out.println("Streaming '" + media + "' to '" + options + "'");

MediaPlayerFactory mediaPlayerFactory = new MediaPlayerFactory();
final HeadlessMediaPlayer mediaPlayer = mediaPlayerFactory.newMediaPlayer();
mediaPlayer.playMedia(media, options);
}

I was setting the options inorder to play the streaming in android 2.2 phones.

I am using 64bit OS Windows 7, 32bit vlc and 32 bit JVM.
I think the code is correct..

Can anybody give me a solution for this?

Is this a libvlc issue or vlcj issue??

Or problem for vlc with 64bit OS??

If there is any other solution to stream desktop for playing in android,help is appreciated

Please help me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:21:46+00:00Added an answer on May 27, 2026 at 11:21 pm

    I found the solution for this problem.

    The problem is no more when i removed this line

    NativeLibrary.addSearchPath("libvlc", WindowsRuntimeUtil.getVlcInstallDir());
    

    I didn’t understand how this got correct after removing this line.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to stream some youTube videos using the MPMoviePlayerController but I'm having some
I'm trying to stream video to a server from another machine using Java and
I'm trying to stream sound from my soundcard using sox's default audio device and
I am currently trying to stream content out to the web after a trans-coding
I am trying to convert a flv video to mp4 using a264 , but
I am trying to stream a file using the audio HTML5 tag. I have
I am trying to stream dynamically generated data to a client over HTTP using
I have a zipped file which I am trying to stream to client: public
Hi everyone I am trying to stream multimedia data using chunked encoding. So I
I'm trying to stream video with static IP : http://38.117.88.148/GemTVLink via iPhone. Can you

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.