Joining Video Files together with MiniME

I'm trying to solve the problem of joining together two video files, and came across this jar:
http://java.sun.com/products/java-media/jmf/2.1.1/solutions/MiniME.html
I've extracted the source files, and now I'm trying to run MiniME as per the instructions, but with no success.
Ideally, I'd like to be able to do it without using the GUI but the source isn't so simple and isn't commented at all - that aside, I'd just like to get it to work so that I can succesfully join video files in java!
Can anybody help me out here?
Cheers,
James

Just because you put 2 files in the same file doesn't mean some application can understand that it's 2 files in 1. Meaning, the player of the merged WMV can't know that there's 2 files and that it should play both back to back. You have to read the WMV files knowing the WMV format and then generate 1 file that combines the 2, which typically would include updating header information in the file. Java's I/O classes are not going to provide that sort of thing for you.

Similar Messages

  • Joining two files together

    I'm kinda new to Java, but i'm trying to create a program which joins 2 files together. It works fine with .txt files, but when i try to join two .wmv files, only the one it processes first will show, though the output file will have the size of the two files together. Here's my code for joining them together:
    try {
                        JFileChooser location = new JFileChooser();
                        location.showDialog(this, "Save file");
                        File videoout = location.getSelectedFile();
                        OutputStream os = new FileOutputStream(videoout);
                        BufferedOutputStream out = new BufferedOutputStream(os);
                        InputStream is = null;
                        BufferedInputStream in = null;
                        ListIterator pathsIterator = paths.listIterator();
                        while(pathsIterator.hasNext()) {
                            File part = new File(pathsIterator.next().toString());
                            is = new FileInputStream(part);
                            in = new BufferedInputStream(is);
                            int line;
                            while((line = in.read()) != -1) {
                                out.write(line);
                        in.close();
                        out.close();
                        JOptionPane.showMessageDialog(this, "Done");
                    } catch(IOException io) {
                        System.out.println("IO: " + io);
                    }Any idea what i'm doing wrong?
    Thanks

    Just because you put 2 files in the same file doesn't mean some application can understand that it's 2 files in 1. Meaning, the player of the merged WMV can't know that there's 2 files and that it should play both back to back. You have to read the WMV files knowing the WMV format and then generate 1 file that combines the 2, which typically would include updating header information in the file. Java's I/O classes are not going to provide that sort of thing for you.

  • I have an old mpg video file, taken with a very early model "smart phone", that opens and plays fine in my newly "rebuilt" iPhoto library. I cannot open, edit it or share it with any other software. How can I fix it, to be able to do anything with it?

    I have an old mpg video file, taken with a very early model "smart phone", that opens and plays fine in my newly "rebuilt" iPhoto library. I cannot open, edit it or share it with any other software. How can I fix it, to be able to do anything with it?
    Detail:
    I've recently purchaced a 4TB Thunderbolt drive to store my "vast" music and photo libraries. iPhoto had an issue reading the moved library, so I bought and used iPhoto Library Manager to "rebuild" it. Apart from much of the original data such as date taken & camera used etc, it appears to be working well. The aforementioned mpg video was taken some 9 years ago, using an early model "iMate" smart phone, and opens and plays fine on iPhoto, but I cannot open it with anything else, (I've tried iMovie, VLC players, Wondershare and Handbrake) nor can I share it. I just want to edit it, and share it with family.
    Any help would be appreciated...

    No - not iMovie, VLC, Wondershare or Handbrake... Quick time starts with a "CONVERTING", then I get
    I've looked at the "tell me more" links, tried downloading some of the movie players there. I'm begining to think the file is corrupt.
    Thanks for getting back to me again though - appreciate it...

  • Script to merge multiple CSV files together with no duplicate records.

    I like a Script to merge multiple CSV files together with no duplicate records.
    None of the files have any headers and column A got a unique ID. What would be the best way to accomplish that?

    OK here is my answer :
    2 files in a directory with no headers.
    first column is the unique ID, second colomun you put whatever u want
    The headers are added when using the import-csv cmdlet
    first file contains :
    1;a
    2;SAMEID-FIRSTFILE
    3;c
    4;d
    5;e
    second file contains :
    6;a
    2;SAMEID-SECONDFILE
    7;c
    8;d
    9;e
    the second file contains the line : 2;b wich is the same in the first file
    the code :
    $i = 0
    Foreach($file in (get-childitem d:\yourpath)){
    if($i -eq 0){
    $ref = import-csv $file.fullname -Header id,value -Delimiter ";"
    }else{
    $temp = import-csv $file.fullname -Header id,value -Delimiter ";"
    foreach($line in $temp){
    if(!($ref.id.contains($line.id))){
    $objet = new-object Psobject
    Add-Member -InputObject $objet -MemberType NoteProperty -Name id -value $line.id
    Add-Member -InputObject $objet -MemberType NoteProperty -Name value -value $line.value
    $ref += $objet
    $i++
    $ref
    $ref should return:
    id                                                         
    value
    1                                                          
    a
    2                                                          
    SAMEID-FIRSTFILE
    3                                                          
    c
    4                                                          
    d
    5                                                          
    e
    6                                                          
    a
    7                                                          
    c
    8                                                          
    d
    9                                                          
    e
    (get-childitem d:\yourpath) -> yourpath containing the 2 csv file

  • Video files produced with E90 doesn't play on oth...

    Hi all, the video file produce with my E90 communicator is not compatible with my other Nokia phone model's RealPlayer, can someone please tell me what exactly is the video format of E90?
    Do I need to install a codes in order to play on other Nokia phone models? I assume it was Mpeg4.

    First, try going to store at the top of itunes and check for purchases. Just to make sure that the movie was finished downloading.
    If the video did not download correctly, then the only way to fix it is to download it again.
    In your account screen in the itunes store, there is a purchase history section. In this section, you can report problems with music, movies or anything that you have downloaded.
    Try using the purchase history section to report a problem and let the itunes store support that an error keeps coming up that the movie did not down load correctly

  • HT3775 I could not open video file name with .flv

    I could not open video file name with .flv Please help to advise?

    Install Perian or use VLC.
    (86537)

  • I want to make some video files together asone file.

    I have some video files which record manyhappy days about me.Recently,I want to make them together as one file,so that Ican save them much more easier.Do you have used some video joiner tools?Doesthe boilsoft video joiner for Mac works well?
    Share with me your advice,thanks.

    An easy way of combining movies in QuickTime:
    To combine two movies:
       1. In QuickTime Player, choose Edit > Select All to select the entire contents of the first movie.
       2. Choose Edit > Copy, then open the second movie.
       3. Move the playhead to the point at which you want to insert the movie (usually the very beginning or end of the original movie), and choose Edit > Paste.
       4. Choose File > Save As to name and save the new movie.
    You can continue to add on to the saved movie.

  • Video files exported with QuickTime Pro 7.2 can't be transferred to iPod

    If I use the default Export to iPod export choice in QuickTime Pro 7.2 to export video files and add them to my iTunes 7.3 library, when I try to sync them to my 5th generation iPod with video (November, 2005), I just get the "can't be played on this iPod" message. I can create, transfer, and play video files on my iPod if I create them a different way (by using iSquint, ffmpegX, or No Frills DVD2iPod, for example). Exporting to mpeg4 using h.264 results in the same problem, even though I've used settings I know worked before. The export to iPod export choice does not offer any customization of settings. Although this problem is new, I can't be sure the immediately previous version of QuickTime Pro didn't also have the problem, but I know I have successfully used QuickTime 7 to create videos that could be transferred and played on my iPod in the past. How can I use QuickTime Pro 7.2 to create video files that will be compatible with my iPod? Thanks.
      Mac OS X (10.4.10)  

    I can also verify this (QT Pro 7.2 exporting to .mp4 not compatible
    with video iPod [firmware 1.2.1 on both 5G/5.5G units]).
    This results in the unusual situation where custom H.264 output
    is operable on the iPhone but not the iPod.
    Example: your iPhone should play
    http://homepage.mac.com/retiarius/sample.elements.mp4
    but it won't transfer to a video iPod.
    Yes, the workaround is to 'export for iPod' or do the conversion
    within 'iTunes', but this in many circumstances will generate
    larger files.
    The closest description of this situation is:
    http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2006-September/015930.html
    Perhaps Apple will release a video iPod firmware update soon
    to get the 'uuid' atoms and whatever watermarking they are
    using these days straightened out.
    I'm surprised this hasn't been noticed more by video podcasters
    who dutifully use Apple's own QT Pro encoding tool to optimize
    filesizes via the tunable H.264/.mp4 codec settings.

  • Video files captured with FCP 7 appear to be text files in the finder!

    I've recently updated to FCP Studio 3 and am having a strange problem with HDV video that I have captured. The video shows up in the browser and plays in the timeline just fine, but I am unable to send any footage to Motion. I get an error saying that the file is missing. I cant even import directly from within Motion because the video files aren't even visible to the program! I am also unable to use any of the video files in drop zones in Master Templates in FCP. If I navigate to my footage in the finder, the files appear as text files. Yet if i double click on one, it opens in Quicktime and plays. This happens whether I capture video with the apple intermediate codec or any of the new Pro Res codecs.
    I should mention that I had no problems before i updated. Help!
    Jerry

    See this link:http://discussions.apple.com/thread.jspa?threadID=2108336&tstart=90
    Another work around: after capturing in Pro Res, when you look at your clips in the browser, when you label them add .mov to the end of the label. Then modify>rename>file to match clip. This will convert file on your scratch disc from tesxt file to .mov QT file which you can then use in other applications.
    Steve

  • Can .air installer some files together with the application?

    I have an installer.air that is created by Adobe Flash. I have another file called settings.cfg which is needed for my application to run. How do let the computer auto install settings.cfg into the installation directory together with the application when i run installer.air? Currently, I need to manually place the settings.cfg into the application installed directory.

    YAY Thanks, kglad.

  • Can video files made with a Canon XA-10 be imported into FCPX?

    Files made with a Canon XA-10 do not seem to be recognized by FCPX.
    Recording system of camcorder is  MPEG-4 AVC/H.264.
    Is there a format problem or a media conversion that needs to be made?
    Thank you.
    John

    Tom is exactly right.  Connect the XA10 to the computer using the USB cable that came with it.  Then go File > Import from Camera.
    Up will pop the import from camera window, which should show two cameras -- your Mac's built-in iSight camera, as well as your XA-10.  And you should see the thumbnails from all the various videos you've shot with the camera.  Just select the ones you want to import and click Import.
    FCPX will begin importing (and transcoding) the videos.  Do not disconnect the camera while this process is unfolding (it may take a while depending on how many videos and how long the videos are).

  • SWF Video file made with AVS

    I have a videofile given to me from the client as a SWF, they
    have used AVS software to convert.
    I load the SWF file in using MovieClipLoader, it plays ok,
    however, I can't seem to control it. I need to know when the clip
    is finished, and for it to stop looping. I also want to be able to
    stop it when the video is clicked.
    Has anyone had experience of this type of Video file? I would
    appreciate any response,
    Thanks,
    L.

    Well, if you are weighing things against WMP, it could be that PrE could have done something differently.
    Now, I am not a fan of WMP, and am REALLY not a fan of RealMedia Player. I liken that latter one to a Trojan, waiting to happen. I last had a version installed about 12 years ago, and would never let another copy near any of my computers.
    Besides the two that I mentioned, GOM Player gets high marks, as well.
    Good luck,
    Hunt

  • New video file opens with weird amplified sounds!

    Hi there!
    So I need to do some audio edit on a video file and when I opened that particular file in Soundbooth and hit play, the sound got all loud, amplified and weird. The video file audio works perfectly on all the media players I tried. Also, other video files sounds as it would in Soundbooth. I hope someone can help me in resolving this. Do remember, it's only weird for just this one video.
    Thanks

    had the same thing happen to me this morning, then went searching through my computers internal files to see if i could find anything possibly hiding from me

  • Avchd video file made with Premiere Elements 8 won't fast forward or reward

    I just finished an AVCHD video project in Premiere 8 and I can't fast forward or rewind the file on my computer with Windows Media Player or in Windows Media Center. The file plays nicelly but it's annoying watch it from start to finish for 45 minutes.
    I have a Vixia HF S20 - the video format of the original files was ACHD. After finishing editing the project I choose to save it on my PC (a Dell Inspiron 8100 with I5 - so lots of power awailable) as a MPEG file. I noticed that this format was the only one that gave me the option to save the video in H.264 1920x1080i 30 preset.
    The rendering of the video took some 3 hours. It saved the video in AVCHD format and at playback, on my computer screen, it looks just as it should - HD quality - but the lack of controls it's really, really stupid!
    Anyway, I need help to figure out what is happening here. Did I do something wrong? Are there other saving settings/presets to choose from that retain the HD quality I am not aware of?  Thanks a million in advance!

    Well, if you are weighing things against WMP, it could be that PrE could have done something differently.
    Now, I am not a fan of WMP, and am REALLY not a fan of RealMedia Player. I liken that latter one to a Trojan, waiting to happen. I last had a version installed about 12 years ago, and would never let another copy near any of my computers.
    Besides the two that I mentioned, GOM Player gets high marks, as well.
    Good luck,
    Hunt

  • What size is a video file recorded with ipod touch 4g

    just would like to know about what size would a one minute video recorded with the touch be, the same for a picture taken with it.  so i have an idea of which size ipod i should get.  of course, i'd like the 64gb, but right now i have a 32gb 1st gen touch loaded with 650 songs, 10 movies, photos and apps. it still has 18gb available.

    Thanks, it would be safe to guess that a picture wouldn't be more than 3 MB.  So, I would think that for what I'll be using an iPod, another 32gb should be enough as long as I download the files to a computer periodically.

Maybe you are looking for