How to cut/split MPEG4 video in my program?

Hi,
I am finding for a Java API function, I need this function can cut a segment of MPEG4 Video from a big whole MPEG4 video, and I can set the start time and the end time of cutting video,such as : "cutVideo(startTime,endtime)", for example,the value of startTime is 5 minutes,the value of endTime is 10 minutes.And the output or the return is a MPEG4 video file, saved as "aftercutting.avi".
I am a programmer,but i do not know anything about multimedia.So I can not read any SourceCode about MPEG4.
Can you provide such a function and Java Package for me ? Thank you very much! If any body knows anything about this please mail me its very urgent for me. My email is [email protected] .
sorry if any mistakes i had wrotten i am poor in english.
Best Regards
Michael Huang

You might find your answer here: http://java.sun.com/products/java-media/jmf/2.1.1/solutions/Cut.html However, sun JMF implementation does not support (as far as I know) MPEG-4 format on its own. You might try using another implementation of jmf (i am using fobs4jmf, but there are also ffmpeg, jffmpeg and many others). There are also MPEG-4 plugins for JMF (such the one provided by IBM, downloadable from here: http://www.alphaworks.ibm.com/tech/mpeg-4/download)
If anyone has a better answer, i'd be intrested in it too.
Regards,
George

Similar Messages

  • How can I split the video port of an older Mac Mini so I can use both the 922-6199 DVI to RCA, S-Video Adapter and a Cinema Display?

    How can I split the video port of an older Mac Mini so I can use both the 922-6199 DVI to RCA, S-Video Adapter and a Cinema Display?

    Which exact Mini?
    At the Apple Icon at top left>About this Mac.
    Then click on More Info>Hardware and report this upto but not including the Serial#...
    Hardware Overview:
    Model Name: iMac
    Model Identifier: iMac7,1
    Processor Name: Intel Core 2 Duo
    Processor Speed: 2.4 GHz
    Number Of Processors: 1
    Total Number Of Cores: 2
    L2 Cache: 4 MB
    Memory: 6 GB
    Bus Speed: 800 MHz
    Boot ROM Version: IM71.007A.B03
    SMC Version (system): 1.21f4

  • How would I sync MPEG4 videos to the iPad

    How would I sync MPEG4 videos to the iPad

    As long as they meet the iPad's supported video formats then you should be able to sync them via iTunes. From http://www.apple.com/ipad/specs/ :
    Video formats supported: H.264 video up to 720p, 30 frames per second, Main Profile level 3.1 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; MPEG-4 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format
    If you can't get them into iTunes then you can use something like Handbrake to convert them into a supported format. If you can get them into iTunes but they then won't sync to the iPad then try Advanced > Create iPad Version in iTunes and then try syncing that version.

  • HOw to cut up a video into separate tracks?

    It's been a while since i used iMovie, so I can't remember what term I would need to look up in the help section. I have a hour long home movie that I want to cut up and use only certain portions in my final video. Each portion will then become a new track on the DVD that can be accessed via the DVD menu. How would I go about this?
    Thanks

    There are two ways to do this in iMovie 09
    1) Use Chapter Markers
    2) In the Project Library View, select the project and then click FILE/DUPLICATE PROJECT. Do this as for as many copies as you need. Then to create a shorter portion, delete the clips you do not need for that portion.
    If you are open to using another application, you can Share your movie in iMovie. Then use QuickTime Pro ($30) or MPEG Streamclip (free) to split the movie.

  • How to cut an avi video?

    i want to take a certain part of a video. can u help how cut an avi-format video? tnx

    can u help how cut an avi-format video?
    1. Get a copy of your local Yellow Pages.
    2. Turn to the Video Production section.
    3. Call at least three places and get their hourly rate for editing.
    4. Hire the cheapest one that you feel comfortable working with.
    There is an alternate path, though it is far more expensive and time consuming.
    1. Go to school for video production.
    2. Graduate.
    3. Get a job working for another company.
    4. Do well at that job, learning more and more as you go.
    5. Now that you're qualified, do the job yourself.
    (As an aside, you can possibly shorten the total time by asking a trusted co-worker to do it for you as a substitute for steps 4 & 5, although that will defeat the satisfaction of doing it yourself.)

  • How do I split the video into 4 screen? I don't see the picture on picture option!

    How?

    For picture in picture in iMovie 10 (I'm assuming this is what you are using)  - drag the picture you want to add to above the clip in the timeline where you want to add it.  It will 'stick' just above the timeline clip with a link poiting down to it.  At this point the picture will replace the clip completly (default behaviour).  Now move the playhead (white vertical line) to somewhere within the added picture and click on leftmost icon above the viewer (Video overlay settings).  A dropdown menu below gives various options the bottom one of which is picture in picture.  Select thios and you can position and size the picture in the viewer.
    I don't quite understand what you mean "by split into 4 screen".  You can have just one picture in picture, same as before.
    iMovie has a radically changed user interface so it is really necessary to study the help information to find out where things are.

  • How to make a mpeg4 video file with an .avi extention

    Can anybody tell me how to do this with Quicktime Pro, Final Cut Pro, or something else?
    Thanks.

    Hi All,
    What I thought to develop is to write a JDBC connection in the Stan-alone PDF template and access database.
    example: PDF is designed in such a way that it should have "USERNAME" , "PASSWORD" , "LOGIN BUTTON" , so that PDF stand-alone template on every desktop should access the database on entering the correct credentials.
    is it possible..?
    if possible , please provite the solution..?

  • I'm a new user. How do I split a video clip ?

    Sorry, I'm a sophomore. I just started using final cut. This question may be a dumb question but I need to put an effect on part of a clip for a montage I am trying to do. I have the clips i need for the montage, but I need some help. I know how to use imovie and I have already made a montage before. But I got final cut because with the new imovie they took out effects, which I desperately need.
    Thanks in advance.

    This might help you get started
    http://www.fcpbook.com/Effects5.html

  • Split audio video tracks on iMovie on iPad 3

    This has probably been asked before but I'm having trouble navigating through this new support interface to find the answers.
    I have a new iPad 3 with Retina display. When I bought it I downloaded the latest version of iMovie for this iPad.
    When I drop a video clip (with audio) into the timeline the video and audio are synced. (linked)
    So......
    How can I easily unlink (split) the video and audio so that I can shift the audio and have that audio play over a different video clip?
    How can I split the video and audio so that I can carry over the audio into the next clip in an L cut?
    How can I drop in only the camera audio without any video?
    How can I drop in the audio and have it play under a still photo?
    These all seem like basic operations needed to have a polished little video.
    I KNOW iMovie is not Final Cut but I don't want a movie made by
    iMovie on this iPad to be just straight video clips married to the original audio.
    There must be a way to do this but it doesn't seem obvious so I hope you can tell me how.
    Thanks
    Steve

    How can I easily unlink (split) the video and audio so that I can shift the audio and have that audio play over a different video clip?
    How can I split the video and audio so that I can carry over the audio into the next clip in an L cut?
    How can I drop in only the camera audio without any video?
    How can I drop in the audio and have it play under a still photo?
    You cannot do any of this in iMovie iOS.
    It is just a basic editor that does not have any advanced audio tools.
    ...I don't want a movie made by
    iMovie on this iPad to be just straight video clips married to the original audio.
    That is all you can do on the iPad sorry.
    It's not built for compex editing.
    You could try Avid on iPad.

  • How can i split a long single video with many different scenes in it ?

    how can i split a long single video with many different scenes in it ? in premiere pro cs3

    Yep better ask in the Premeire Pro forums, but while loading their forum page check the cutter tool (C) it will allow you to cut your footage

  • How can I cut up a video file into smaller bits?

    I shot around 3 hrs of 1920x1080 AVCHD in 2 clips (a wide shot of the stage of a musical production I performed in) It all fits in the internal memory of my camera.
    Two friends shot medium and closeups in Standard AVI with a view of making a DVD (2 disks)
    They will be editing it in Premier Pro standard def.(a 3 camera production!)
    When I convert my AVCHD to AVI SD, each of my 2 reduced clips is still too big to fit on one dvd disk as a data disk.
    How can I cut each clip in half to fit on a total of 4 disks so I can send them the video?
    If I make two AVCHD projects out of each clip in PE9 and share as DV, the quality is badly degraded. Near vertical lines become very jagged and the picture is much softer than if it had been originally shot in SD.
    If I make a PE9 DV project and import the AVCHD instead, I get the red line and the picture once rendered is no better.
    I have seen references to a lossless codec. Would this do the job in PE9 and how do I implement it?
    The 4Media converter does a much better job of converting to SD but how can I cut the new file in half?

    I would point out that Standard Def here in Australia(576) is 12% better vertical resolution that in USA(480).
    So European & Aussie SD doesnt look quite so bad compared with full HD
    In fact if you stand more than 4 metres from a 40" screen, most people cant see the difference between good SD and full HD.because the eye cant resolve such fine detail at that dustance even with perfect vision.
    This is providing the original material was shot with a good camera capable of HD and it was downscaled properly.
    Converters
    I. downloaded trials of the following converters and rank them in the following order
    1. 4Media version 6 AVCHD to AVI converter ($37)
    2. Prism
    3. AVS
    4. Wondershare
    5. PE9 making seperate SD projects
    I found them obviously different with PE9 right at the bottom of the scale! I will never use it again to make a SD project.
    Blurryness and jagged or twinkling diagonal lines were the most common faults.
    4Media shone above all the others. When used on the highest bit rate was only slightly softer than the ACVHD material with no jagged diagonal lines but it produced an AVI file the same size as the AVCHD.
    When I set the bit rate so the AVI file produced was half the original AVCHD, the quality was equal to original SD video Shot on my old Sony Camera that cost me $2000 5 years ago.
    I can split the files with this program too!
    Judging picture quality
    All pictures will have errors and be less than ideal. It's just a matter of how many are acceptable.
    The ONLY way to evaluate how good a picture is to view it on the best  possible setup. You can't judge vertical resolution on an old CRT TV  which is a different number of lines anyway (525 or 625) so evaluation  is impossible. Digital TV thru a set top box to a CRT TV is far worse  than the original analog.
    Because everyone knows SD is worse then HD but it should only be half as bad (576 is about half of 1080)
    Because I wear glasses that perfectly correct my focus and slight astigmatism, I have a good rough method of calibrating my eyes so I can relatively judge quality of different pictures on different systems.
    I vary the difference between myself and the screen so the left and right edges are in line with my fingers inside the frames of my glasses!
    This is equivalent to  sitting two thirds from the screen in the average picture theatre where  you can comfortably sit without being disturbed by deficiencies of  most film and HD projection.
    Applying this to my computer screen I can now judge pretty well. If a picture looks really good under these circumstamces it IS good and I can easily see any meaningfull errors.
    Using my calibration "method", I found that full HD on my 40" LCD is noticeably sharper than the best cinema in our city (we have 39 of them, some with 8 theaters ) and after enquiries found they are all 1440x768 and not true HD at all.If you get there earlier than when they boot up their projector you can often see this in their boot up screen.
    Worse still they slightly defocus them so you can see the pixel structure close up!
    The now rare 35mm Film projection ranks even lower by the time copies are distributed.
    You can't buy analog TVs or CRT screens anymore here anyway and Analog TV finishes here completely next year.

  • How to split a video clip into two separate clips?

    Whenever i enter the key word to search for split, it always shows me how to do split edit, or split screen. I do not want that. I just need to know, how to cut a video/audio clip into two pieces, so that I can cut one of them out of the time line....
    Could somebody help....
    Thanks

    I have a sandwich. I have been searching how to split the sandwich but it seems you don't split a sandwich. Someone said look in a draw for a tool or something!
    Wow.
    There are lots of ways to do what you're asking besides what has been said. You can double click the clip in the Browser. Set In & Out points in the viewer and add the Clip to the sequence. No need to split or cut anything in the sequence.
    You really need to learn a bit more before you continue cause this is a pre-noob question. I don't really know how to categorise it.

  • I have a huge file which is in GB and I want to split the video into clip and export each clip individually. Can you please help me how to split and export the videos to computer? It will be of great help!!

    I have a huge file which is in GB and I want to split the video into clip and export each clip individually. Can you please help me how to split and export the videos to computer? It will be of great help!!

    video
    What version of Premiere Elements do you have and on what computer operating system is it running?
    Please review the following workflow.
    ATR Premiere Elements Troubleshooting: PE11: Project Assets Organization for Scene and Highlight Grabs from Collection o…
    But please also determine if your project goal is supported by
    a. format of your source
    and
    b. computer resources
    More later based on details that you will post.
    ATR

  • How to show a MPEG4/H.264 video in Flash in an HTML page?

    Maybe my title isn't clear. I am hoping someone can shed some
    light on the h264 use in flash.
    Instead of displaying a progressive download .FLV video , I
    am trying to have an MPEG4 /h.264 approx. - a 30meg video display
    in flash in an .html page. Quicktime is easy to do, but Flash is my
    goal.
    I read several articles on h264 and flash 9, including this
    adobe
    H264 article but was hoping there might be an easier and maybe
    quicker solution. I did try renaming the .mp4 extension to .flv in
    dreamweaver but it did not display the video. (...unless it was
    downloading the video completely before displaying...not sure)
    There is a ton of sites, blogs and articles on h.264 and how
    flash 9 will display it...but when it comes to how one might
    actually have h.264 in flash on their own site...I am finding it
    difficult to figure out.
    Forgive my lack of action script and Flash knowledge...any
    direction is appreciated.
    Erick

    ...well I did follow that article on playing an h264/mpeg4
    video in flash. It works well, but how would you add playback
    controls?
    FLVPlayback component only allows you to source an FLV video
    not h264/mpeg4.
    This is probably a simple as3 answer...but I am not
    knowledgeable on as3 to know what code to add.
    Any suggests or direction that I should look would be great.
    In the meantime I am researching actionscript 3 to find and anwer.
    E.

  • FCPX: In Event Library: how to know if a video was used in the timeline of Final Cut Pro X?

    In Event Library: how to know if a video was used in the timeline of Final Cut Pro X?
    An example: In Premiere Pro, the whole video is added to the timeline identified as used in their video library. Facilitating our work on a big project, not to repeat videos. You can do this in FCPX?

    The way it works in FCP:
    Working from the Timeline Index, you can see lists of all clips in the sequence and their location in the timeline.
    You can also do a search (kevn) to narrow the results.
    Russ
    hth.
    Russ

Maybe you are looking for

  • Taking my 20" Cinema display on the road; how do I remove the stand?

    Hi everyone, I'm planning to do alot of work on location this summer and would like to find a way to remove the stand attached to my 20" LCD Cinema Display so that I can pack them both into a smaller case. I've just removed the allen key cover on the

  • How do I create a live copy of a table in Numbers?

    I'm not even sure how to word this question, which is why I've had a hard time searching for it. I'm working on a spreadsheet that has 265 rows on it. In the future, we will probably be adding to those rows. I need to have that exact same information

  • HT4914 iTunes Match / icloud

    I have a MacBook , ipad & iPhone , I'm thinking about iTunes Match & storing all music in the cloud but as my MacBook is the main computer for the house does it need to always be on for the music to work ?

  • Passwords in the new ios7

    Downloaded the new ios7 it didn't save any passwords and still won't.

  • Cisco 4507R problem

    I have started to see the problem for couple days where some hosts connected to 4507R stopped responding to ping and I saw huge latency upto 400msec. (In normal cases it is 1 msec becuase they are directly connected hosts. I couldn't find anythiing i