Com.sun.media.protocol.sunvideo.  HEEELLLP

I have Installed JMF2.1.1b and downloaded the source code for JMF studio.. I like to be able to compile the code and eventually add couple of proprietary layer for our use... But I'm not able to successfully compile the code because of the missing packages & classes... such as
com.sun.media.protocol.*
and basically its entire sub classes e.g.
sunvideo, sunvideoplus, v4, etc...
can somebody pleasssse help me here??? R these packages accessible by developers??? if not what's a point of providing the source code of this application???
Is there any other way of introducing your customization to an existing application in Java env??? Does anybody even ever tried to do a similar thing with this or other Java applications???
Would much appreciate your help.

Hi
I'm having the same problem...
Have you resolved this problem... Do you have this packages??
Thanks in advance..

Similar Messages

  • Problem with com.sun.media.protocol.sunvideo

    I just installed the JMF and it says it cannot located com.sun.media.protocol.sunvideo. Any suggestions?

    Verify if the lib folder inside JMF directory is set in the classpath

  • Com.sun.media.protocol.sunvideo

    hi all ,
    I downloaded the latest JMF v2.1.1e and also the JMStudio example. When I try to compile there seems to be missing packages from the jmf.jar file:
    com.sun.media.protocol.sunvideo
    com.sun.media.protocol.sunvideoplus
    com.sun.media.protocol.v4l
    com.sun.media.protocol.dsound
    com.sun.media.protocol.vfw
    The source code for JMStudio references several classes from these packages. Where did they get to and how do I get them?
    thinks

    java_developper wrote:
    hi all ,
    I downloaded the latest JMF v2.1.1e and also the JMStudio example. When I try to compile there seems to be missing packages from the jmf.jar file:I'm pretty sure those are only included with the various performance packs. VFW, for example, should only be included with the Windows Performance pack. Those packages are probably just JNI wrappers for the native code.

  • Com.sun.media.protocol.v4l.DataSource missing in JMF-2.1.1e

    Hi Folx,
    I installed the linux-package of JMF-2.1.1e and tried to access a webcam with video4linux. I get this error-msg:
    java.io.IOException: java.lang.Error: No such capture device!
    javax.media.NoDataSourceException: Error instantiating class: com.sun.media.protocol.v4l.DataSource : java.io.IOException: java.lang.Error: No such capture device!When I look into the src, there's a folder v4l in media/protocol, but when I look into the jar, media/protocol has no subfolders!
    So I guess it's missing...
    btw: jmfinit, registry etc works all fine, but I can't access to v4l-device in my scripts.

    if Jmfinit works fine then all you need to do is get your environment variables right.
    like this:
    JMFHOME=/usr/lib/jmf; export JMFHOME
    CLASSPATH=${JMFHOME}/lib/jmf.jar:${JMFHOME}/lib:${JMFHOME}/lib/sound.jar:${CLASSPATH}; export CLASSPATH
    LD_LIBRARY_PATH=.:${JMFHOME}/lib:${LD_LIBRARY_PATH};
    export LD_LIBRARY_PATH
    I had the same problem and this worked for me. ;-)

  • Java.lang.UnsatisfiedLinkError: com.sun.media.vfw.VFWCapture.cacheFieldIDs()Z

    So i am trying to get started with the java media framework (JMF). Ive installed the jmf 2.1.1e for windows and i am using eclipse IDE.
    I have tried to add the jar files to the projects build path and dll files to the library path, but i get this error when trying to execute the project:
    java.lang.UnsatisfiedLinkError: com.sun.media.vfw.VFWCapture.cacheFieldIDs()Z
    Here is full log details:
    CaptureDeviceInfo: vfw:Microsoft WDM Image Capture (Win32):0 : vfw://0
    YUV Video Format: Size = java.awt.Dimension[width=640,height=480] MaxDataLength = 614400 DataType = class [B yuvType = 32 StrideY = 1280 StrideUV = 1280 OffsetY = 0 OffsetU = 1 OffsetV = 3
    YUV Video Format: Size = java.awt.Dimension[width=160,height=120] MaxDataLength = 38400 DataType = class [B yuvType = 32 StrideY = 320 StrideUV = 320 OffsetY = 0 OffsetU = 1 OffsetV = 3
    YUV Video Format: Size = java.awt.Dimension[width=320,height=240] MaxDataLength = 153600 DataType = class [B yuvType = 32 StrideY = 640 StrideUV = 640 OffsetY = 0 OffsetU = 1 OffsetV = 3
    Exception in thread "VFW Request Thread" java.lang.UnsatisfiedLinkError: com.sun.media.vfw.VFWCapture.cacheFieldIDs()Z
        at com.sun.media.vfw.VFWCapture.cacheFieldIDs(Native Method)
        at com.sun.media.vfw.VFWCapture.<clinit>(VFWCapture.java:27)
        at com.sun.media.protocol.vfw.VFWSourceStream.doConnect(VFWSourceStream.java:249)
        at com.sun.media.protocol.vfw.VFWSourceStream.run(VFWSourceStream.java:771)
        at java.lang.Thread.run(Thread.java:619)
    Can anyone help me ?
    消息编辑者为:68202d7a-8cea-4b67-88ff-d01edd8c7c1a

    Probably the libLinuxSerialParallel.so was not found.
    I copied this file to $JAVA_HOME/lib/i386 and it worked.

  • NoClassDefFoundError: com/sun/media/rtsp/protocol/OptionsMessage

    Hi,
    I am trying the project streamp2p (from sourceforge) to stream avi (cinepak) files over rtsp with jmf.
    On the jmf.jar of the linux performance pack, the class com/sun/media/rtsp/protocol/OptionsMessage.class is not available.
    I already tried a search on google (1 result, also reporting the same problem, without answer...) and tried also a search on this forum, with no results.
    Does anybody knows something that can help ?
    Thanks,
    Hugo Lavalle

    Like I told you in the other thread com.sun packages are not fully supported, technically the could be considered "betas" and are only included to aid developers. Because they are no supported no javadocs exist for them at this time. Like I said you are just going to have downlad the source code and do alot of poking around. From what I can tell, however, the com.sun.media.rtsp package intergrates seemlessly with JMF.

  • Where to find the doc of package "com.sun.media.util"

    In the jmf.jar,it also has the com.sun.media package,but jmf20.pdf doc not include the comment,how to find the document of package com.sun.meida?

    why nobody answer the easy question for me?

  • JpegImagesToMovie--com.sun.media.processor.unknown.Handler

    hi,
    I get the following error with JpegImagesToMovie.
    It seem same as:
    http://onesearch.sun.com/search/highlight/index.html?url=http%3A%2F%2Fforum.java.sun.com%2Fthread.jspa%3FforumID%3D28%26threadID%3D585235&fterm=JpegImagesToMovie
    But look like no answer!
    C:\>java JpegImagesToMovie -w 320 -h 240 -f 1 -o file:/c:/test.mov file:/c:/k1.jpg file:/c:/k2.jpg
    - create processor for the image datasource ...
    Setting the track format to: JPEG
    - create DataSink for: file:/c:/test.mov
    start processing...
    - reading image file: file:/c:/k1.jpg
    - reading image file: file:/c:/k2.jpg
    Done reading all images.
    Exception in thread "JMF thread: SendEventQueue: com.sun.media.processor.unknown.Handler" java.lang.NullPointe
    rException
    at com.sun.media.multiplexer.video.QuicktimeMux.writeVideoSampleDescription(QuicktimeMux.java:936)
    at com.sun.media.multiplexer.video.QuicktimeMux.writeSTSD(QuicktimeMux.java:925)
    at com.sun.media.multiplexer.video.QuicktimeMux.writeSTBL(QuicktimeMux.java:905)
    at com.sun.media.multiplexer.video.QuicktimeMux.writeMINF(QuicktimeMux.java:806)
    at com.sun.media.multiplexer.video.QuicktimeMux.writeMDIA(QuicktimeMux.java:727)
    at com.sun.media.multiplexer.video.QuicktimeMux.writeTRAK(QuicktimeMux.java:644)
    at com.sun.media.multiplexer.video.QuicktimeMux.writeMOOV(QuicktimeMux.java:582)
    at com.sun.media.multiplexer.video.QuicktimeMux.writeFooter(QuicktimeMux.java:519)
    at com.sun.media.multiplexer.BasicMux.close(BasicMux.java:142)
    at com.sun.media.BasicMuxModule.doClose(BasicMuxModule.java:172)
    at com.sun.media.PlaybackEngine.doClose(PlaybackEngine.java:872)
    at com.sun.media.BasicController.close(BasicController.java:261)
    at com.sun.media.BasicPlayer.doClose(BasicPlayer.java:229)
    at com.sun.media.BasicController.close(BasicController.java:261)
    at JpegImagesToMovie.controllerUpdate(JpegImagesToMovie.java:196)
    at com.sun.media.BasicController.dispatchEvent(BasicController.java:1254)
    at com.sun.media.SendEventQueue.processEvent(BasicController.java:1286)
    at com.sun.media.util.ThreadedEventQueue.dispatchEvents(ThreadedEventQueue.java:65)
    at com.sun.media.util.ThreadedEventQueue.run(ThreadedEventQueue.java:92)

    The basic problem is that this program, like all of the JMF examples, is very haphazardly coded. From what I can gather somewhere in the excecution of the program there was a major thread conflict. JMF is not thread safe and requires the use of wait for state methods. In all honesty, I have never had a sample program compile and run succesfully as is. I think it would just be easier to re-write this code, except this time use the StateHelper class which can be found in the JMF guide. The StateHelper class manages all of the Player and Processor threads so you don't have to worry about it. I wish I could be of more help here but I think this is just a case of some sloppy code.

  • Package com.sun.media

    Where do i find the API documentation of the package com.sun.media.

    hi,
    it is likely you won't find any api-documentation for this package since sun
    usually discourages the use of some packages (compare sun.*)
    and does not provide any documentation for that cause.
    at least this is what i suspect; why do you want to use the anyway?
    p.s. you can always have a look at the source code itself since it is open.
    cheers

  • Where is the source for com.sun.media.rtp?

    Is the source for com.sun.media.rtp available for download?
    I downloaded the JMF source code, but, it's not there. I have downloaded the source for J2SE and it's not there.
    Where is it?
    Greg Silverman
    NGC
    San Jose, CA

    Hi,
    This forum is exclusively for discussions related to Sun Java Studio Creator. Please post your question in the appropriate forum.
    Thanks,
    RK.

  • Docu of com.sun.media?

    hi,
    i'm searching for the documentation of the package com.sun.media (the library which comes along with JMF) interestingly it turned out to be really hard to find. (of course i tried to google it ;))
    where would it be?
    is kinda urgent, thx a lot!

    Hi
    I'm having the same problem...
    Have you resolved this problem... Do you have this packages??
    Thanks in advance..

  • HOW do you use "com.sun.media.codec.video.jpeg.NativeEncoder"???

    Hi!! I want to know if I can use this encoder (NativeEncoder) for encoding to MJPG.
    If I do: PlugInManager.getPlugInList(new VideoFormat( VideoFormat.RGB),
                        new VideoFormat(VideoFormat.MJPG), PlugInManager.CODEC);
    I obtain only one codec:com.sun.media.codec.video.jpeg.NativeEncoder
    BUT, then, I do: codec.setInputFormat(new VideoFormat( VideoFormat.RGB))-->It returns me:NULL. why????!!!
    Regards!

    The input format may have to be more specific and suitable; eg for Windows :-
    RGBFormat(new Dimension(w,h), w*h*3, Format.byteArray, -1.0F, 24, 3, 2, 1, 3, w*3,-1,-1)

  • Com.sun.media.jmc.OperationUnsupportedException

    After sdk updating to the 1.1 version, my program caught exceptions sometimes although it still run normally.
    It seems it caused by the play() operation, I don't know why. Here is the code and the console information:
    public class MusicPlayer {
        var soundPlayer: MediaPlayer=MediaPlayer{
            volume: 1
            autoPlay: false
            onError: function(e:MediaError) {
                println("got a MediaPlayer error : {e.cause} {e}");
                soundPlayer.media = null;
            onEndOfMedia: function() {
               soundPlayer.stop();
        var bgMusicPlayer: MediaPlayer=MediaPlayer{
            volume: 1
            autoPlay: false
            repeatCount: MediaPlayer.REPEAT_FOREVER
            onError: function(e:MediaError) {
                println("got a MediaPlayer error : {e.cause} {e}");
                bgMusicPlayer.media = null;
        var start = Media {
            source: "{__DIR__}media/start.wav"
        var woosh1 = Media {
            source: "{__DIR__}media/woosh1ex.wav"
        var win = Media {
            source: "{__DIR__}media/win.wav"
        var lose = Media {
            source: "{__DIR__}media/lose.wav"
        var bling = Media {
            source: "{__DIR__}media/bling2ex.wav"
        var water = Media {
            source: "{__DIR__}media/waterEx.wav"
        var map = new HashMap();
        init{      
            map.put("start", start);
            map.put("woosh1", woosh1);
            map.put("win", win);
            map.put("lose", lose);
            map.put("bling", bling);
            map.put("water", water);
        public function play(soundName){
            var media = map.get(soundName) as Media;
            if(media != null){
                if(not soundPlayer.paused) soundPlayer.stop();
                println("------playing {soundName}-----");
                soundPlayer.media=media;
                soundPlayer.play();
        * stop playing background music
        public function stop(){
            bgMusicPlayer.stop();
        * play the music as background music
        public function playAsBgMusic(musicName){
            var media = map.get(musicName) as Media;
            if(media != null){
                if(not bgMusicPlayer.paused) bgMusicPlayer.pause();;
                bgMusicPlayer.media=media;
                bgMusicPlayer.play();
    }

    Part of the console information:
    ------playing bling-----
    Exception in trigger:
    com.sun.media.jmc.OperationUnsupportedException: Invalid stop time specified
    at com.sun.media.jmcimpl.plugins.javapeer.MediaPlayer.setStopTime(MediaPlayer.java:834)
    at com.sun.media.jmc.MediaProvider.setStopTime(MediaProvider.java:718)
    at javafx.scene.media.MediaPlayer$8.onChange(MediaPlayer.fx:322)
    at javafx.scene.media.MediaPlayer$8.onChange(MediaPlayer.fx:317)
    at com.sun.javafx.runtime.location.ObjectVariable$2.onAction(ObjectVariable.java:162)
    at com.sun.javafx.runtime.location.ObjectVariable$2.onAction(ObjectVariable.java:159)
    at com.sun.javafx.runtime.location.DependencyIterator.action(AbstractLocation.java:503)
    at com.sun.javafx.runtime.location.DependencyIterator.action(AbstractLocation.java:491)
    at com.sun.javafx.runtime.util.Linkables.iterate(Linkables.java:82)
    at com.sun.javafx.runtime.location.AbstractLocation.iterateChildren(AbstractLocation.java:282)
    at com.sun.javafx.runtime.location.ObjectVariable.notifyListeners(ObjectVariable.java:159)
    at com.sun.javafx.runtime.location.ObjectVariable.replaceValue(ObjectVariable.java:114)
    at com.sun.javafx.runtime.location.ObjectVariable.set(ObjectVariable.java:125)
    at javafx.scene.media.MediaPlayer$1.onChange(MediaPlayer.fx:186)
    at javafx.scene.media.MediaPlayer$1.onChange(MediaPlayer.fx:140)
    at com.sun.javafx.runtime.location.ObjectVariable$2.onAction(ObjectVariable.java:162)
    at com.sun.javafx.runtime.location.ObjectVariable$2.onAction(ObjectVariable.java:159)
    at com.sun.javafx.runtime.location.DependencyIterator.action(AbstractLocation.java:503)
    at com.sun.javafx.runtime.location.DependencyIterator.action(AbstractLocation.java:491)
    at com.sun.javafx.runtime.util.Linkables.iterate(Linkables.java:82)
    at com.sun.javafx.runtime.location.AbstractLocation.iterateChildren(AbstractLocation.java:282

  • Com.sun.media.rtsp.RtspManager and JMF bundle

    Following my first thread,
    I'm looking for any code that uses[b] com.sun.media.rtsp.RtspManager that run sequence like DESCRIBE->SETUP>PLAY>PAUSE.
    Is there a possible link beetwen RtspManager and Player/Processor well documented in JMF ?
    I am looking for com.sun.media package JavaDoc too.
    Thanks
    Arno

    Like I told you in the other thread com.sun packages are not fully supported, technically the could be considered "betas" and are only included to aid developers. Because they are no supported no javadocs exist for them at this time. Like I said you are just going to have downlad the source code and do alot of poking around. From what I can tell, however, the com.sun.media.rtsp package intergrates seemlessly with JMF.

  • Exception: com.sun.media.jai.util.ServiceConfigurationError

    I've developed an applet that uses javax.media.jai. API. When it's compiled and ran through Microsoft's IIS and from the command line it works fine. The final place for this applet, though, is on a Linux server. When it's compiled and ran from the shell it runs fine. But through Apache i get this error.
    com.sun.media.jai.util.ServiceConfigurationError: javax.media.jai.OperationRegistrySpi: : sun.io.MalformedInputException
         at com.sun.media.jai.util.Service.fail(Service.java:127)
         at com.sun.media.jai.util.Service.parse(Service.java:206)
    I know that the problem line is:
    PlanarImage im = (PlanarImage)JAI.create ("AWTImage", pb);
    Also, that both servers JSDK's and JRE's were installed correctly.
    And, that the needed registerFile.jai is located in the right place.
    I've been stumped by this for a week and can't find info on the com.sun.media.jai.util.ServiceConfigurationError class or javax.media.jai.OperationRegistrySpi class.

    Hi ,
    I am getting the similar error -
    I have an applet which displays a tiff image and allows the user to magnify , rotate , invert , zoom or print the displayed image . The applet uses JAI 1.1 API and jre plugin -1.3.0_0.1. It works fine when loaded in IE but with netscape (version 4.5/6.0) it throws the exception :-
    com.sun.media.jai.util.ServiceConfigurationError: javax.media.jai.OperationRegistrySpi: https://xyz/javatiffviewer/META-INF/services/javax.media.jai.OperationRegistrySpi:1: Illegal configuration-file syntax
         at com.sun.media.jai.util.Service.fail(Service.java:127)
         at com.sun.media.jai.util.Service.fail(Service.java:133)
         at com.sun.media.jai.util.Service.parseLine(Service.java:155)
         at com.sun.media.jai.util.Service.parse(Service.java:204)
         at com.sun.media.jai.util.Service.access$100(Service.java:118)
         at com.sun.media.jai.util.Service$LazyIterator.hasNext(Service.java:255)
         at javax.media.jai.OperationRegistry.registerServices(OperationRegistry.java:2031)
         at javax.media.jai.ThreadSafeOperationRegistry.registerServices(ThreadSafeOperationRegistry.java:620)
         at javax.media.jai.OperationRegistry.initializeRegistry(OperationRegistry.java:371)
         at javax.media.jai.JAI.<clinit>(JAI.java:382)
         at javax.media.jai.OpImage.<init>(OpImage.java:230)
         at javax.media.jai.PointOpImage.<init>(PointOpImage.java:374)
         at javax.media.jai.PointOpImage.<init>(PointOpImage.java:404)
         at javax.media.jai.NullOpImage.<init>(NullOpImage.java:108)
         at javax.media.jai.NullOpImage.<init>(NullOpImage.java:156)
         at TiffApplet.CReadImage.separateImages(CReadImage.java:185)
         at TiffApplet.CReadImage.checkForNoOfImages(CReadImage.java:149)
         at TiffApplet.CReadImage.<init>(CReadImage.java:68)
         at TiffApplet.CTIFFViewer.showImage(CTIFFViewer.java:259)
         at TiffApplet.CTIFFViewer.start(CTIFFViewer.java:191)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Can you please, suggest a solution .
    Thanks ,
    Navneet

Maybe you are looking for