Play .3gp-files with JMF (jffmpeg)

Hello,
for a MMS-Application I'm trying to show 3gp-files with Java. I heard that it should work with jffmpeg but I still couldn't get it to work.
I added the Codec:
String JFFMPEG_VIDEO = "net.sourceforge.jffmpeg.VideoDecoder";
try {
    Codec video = (Codec) Class.forName(JFFMPEG_VIDEO).newInstance();
    PlugInManager.addPlugIn(JFFMPEG_VIDEO,
            video.getSupportedInputFormats(),
            video.getSupportedOutputFormats(null),
            PlugInManager.CODEC);
} catch (Exception e) {
    e.printStackTrace();
}and then started the player.
It already works for mpg-Videos, but if the file-extension is .3gp the player throws a javax.media.NoPlayerException: Cannot find a Player for : file://C:/test.3gp
When I change the file-name to test.mpg the player initializes but doen't show a picture.
How can I register the 3gp-extension? Or is anything else missing?
Thanks in advance for any hint :-)

I still didn't get it to work as I need it, but I made some progress so far:
Instead of jffmpeg I used the FOBS for JMF Package (http://fobs.sourceforge.net/index.html) in addition with the JMF.
Using this package allows you to play a 3gp-Video in Swing that is stored in your filesystem (!).
I'm still having two problems with this solution:
- I use a Java Webstart-framework and can't acces the user's harddisk, so I need to play the 3gp-Videos directly from memory (they are stored as byte[] in a database), but the current version of FOBS is limited to 3gp-Playback only from filesystem.
- Each user of the application has to download and install JMF and FOBS for their OS (system-specific libraries). Especially FOBS is not always very easy to install, because it needs to change some of the jmf.properites. This can not be done with the JAR-distribution-System of WebStart and I'm expecting problems, when the users try to install both packages on their own.
If you are developing a plain Swing-Application you might be satisfied with the possibilities of FOBS and JMF.
Good luck :-)

Similar Messages

  • Play audio file with jmf on linux?

    a simple audio player as flow:
    import javax.media.*;
    import java.io.File;
    import java.net.URL;
    public class SimpleAudioPlayer {
        private Player audioPlayer = null;
        public SimpleAudioPlayer(URL url) throws Exception {
            audioPlayer = Manager.createRealizedPlayer(url);
        public SimpleAudioPlayer(File file) throws Exception {
            this(file.toURL());
        public void play() {
            audioPlayer.start();
        public void stop() {
            audioPlayer.close();
        public static void main(String[] args) throws Exception {
            File file = new File("/usr/local/download/1.wav");
            SimpleAudioPlayer sap = new SimpleAudioPlayer(file);
            sap.play();
    }when run the program
    javac -cp jmf.jar SimpleAudioPlayer.java
    java -cp .:jmf.jar SimpleAudioPlayer
    the output as flow:
    Unable to handle format: ima4/ms, 8000.0 Hz, 4-bit, Mono, Unsigned, 4027.0 frame rate, FrameSize=4096 bits
    Failed to prefetch: com.sun.media.PlaybackEngine@defa1a
    Error: Unable to prefetch com.sun.media.PlaybackEngine@defa1a
    How can I play wav file with jmf on linux?(OS is debian5 and jmf cross-platform pack)

    thanks for your reply.
    I tried to replace the wav file "1.wav" with the linear encoded WAV download from pscode.org,and run the code again,but
    BasicTrackControl:prefetchTrack():96 1 bm = com.sun.media.BasicRendererModule@1186fab
    BasicRendererModule.doPrefetch:155 Render : true
    Render buffer size: 32768
    BasicRenderModule.doPrefetch:159
    javax.media.ResourceUnavailableException: Cannot intialize audio device for playback
    at com.sun.media.renderer.audio.JavaSoundRenderer.open(JavaSoundRenderer.java:93)
    at com.sun.media.BasicRendererModule.doPrefetch(BasicRendererModule.java:158)
    at com.sun.media.BasicTrackControl.prefetchTrack(BasicTrackControl.java:99)
    at com.sun.media.PlaybackEngine.doPrefetch1(PlaybackEngine.java:682)
    at com.sun.media.PlaybackEngine.doPrefetch(PlaybackEngine.java:658)
    at com.sun.media.PrefetchWorkThread.process(BasicController.java:1430)
    !!!!!!!§§§§§§§§§§§ BasicTrackControl:prefetchTrack():96
    at com.sun.media.StateTransitionWorkThread.run(BasicController.java:1339)
    Unable to handle format: LINEAR, 16000.0 Hz, 16-bit, Mono, LittleEndian, Signed, 32000.0 frame rate, FrameSize=16 bits
    Failed to prefetch: com.sun.media.PlaybackEngine@26e431
    Error: Unable to prefetch com.sun.media.PlaybackEngine@26e431

  • Play sdp file with JMF

    Hi,
    I have a Darwin Streaming Server(DSS) running on a machine, that reflects several broadcasts from other machines (I'm broadcasting to the DSS with JMF).
    I can see all the videos and audio without any problem with Quick Time, but I can't find a way to play the sdp files with jmf. I've searched the web for jmf and sdp, and there isn't much information, i've also tried to play with JMStudio..no luck. In the JMF solution there aren't any samples for SDP files....
    If I can't find a way to do it, I'll use Quick Qime 4 Java, the only problem is that there isn't a linux implementation :(
    Thanks in advance.
    Best regards,
    ANeto

    Hi,
    I have read all the mails on the JMF interest group regarding the Broadcaster and DSS.
    Well i too am trying to do a similar application. This is an Application
    Casting program basically to share my desktop with the other person sitting
    across the network using my client. And in order to multicast this, i am
    looking at using Darwin Streamng Server.
    The whole idea here is that i break the desktop image up into frames and
    then compress them and then send it over, protocol used here is TCP/RTP/UDP.
    I am trying to hit this stream of packets to DSS so that it can be accessed
    else where over the internet. I'm trying to under stand the basic
    authentication mechanism DSS uses, so that i can create the .sdp file and
    transfer it over to the DSS, which can further be accessed by any client
    that can understands sdp.
    As i read in the mail some of you were able to create the .sdp file with your custom built boradcaster and send it to DSS if i am not wrong.
    I have tried this with Mpegable Broad caster as you said.
    Now the problem i had was to create .sdp file with my application and push it to the DSS.
    So have you made some kind of a documentation or can you give me an idea as
    to how i can go about this. Or it will be even better if you can share the code with me.

  • Play rtpdump files with jmf

    hello,
    I am trying to play a file created with rtpdump (or etheral) directly with jmf. I don�t know, how to create valid datasource and processor objects for a file with stored rtp-packets. Is there a possibility? Do I have to write an own demultiplexer f�r this rtp-dump format? Especially this RTP packets uses the H.263 format.
    Maybe there exists a code fragment for this problem.
    thanks a lot for your help

    I still didn't get it to work as I need it, but I made some progress so far:
    Instead of jffmpeg I used the FOBS for JMF Package (http://fobs.sourceforge.net/index.html) in addition with the JMF.
    Using this package allows you to play a 3gp-Video in Swing that is stored in your filesystem (!).
    I'm still having two problems with this solution:
    - I use a Java Webstart-framework and can't acces the user's harddisk, so I need to play the 3gp-Videos directly from memory (they are stored as byte[] in a database), but the current version of FOBS is limited to 3gp-Playback only from filesystem.
    - Each user of the application has to download and install JMF and FOBS for their OS (system-specific libraries). Especially FOBS is not always very easy to install, because it needs to change some of the jmf.properites. This can not be done with the JAR-distribution-System of WebStart and I'm expecting problems, when the users try to install both packages on their own.
    If you are developing a plain Swing-Application you might be satisfied with the possibilities of FOBS and JMF.
    Good luck :-)

  • Latest iTunes no longer plays .0gg files with the Xiph Quicktime fix - any solution?

    Latest iTunes no longer plays .ogg files with the Xiph Quicktime fix - any solution?

    New version (.42) plays ogg files again so Apple have fixed the problem hooray

  • How to open VLC wit JAVA and later play a file with it..?

    Hi,
    I do it if I want to Play a file with VLC:
    Runtime rt = Runtime.getRuntime();
              try {
                   rt.exec("C:\\Program Files\\VideoLAN\\VLC\\vlc " + "C:\\songs\\llarala.mp3");
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    but I want to Open VLC and later work with this VLC opend, for example to Play a file with it. Anyone knows how to do it? Thanks.. I' m new about that..

    Keep working as you are is the simplest way. The VLC client (and server) has a pretty rich command-line interface, you can do pretty much anything through the command-line that you can with any other interface. Or there's the telnet interface, if all those processes are too much

  • Can anybody explain me how to sample and play audio files with logic's EXS2

    can anybody explain me how to sample and play audio files with logic's EXS24 Sampler???
    i cant find a way to upload and manage my own audio content on this sampler...

    i uderstand , thanx...
    i managed to open an audio file and placed it in the sampler,i can play t sample in the little keyboard in the zones section, howver i dont know how to play it with my controller... the sample shows in C1 on logic's keyboard but if i play C1 on my controller nothing happens... how can i fix this?
    Also, i noticed the sample plays from beginning to end once i click on it, how do i do to just make it last until i release the key? like a logic sound??? (in case i want to play a small portion of the sample only)
    Thanx

  • Amarok 1.4.10 from AUR plays flac files with errors

    amarok 1.4.10 from AUR plays flac files with errors and i mean that it plays flac files but with strange behavior and of course the result is awful is there any chance to fix that problem. i have compile it with xine engine, can i use a different engine in PKGBUILD and how. i should write that i don't known much from configure a PKGBUILD by my own. with exaile and totem i have no problem i also play flacs with 24bit and 96khz audio quality. tnks for your time

    Why not amarok 2.3 from extra?
    Found this but its for 2.3: forum.kde.org/viewtopic.php?f=116&t=85428
    looks like amarok just uses xine, which I don't know much about...
    the 2.3 version depends on kde4, so you can run kde4 system settings and switch the multimedia backend between xine, mplayer, and gstreamer (need the aur packages first). I know mplayer should use ffmpeg to playback though.
    Edit: looks like exaile and totem use gstreamer for playback
    Last edited by 1LordAnubis (2010-05-19 16:19:09)

  • How to play 3GP files on iphone4

    how to play 3GP files on iphone4?

    VLC is also a converter, but you'll encounter some issue when you use it to convert 3GP to MP4.
    The wisest choice to convert 3GP to MP4 for playback on most popular players and devices is using a professional 3GP to MP4 Converter.

  • My QuickTime player us not playing .avi files and says I need a codec I can't play no .avi files on QuickTime. How could I fix this because I want to play these files with QuickTime.

    My QuickTime player us not playing .avi files and says I need a codec I can't play no .avi files on QuickTime. How could I fix this because I want to play these files with QuickTime.

    Hmm . . . comes with a Utility MPEG2 Component ML app with no explanation of what it's for?
    The utility app is an "assistant PKG installer." It allows Lion and Mountain Lion users to install the older QT MPEG-2 Playback Component installer PKG file which is not allowed to run on its own under Lion or Mountain Lion since these operating systems already have a QT X only MPEG-2 component embedded in the QT embedded structure. Without this utility you would have to either copy the component from an older system to your Lion or Mountain Lion system, use Pacifist for installation, or manually open the PKG contents and transfer the component to the appropriate component folder.
    As to your "discussion" regarding the playback of AVI file types, there are really only two strategies here:
    1) You can add component support so that QT can play the files natively or
    2) You can convert the file contents to compression formats that are natively compatible with the unmodified QT component configuration.
    Each user should decide for his or her own self which approach best suits their needs for a particular source file. In most cases, conforming the system's codec component configuration to play the source file directly results in higher video quality since no transcoding takes place but this strategy will not work if a codec which is required is not available for the user's operating system. On the other hand, converter utilities tend to support more built-in codecs and are easier to use since the user does not have to concern him or herself with the nature of the particular source compression formats but at the risk of some potential loss in visual quality. As to what converter to use, once again this is a matter of personal choice. In the case of commercial converters like iSkysoft, the codecs are built in while MPEG Streamclip accesses the host operating system's QT codec component configuration. I personally prefer the free HandBrake app for AVI, MKV, TS, MTS, and M2TS conversions since it has an exceptionally full-featured X.264 GUI with some user options that 97% of users are likely to never use.

  • Why doesn't Quicktime 10 play 3GP Files?

    I recently got a new MacBook Pro and the Quicktime player won't play 3GP files. I prefer playing certain audio files via Quicktime and now this is a big hassle. My previous Mac played them without issue and I'm wondering why the compatibility was removed from the new Quicktime? Is there a 3GP codec for QT 10 or is my only option installing Quicktime 7?
    Thanks,
    -Adam

    You can only use QuickTime Player 7 to play that 12 year old format.

  • [solved] Joining 3gp files with same aspects and everything

    Hi!
    I am using archlinux and for watching movies I use mplayer.
    When I record movies with my mobile they are in the format .3gp.
    Sometimes I record or recive through mms smaller movie clips in a series.
    I want to join them together to one .3gp file with the same quality and all.
    I have been looking for a good help for doing this on the web but so far haven't found anything.
    If anyone can help me how to join multiple .3gp files into one .3gp file I would be glad...
    Last edited by XeroXer (2007-05-28 18:59:57)

    got an error saying that I should use -oac pcm for the sound.
    tried that and the sound merged great but not the video.
    it got a lot messed up and when I try to fastforward in the movie it ends the mplayer.
    so it worked partly...
    with -oac copy
    MEncoder 1.0rc1-4.1.2 (C) 2000-2006 MPlayer Team
    CPU: Intel(R) Celeron(R) M processor 1.40GHz (Family: 6, Model: 13, Stepping: 8)
    CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    Compiled with runtime CPU detection.
    98 audio & 216 video codecs
    WARNING: OUTPUT FILE FORMAT IS _AVI_. See -of help.
    success: format: 0 data: 0x0 - 0x4898d
    ISO: File Type Major Brand: 3GPP Profile 5
    Quicktime/MOV file format detected.
    VIDEO: [s263] 176x144 24bpp inf fps 0.0 kbps ( 0.0 kbyte/s)
    [V] filefmt:7 fourcc:0x33363273 size:176x144 fps: inf ftime:=0.0000
    videocodec: framecopy (176x144 24bpp fourcc=33363273)
    Audio format 0x726d6173 is incompatible with '-oac copy', please try '-oac pcm' instead or use '-fafmttag' to override it.
    Exiting...
    RESULT:
    The suggestion I got ended up with a movie with great sound but bad picture. The movie can not be skipped in sections because then mplayer just quits.
    Last edited by XeroXer (2007-05-28 13:59:01)

  • Can CDHtmlDialog play swf file with audio component?

    Hello, I'm using CDHtmlDialog in our application to play swf that shows user how to do a workflow. It works fine if swf does NOT have audio; if the swf has audio component, then it does not play.
    Can CDHtmlDialog play swf with audio?
    If not, any suggestion on how to implement playing swf file with audio?
    Many thanks in davance.

    Hi PingHu,
    How do you play the swf file in a html. I tried play a swf file with audio in my CDHtmlDialog class. I just use this:
    Html code Play the SWF file.
    <!DOCTYPE html>
    <html>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <body>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="200" height="100">
    <param name="movie" value="filename.swf">
    <param name="wmode" value="transparent">
    <embed src="D:\html directory\swf filename.swf" width="400" height="500" type="application/x-shockwave-flash" />
    </object>
    </body>
    </html>
    Then my sample is able to play a SWF file with audio. Hope this helps some.
    Best regards,
    Shu Hu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Play RTSP stream with JMF

    hello, all, i tried to play RTSP stream with JMF, but i always get error:
         connection info: IN IP4 0.0.0.0
         connection info: IN IP4 0.0.0.0
         Failed to realize: Server is not responding
    But when i play RTSP stream with VLC, everything is well.
    Anybody can help me?
    Regards,
    lefish

    JMF does not. JMF only plays RTP-protocol streams.I doubt it.....though I have never tried to play RTSP streams using JMF but seeing following links I do think client side RTSP is supported by JMF:
    [http://java.sun.com/javase/technologies/desktop/media/jmf/reference/faqs/index.html#jmf2-rtsp-features]
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/support-rtsp.html]
    Thanks!

  • Compressing the wav file  with JMF

    Hi Guys,
    Any one of you know about how to compress a wav file with jmf.Please its very urgent.
    Thnaks
    Jast

    Specify a compressed encoding for the audio output format. You'll have to enumerated the supported formats on the output track to finds out what's available to you. In Windows, JMF should be able to use the available system codecs. First try transcoding a wave file in JMStudio to see what works.

Maybe you are looking for

  • SuperSuite Deal w/MS Office 2004

    Hi All, I purchased Office 2004 Student Teacher Edition and according to the "rebate" form in order to get the Office 2008 Edition sent to me directly I need to include orginal sales receipt and orignal product box top with the product name and barco

  • Ctrl-eject shortcut not working?

    Hi there im running os x 10.5.8 on 2008 macbook pro. The shortcut I used for bringing up the shutdown dialogue box (ctrl-eject) has stopped working. I have tried holding the eject button down for longer but to no avail! any ideas? cheers

  • UCCE send a caller from agent to IVR and back to the same agent

    Hello, I am trying to come up with a way to implement the following logic in UCCE 7.5 with IP IVR 7.0 A caller gets to an agent and requests a service that requires identification The agent sends the caller back to IVR for identification UCCE reserve

  • ITunes won't add folder or file(s) to library.

    Okay, well this started off when an album in my library wouldn't play. I clicked on the songs in the album and none of them would play. So, I deleted the album. I went to File>Add Folder to Library... selected the folder that had the album, (Files an

  • Photoshop Doesn't Start.

    Hello, Photoshop worked fine until yesterday. I wanted to start up my photoshop and i see my mouse cursor loads and then nothing is happening. Already Re-Installed it then he worked then i restarted my pc and it gots the same problem again. I'm an De