To Decode and play  MPEG-2 Video files with JMF

Hi ALL,
I amin serious trouble with a problem. I am developing a Simulator, a function of which is to decode MPEG-2 Video files in real time and play it as well.I have got a MPEG-2 Decoder implemented in C from an open source and need to integrate with my Simulator which is writtebn in Java. The integration part I am doing via JNI(Java Native Interface). Now I have a bunch of C files in MPEG-2 decoder which are to be compiled during the Execution of the Java Simulator.Can anybody give some idea about how to call multiple C files from the Java Source through JNI at one go? Another problem I am facing is in calling a single C code from the traditional "HelloWorld" Java Code itself. The problem comes when I am trying to compile the shared library between the C native code and Java Code in my Linux Machine...I am getting the following message:
/usr/lib/gcc-lib/i386-redhat-linux/2.96/.../../../crt1.0 : In function '_start' :
/usr/lib/gcc-lib/i386-redhat-linux/2.96/.../../../crt1.0(.text+0x18): undefined reference to 'main'
collect2: ld retrurned 1 exit status

Duplicate; reply to http://forum.java.sun.com/thread.jsp?forum=54&thread=478434

Similar Messages

  • HT3775 My mac is a OS X Lion, and quicktime still can't play MPEG-2 video files? Any solutions?

    Quicktime can play MPEG 2 for OS X Lion 7 systems, but on my laptop it can't play it. Is there any solutions how to fix this?

    Did you ever get an answer?  I have same issue

  • How do I play MPEG-2 video files on my iPod Classic 80 gig?

    Will it play MPEG-2 files taken on my Sony HDD video camera? each time I try and import them or drag and drop them in to iTunes nothing happens. Do I need to convert them to MPEG-4 format and if so how do I do this? What software is needed and where can I get it?
    Cheers

    If you have Quicktime Pro, you should be able to open the video files, then Export to Ipod. Quicktime has automatic settings that will convert the audio/video to match the file types of ipods. Once done with each file, just drag them into iTunes, they will get copies to specific folders as necessary, and you can sync them to your ipod.

  • Playing MPEG-2 video files

    Hello!
    I have a series of .mov files filmed at my wedding, and I'm not able to open them in QT X or QT 7.6.6.
    The codecs listed in the Info for the files are: MPEG-2, Linear PCM, and Timecode.
    Original format is MPEG HD, at 1280 x 720.
    I purchased the MPEG-2 codec from Apple, and when I attempt to open the .mov files in QT 7.6.6, the viewer window opens along with another Quicktime message window that says:
    "Additional software is required for QuickTime to playback this media. It may be available
    from the QuickTime Components page."
    This page lists various available component options, but there's no information about which if any is the "additional software" required.
    Any tips about how to get these files to play would be much appreciated.
    Thank you!
    David

    I have a series of .mov files filmed at my wedding, and I'm not able to open them in QT X or QT 7.6.6. The codecs listed in the Info for the files are: MPEG-2, Linear PCM, and Timecode. Original format is MPEG HD, at 1280 x 720.... I purchased the MPEG-2 codec from Apple, and when I attempt to open the .mov files in QT 7.6.6, the viewer window opens along with another Quicktime message window that says: "Additional software is required for QuickTime to playback this media. It may be available from the QuickTime Components page."
    Your first paragraph would seem to indicate the files may have been imported using iMovie '08/'09 which strips the AC3 audio from the original "muxed" MPEG-2 camcorder files and converts it to PCM audio and then converts the MPEG-2 video to all I-frame MPEG-2 which can then be edited by iMovie. If true, then your second paragraph would tend to indicate the special QT MPEG-2 component (different from the QT MPEG-2 Playback Component purchased from Apple) cannot be accessed on the current system on which you are trying to view the files and would be why you are getting the missing software component message.

  • To send video file with JMF

    Hi�
    I making an application that it needs to send a video file (of a server to a client). I implemented this using the mechanism of RTP implemented for the JMF. My server sends the archive, that my customer only shows the video for the half and does not appear the bar of control of time in player. And, later that client receives all the data (and she does not show, by the way), the user do not obtain to attend again what it finishes to receive� Somebody could help me in this? Necessary that my customer if holds of similar form to the Youtube. That is, he goes loading and showing how much he has, leaving, the user to manipulate bar of time of player e, also, leaving the user to again attend to the video if thus wanting�
    Tanks...

    Presumably, you're using the following sample code to create the AVI:
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/JpegImagesToMovie.html]
    And you're using the following sample code(or something similar) to send the AVI via RTP:
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/VideoTransmit.html]
    Regardless, instead of creating a DataSource from a MediaLocator that points to your AVI file, you can just use the DataSource that's generating the AVI files, and make that be the DataSource that's driving your RTP session.

  • Playing MPEG-4 Video files in iTunes - No Sound

    Hi there,
    I have recently purchased some albums with videos etc.. However, I cannot seem to hear the sound. The video plays in iTunes without any problems but there is no sound coming out. Is this to do with codecs etc... I am running under Windows XP.
    Thanks for any help and suggestions.

    Download and install QuickTime 7.4.1 - make sure to select the standalone version, not the one with iTunes - and your troubles should be taken care of.

  • Cannot play MPEG-4 video... help please.

    Hi. I'm running OSX 10.4.10, and QT 7.2, yet I cannot play mpeg-4 video files. I get an error message that reads "The movie could not be opened. The file is not a movie file."
    .>; Last I read though, isn't mpeg-4 supported by the current versions of QT? Am I doing something wrong?

    Microsoft didn't follow the industries standards and QuickTime has trouble with some of those files. Even though the extension may say .mp4 it could contain Microsoft codecs which would require third party software help.
    http://flip4mac.com may be able to help.

  • Windows Vista User upgraded to iTunes 7.7 and now MPEG-4 videos won't play

    I'm a windows vista user, and I just updated to iTunes 7.7 with Quicktime.
    Prior to the update all my videos & related codecs files worked just fine(e.g., MPEG-4 and H.264 codecs).
    However, since the Quicktime & iTunes 7.7 update, now only videos coded as H.264 will play correctly and MPEG-4 video files only have sound but no video picture.
    Any suggested on how to fix this issue is greatly appreciated.
    Windows Vista

    This issue has since been resolved

  • MPEG-4 video files won't play in Quicktime

    I bought movies on iTunes and I can only watch them on my iPod. I can't view the movies with Quicktime or with iTunes. The movies are MPEG-4 video files. Any suggestions? I can't figure it out.

    I solved my problem with MP4 and MOV files not playing on my Windows XP Pro PC.
    Short solution: Reinstall latest NVIDIA driver from NVIDIA not Microsoft.
    A few days ago, I decided to rebuild my PC from scratch, after deciding to change from Norton to McAfee for performance reasons. I reinstalled Windows XP Pro from the installation disks and performed Microsoft Update to bring it up to current. I then manually installed all optional software and hardware "updates". Installing the optional video driver turned out to be the cause of the problem, but I did not know it then. It was a very obsolete driver - NVidia Corportation – Video – NVIDIA GeForce 3 Ti200 released on July 28, 2003
    I downloaded and installed Quicktime with iTunes which installed QuickTime 7.4.1 and iTunes 7.6.0.29. Neither would play MP4 or even MOV files. I got garbled, scrambled, blocks of colored video. Audio would play OK.
    A re-install of QuickTime did not help and both products said they were up to date.
    A temporary quick-fix was to uncheck DirectX - Enable Direct3D Video accelleration in QuickTime-Edit-Preferences-QuickTime Preferences-Advanced, or select Safe Mode (GDI only).
    The permanent fix was to update the video drivers and NOT use the Microsoft supplied update. I went to www.nvidia.com, selected "support" on the taskbar, clicked "download drivers", entered product type=Legacy and GeForce3 Series and Windows XP and clicked Search. That found ForceWare Release 90 version 93.71 dated Nov 2, 2006. It supports a huge number of NVidia cards. I downloaded it and installed it and everything worked after that.
    To prevent Microsoft Update from re-installing the Optional Hardware video driver, run Microsoft Update manually (e.g. from IE-Tools-Windows Update) click "Custom", select Optional Hardware, Expand the NVidia Corportation – Video – NVIDIA GeForce 3 Ti200 released on July 28, 2003 and check "Don't show this update again". Then close Microsoft Update. (while you are at it, do the same for the optional audio update. That really messed up my system)
    I hope this helps at least a few people. Good luck.

  • I have iMovie '11, and I am unable to access mpeg HD video files that I want to edit.  The files are fine (I can open and watch them using VLC), but I cannot seem to import the files into iMovie. File Import does not work.  Any suggestions??

    More detail: I have a bunch of mpeg HD video files that were shot on a SONY HDR-HC3 Handycam camcorder.  I would like to edit these into a single video production.  I can access and view the mpeg files using VLC (Quicktime does not work with them).  However, I seem to be unable to get the mpeg files to interface with iMovie '11 -- I cannot use the File --> Import command, nor can I drag-and-drop them into iMovie.
    Is there something anyone might suggest to get this to work?  Or are these files incompatible with iMovie?  If so, I assume I must purchase a different video editing software program (e.g. Adobe Premeir Pro).  Suggestions???
    Many thanks in advance for your time and consideration

      Yes, I tried that.   The files were ordered by their original numbers as imported from the camera, but I batched them through Phocoshop to downsize all of them into a more manageable file size.   I opened that destination folder from quick time  from where it said select image sequence.   I clicked on the first one and opened it.   The result was a large image with an arrow indicating a movie was ready to go.   When I pressed the arrow, though, I realized it had only imported that one frame so there was no movie.   The files are Jpgs and are about 450 KB each. 
        To your knowledge are there any links to iMovie tutorials or quick time tutorials that may address this situation?  Maybe there will be one I haven't looked at yet. 
        Thanks

  • MPEG-4 video file format and IMOVIE.....help!!

    I am completely new to IMOVIE and I am trying to import and DVD into it. I used ROXIO CRUNCH to convert a VIDEO_TS folder to use in IMovie. It converted it into a MPEG-4 Video file which is completley pixelated and not viewable. However IMovie did let me import it. What do I need to do?

    Handbrake includes a universal setting which makes the video compatible with the iPhone/iPod, Apple TV, and with iTunes on your computer. It also includes an iPhone/iPod compatible setting.

  • Playing MPEG-4 Video Clips

    I am trying to import/play MPEG-4 video clips that I took from a new Sony HDD video camera. The clips play fine on any PC and are saved on an external hard drive. When I connect the external hard drive to my MacBook Pro I click on the icon and it says it can not play because it is not a movie file (even though it is a movie file). It will not open in the Finder or iMovie. What should I do?

    There are millions of different ways that video is encoded. To decode these, you may need the appropriate "codec"
    First thing I'd suggest is trying Perian
    www.perian.org
    This has lots of the encoding for different video types. Then try the video again.
    Alternatively, Sony might be using another codec - although I'd be surprised if they used anything too odd. You could also try the DivX codec - but it may conflict with the one in Perian so I'd try that one first.
    Best of luck

  • My complaints and Questions MP4 M4V video files and other complaints

    My complaints and Questions MP4 M4V video files and other complaints
    I have been scratching my head as to how to fix my problem and I found some answers and some questions along the way. First of all, I have a video that should be correctly formatted for my iPod. Its specs are:
    Kind: MPEG-4 video file
    Size: 19.4 MB
    Bit Rate: 125 kbps
    Date Modified: 8/18/2009 2:15 PM
    Play Count: 1
    Last played: 8/21/2009 12:25 PM
    Profile: Low Complexity
    Channels: Stereo
    Total Bit Rate: 360 kbps
    Video Dimensions: 352x264
    Video Codec: H.264
    F:\File\AnotherFile\A3rdFile\TheMovieFileInQuestion.mp4
    Wow that was a chore. Apple! Let us drag copy and paste our info tabs information so we don’t have to type all this stuff when we are having trouble. **another problem and suggestion** right there.
    Ok, back to the problem of the forum.
    From what I can see from http://www.apple.com/ipodclassic/specs.html this file falls in line of everything required in order to be able to play on my iPod. It plays in iTunes fine but will NOT sync with my iPod. I get an annoying message that states, “Some of the Songs and videos in your iTunes library, including “BlaBlaBlaiPondFixYourJunkBlaBlaBla”, were not copied to the iPod “My iPod” because they cannot be played on this iPod.” Why oh why can iTunes play this video file but my iPod cant. Especially when the specs on Apple’s website say it can.
    So that was bugging me for a LONG time until I found my “Create iPod or iPhone version” option in the “Advanced” heading. Thank goodness this made my files playable on my iPod. Extremely LONG wait though. I know that other programs convert it in ½ the time. But times not to important as long as it gets done, (would be very convenient if it was faster though **Problem and suggestion**)
    Ok, now that I have used the “Create iPod or iPhone version” option it has slowly but surly converted my video. Ok, here is my main problem, the new file which is the result of the conversions information is as follows:
    Kind: MPEG-4 video file
    Size: 35.4 MB
    Bit Rate: 125 kbps
    Date Modified: 8/18/2009 2:15 PM
    Play Count: 1
    Last played: 8/21/2009 1:28 PM
    Profile: Low Complexity
    Channels: Stereo
    Total Bit Rate: 658 kbps
    Video Dimensions: 352x264
    Video Codec: H.264
    C:\File\WhyIsThisNewFileInMyMusicFolder\TheMovieFileInQuestion.m4v
    So basically it has made my file bigger *not a bonus in my book* greatly increased my Bit Rate *another interesting feature*, and I think the biggest change it has changed it from an .mp4 to an m4v.
    Why does it need to be an .m4v I could have sworn some of my videos were or are in mp4 which shouldn’t matter anyway because I was under the impression that iPods could play mp4 files. So that’s my biggest complaint and question. Why can my 80GB classic iPod not play my MP4 files and why am I forced to convert them??
    This conversion also creates 2 files in iTunes when I am done which is annoying because I have to go into my files info and look to see what file is the mp3 in order to remove it. Very annoying I can open my iPod options and see the files and some are faded (the ones it can not play) why can’t I remove them from that area.Suggestion Apple please make files that cannot be played on my iPod stand out some how for easier cleaning Suggestion. Thank you.
    Speaking of cleaning iPods, when I moved my entire library to an external drive I was faced with a terrible problem. “This file could not be found, would you like to locate file”, I was faced with this annoying message at least 600 times. Now I am glad that iTunes has a little “!” mark to show dead links so that you do some minor cleaning, Good Job iTunes No compliant there. However iTunes has no way of selecting all the broken files for major cleaning (like in my case). Going through and deleting over 600 files 1 by 1 is extremely time consuming and annoying. **Suggestion Apple please add more cleaning features for organizing iTunes**.
    Ok, speaking of organization now, another problem that appeared when converting my video files was that it put my new videos into the location where I have all my songs (my external hard drive) why can’t it put the new files in the locations of the original file? I have my computer highly organized and my original files were in that drive in that folder for a reason. If I could open my original file and skip the conversion, my iTunes would go to that specific folder to access the file which is fine. But now these new conversion files are elsewhere taking up space and disorganizing my computer. True I can go into the new location and move the files to where I want them (original location) but I don’t think I should have to hunt them down, copy, move, delete ect etc for all these files over and over. Very annoying, time consuming and should be unnecessary. **Suggestion Make file creation and location more customizable, and user friendly, your customers will love you for it**.
    Well since I have gotten into Apples iTunes and iPod problems that I have had to face I might as well bring up one or two more problems and suggestions. About a month after purchasing my iPod a sibling bought one as well. His however is way more convenient then mine. I suppose he has a 5th gen. so here is my question: why does he have a search option and I don’t!!!! Why does he get more features every so often and I don’t?! Why can’t Apple write some software for us classic guys which got the iPods going! It’s very annoying when I have to spend more time looking for the song then I spend actually listening to it, when he can pull his up in like 3-6 seconds? I highly doubt the hardware between our iPods is that dissimilar and even if they are why cant software be written for us. **Suggestion treat all your customers good not just the newer ones, and make some more features for the classics like me and my iPod.” We will be grateful for it I promise.
    Ok, I am almost done. Let me just recap my questions, I know my post is kind of lengthy.
    #1. Why can’t my iPod play MP3 video files? And why do I have to convert to almost all the same settings except changing it from an mp4 to an m4v. according to Apples own site I should be able to play .m4v .mp4 and .mov files!! Note: remember iTunes plays them fine but my iPod will not.
    #2. Would be much more convenient to be able to copy the information from the windows in iTunes so that problems and trouble shooting would be much easier. A little check on off options in iTunes advanced settings would be terrific.
    #3. Why is the conversion so slow? Please speed it, you have the power. Convenience is the thing that sells products.
    #4. Files that cannot be played on the current iPod need to be easier recognized for simpler cleaning.
    #5. Also make an easier way to select all dead link files for faster cleaning, deleting, etc. This one is important.
    #6. Make a user friendly way to change where my files are going to end up once I convert them for iPod more options and better customizable settings are need.
    #7. One of the most important is ADD A SEARCH OPTION. I and we classics will LOVE Apple for it.
    For you readers, I apologize for the long post, and any grammatical errors you might find throughout it. These are problems that I have faced with these programs and hardware and I wanted to make sure they got acknowledged and hopefully addressed. Any information about why I cannot play MP4 Video files on my iPod would be the best. If anything in my post gets answered that’s the one I want most. Will save me a lot of hassle.
    Thank you all and I look forward to your suggestions and comments. All are welcome and appreciated.
    Sincerely,
    Bond, James

    Was playing with iTunes and thought of another suggestion! Let us play files in iTunes from an iPod! A friend or sibling should be able to plug his iPod into my computer open iTunes and play any of the files there. Many times I have wanted to show a movie clip or video to a friend, and I have the dock so I can do it on my T.V. but play it on their computer in their iTunes forget it. That would be a very nice feature as well so we can watch our movies at maximum size or listen to music on a better sound system, just another suggestion that would be nice. Thanks

  • Album/playlist downloaded from iTunes includes mpeg-4 video file?

    I have downloaded from iTunes an album that includes an mpeg-4 video file?  What is the best medium CD or DVD and format for burning the playlist?  Assume it could be played on a CD player (for sound only) or a DVD player.  

    Handbrake includes a universal setting which makes the video compatible with the iPhone/iPod, Apple TV, and with iTunes on your computer. It also includes an iPhone/iPod compatible setting.

  • Upgrading to iTunes 10.6.0.40 imports MPEG-4 movie files as "QuickTime movie file" not "MPEG-4 Video file"

    Recently updated itunes to 10.6 and since then adding any new MPEG-4 Video file itunes is flagging as QuickTime.
    This creates an issue since my Apple TV doesn't recognize these types of files in iTunes.
    To validate it's the itune upgrade, previous "MPEG-4 Video file" entries added and played on Apple-TV were imported an now show as "QuickTime Video file"
    Thx

    This problem has been resolved after the ATV update was received. 
    The ATV now recognizes the videos marked in itunes as Quick time eventhough they are Mpeg-4 video files.

Maybe you are looking for