Results 1 to 13 of 13
  1. #1
    raj.mscking@gmail.com's Avatar
    raj.mscking@gmail.com is offline Senior Member
    Join Date
    Jan 2012
    Location
    TamilNadu
    Posts
    269
    Rep Power
    3

    Default problem wile trying "VLCJ video stream from server to client"

    Hi!

    I am try to make an Java application using swing, to play the video from server, client can only view the video.

    I am new for using Media Work in Java & using VLCJ too,

    i have try by using "vlcj-master".But it showing .dll file missing error on native method..,

    i need your help, Can any one guide me on this / show me a sample to understand the concept please..,

    I am waiting for your guide please..,

    Thank You!

    Have A happy Day..,
    - Raj

  2. #2
    gimbal2 is online now Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,703
    Rep Power
    5

    Default Re: problem wile trying "VLCJ video stream from server to client"

    What about "I am missing a DLL" do you not understand exactly?
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    raj.mscking@gmail.com's Avatar
    raj.mscking@gmail.com is offline Senior Member
    Join Date
    Jan 2012
    Location
    TamilNadu
    Posts
    269
    Rep Power
    3

    Default Re: problem wile trying "VLCJ video stream from server to client"

    Thanks for your response sir!

    i can understand the meaning. when i run the sample code which is getting from the github it seems the variation of 32 & 64 bit OS, But the error is..,


    Java Code:
    Streaming 'C:/Users/Android/Desktop/player_4.0/Wildlife.wmv' to ':sout=#duplicate{dst=std{access=http,mux=ts,dst=127.0.0.1:5555}}'
    vlcj: (Info.java:70)                                 | INFO  | vlcj: 2.1.0
    vlcj: (Info.java:71)                                 | INFO  | java: 1.7.0_45 Oracle Corporation
    vlcj: (Info.java:72)                                 | INFO  | java home: C:\Program Files\Java\jre7
    vlcj: (Info.java:73)                                 | INFO  | os: Windows 7 6.1 x86
    vlcj: (LibVlcFactory.java:189)                       | ERROR | Failed to load native library
    Exception in thread "main" java.lang.RuntimeException: Failed to load the native library.
    
    The error was "Unable to load library 'libvlc': The specified module could not be found.
    ".
    
    The required native libraries are named "libvlc.dll" and "libvlccore.dll".
    
    In the text below <libvlc-path> represents the name of the directory containing "libvlc.dll" and "libvlccore.dll"...
    
    There are a number of different ways to specify where to find the native libraries:
     1. Include NativeLibrary.addSearchPath("libvlc", "<libvlc-path>"); at the start of your application code.
     2. Include System.setProperty("jna.library.path", "<libvlc-path>"); at the start of your application code.
     3. Specify -Djna.library.path=<libvlc-path> on the command-line when starting your application.
     4. Add <libvlc-path> to the system search path (and reboot).
    
    If this still does not work, then it may be necessary to explicitly add the native library directory to the operating
    system configuration - e.g. on Linux this might mean setting the LD_LIBRARY_PATH environment variable, or adding
    configuration to the "/etc/ld.so.conf" file or the "/etc/ld.so.conf.d" directory. Of these options, setting
    LD_LIBRARY_PATH is the only one that would not require root privileges.
    
    Finally, it is not possible to mix CPU architectures - it is not possible for a 64-bit Java Virtual Machine to load
    32-bit native libraries.
    
    More information may be available in the log, specify -Dvlcj.log=DEBUG on the command-line when starting your application.
    
    	at uk.co.caprica.vlcj.binding.LibVlcFactory.create(LibVlcFactory.java:191)
    	at uk.co.caprica.vlcj.player.MediaPlayerFactory.<init>(MediaPlayerFactory.java:236)
    	at uk.co.caprica.vlcj.test.streaming.StreamHttp.main(StreamHttp.java:44)
    - Raj

  4. #4
    raj.mscking@gmail.com's Avatar
    raj.mscking@gmail.com is offline Senior Member
    Join Date
    Jan 2012
    Location
    TamilNadu
    Posts
    269
    Rep Power
    3

    Default Re: problem wile trying "VLCJ video stream from server to client"

    Dear gimbal2!

    i wants to learn and do myself "play the video stream from server to client"..,
    i need some sample or learning site. because i am new on the Media on VLCJ in java..,

    I need your Guide please gimbal2..,
    - Raj

  5. #5
    gimbal2 is online now Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,703
    Rep Power
    5

    Default Re: problem wile trying "VLCJ video stream from server to client"

    I can't help you if you don't spend the time properly learning Java first. The fact that you can't even seem to understand what a DLL is tells me that you don't know very much about computers and operating systems either, and you are not in the frame of mind to go find out either; its a simple google away.

    Sorry, I really can't help you. You need to study more.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  6. #6
    raj.mscking@gmail.com's Avatar
    raj.mscking@gmail.com is offline Senior Member
    Join Date
    Jan 2012
    Location
    TamilNadu
    Posts
    269
    Rep Power
    3

    Default Re: problem wile trying "VLCJ video stream from server to client"

    Thanks Mr.gimbal2!
    Yes! you are right sir, i wants to learn more about dll. Surely I will fallow your idea..,

    if you can let me to know the place where can learn the "video streaming on server by using VLCJ"

    otherwise also i can learn. but it will take time to find perfect learning place sir..,

    Thanks for your help sir,

    Have A Happy Day..,
    - Raj

  7. #7
    raj.mscking@gmail.com's Avatar
    raj.mscking@gmail.com is offline Senior Member
    Join Date
    Jan 2012
    Location
    TamilNadu
    Posts
    269
    Rep Power
    3

    Default Re: problem wile trying "VLCJ video stream from server to client"

    Hi!

    I reduce the above error by download and replace the new libvlc.dll & libvlccore.dll to "C:\Windows\System32" for windows 7 32 bit (My OS),

    My error is

    Java Code:
    Streaming 'C:/Users/Android/Desktop/player_4.0/Wildlife.wmv' to ':sout=#duplicate{dst=std{access=http,mux=ts,dst=127.0.0.1:5555}}'
    vlcj: (Info.java:70)                                 | INFO  | vlcj: <version not available>
    vlcj: (Info.java:71)                                 | INFO  | java: 1.7.0_45 Oracle Corporation
    vlcj: (Info.java:72)                                 | INFO  | java home: C:\Program Files\Java\jre7
    vlcj: (Info.java:73)                                 | INFO  | os: Windows 7 6.1 x86
    vlcj: (LibVlcFactory.java:164)                       | INFO  | vlc: 2.0.0 Twoflower, changeset 2.0.0-0-g421a4fc
    vlcj: (LibVlcFactory.java:165)                       | INFO  | libvlc: libvlc.dll
    vlcj: (LibVlcFactory.java:177)                       | FATAL | This version of vlcj requires version 2.1.0 or later of libvlc, found too old version 2.0.0 Twoflower
    Exception in thread "main" java.lang.RuntimeException: This version of vlcj requires version 2.1.0 or later of libvlc, found too old version 2.0.0 Twoflower.
    	at uk.co.caprica.vlcj.binding.LibVlcFactory.create(LibVlcFactory.java:178)
    	at uk.co.caprica.vlcj.player.MediaPlayerFactory.<init>(MediaPlayerFactory.java:236)
    	at uk.co.caprica.vlcj.test.streaming.StreamHttp.main(StreamHttp.java:44)
    i try on Google to download the "later of libvlc" version above 2.1.0 . But i unable to find it..,

    Can guide me please..,
    Last edited by raj.mscking@gmail.com; 01-16-2014 at 01:20 PM.
    - Raj

  8. #8
    raj.mscking@gmail.com's Avatar
    raj.mscking@gmail.com is offline Senior Member
    Join Date
    Jan 2012
    Location
    TamilNadu
    Posts
    269
    Rep Power
    3

    Default Re: problem wile trying "VLCJ video stream from server to client"

    Hi!

    It is enough to guide where to download the latest version of libvlc.dll..,

    Thank You..,
    - Raj

  9. #9
    raj.mscking@gmail.com's Avatar
    raj.mscking@gmail.com is offline Senior Member
    Join Date
    Jan 2012
    Location
    TamilNadu
    Posts
    269
    Rep Power
    3

    Default Re: problem wile trying "VLCJ video stream from server to client"

    Hi!

    It is enough to guide where to download the latest version of (above 2.1.0) libvlc.dll..,

    Thank You..,
    - Raj

  10. #10
    gimbal2 is online now Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,703
    Rep Power
    5

    Default Re: problem wile trying "VLCJ video stream from server to client"

    I am not going to do the google for you. This is a forum for Java programming questions. If you have trouble with this vlcj that you found somewhere on the net, read its documentation. If that documentation doesn't exist: that is usually a criteria for me to actually not use the technology.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  11. #11
    raj.mscking@gmail.com's Avatar
    raj.mscking@gmail.com is offline Senior Member
    Join Date
    Jan 2012
    Location
    TamilNadu
    Posts
    269
    Rep Power
    3

    Default Re: problem wile trying "VLCJ video stream from server to client"

    Thank You Mr.gimbal2!

    just i wants to learn and do myself Sir..,

    i will use this forum for Java programming questions only..,

    Thank You..,

    Have A Happy Day..,
    - Raj

  12. #12
    gimbal2 is online now Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,703
    Rep Power
    5

    Default Re: problem wile trying "VLCJ video stream from server to client"

    I understand and that is fine, but you are trying to do the marathon before you have learned to walk here. Start with a far simpler project and please - get a good book on Java.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  13. #13
    raj.mscking@gmail.com's Avatar
    raj.mscking@gmail.com is offline Senior Member
    Join Date
    Jan 2012
    Location
    TamilNadu
    Posts
    269
    Rep Power
    3

    Default Re: problem wile trying "VLCJ video stream from server to client"

    Thank You Mr.gimbal2!

    where ever the chance to update myself, i am ready to update myself always.., I will fallow as you said..,

    Have A Happy Day Mr.gimbal2..,
    - Raj

Similar Threads

  1. Replies: 9
    Last Post: 01-30-2013, 06:17 PM
  2. Replies: 0
    Last Post: 12-07-2012, 08:29 AM
  3. Replies: 1
    Last Post: 02-06-2011, 05:38 AM
  4. Replies: 0
    Last Post: 01-28-2011, 01:09 AM
  5. Replies: 1
    Last Post: 10-20-2008, 07:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •