Encoding video with JMF

Hi
i'm new in JMF and I'm trying to write a program that will encode video files to h.264 and also to divx. For know a made quite a lot of search and im still stuck. I tried with fobs but is has only decoding capabilities now im trying to do something with jffmpeg but it seems not to work for me (i mean encoding for decoding is ok) or i don't know how to make does anybody know what can i do ?? i mean some libraries that i can use or some tutorials.Is it possible to make something like this ??

The AVC or Advanced Video Codec / H.264 the MPEG-4 Standard is as smooth as glass. Very hardware intensive and time consuming depending on the size of your file. I reserve this for music videos and family video that I have captured to DVI. I am running a Windows machine dedicated to video work, P4 HT 3.6 overclocked to 4.1 and running liquid cooling and 4Gb of Ram.

Similar Messages

  • Encoding  video with NERO 7

    Anyone here use NERO 7 to encode video with the IPOD-AVC profile or IPOD profile? curious about success or not..

    The AVC or Advanced Video Codec / H.264 the MPEG-4 Standard is as smooth as glass. Very hardware intensive and time consuming depending on the size of your file. I reserve this for music videos and family video that I have captured to DVI. I am running a Windows machine dedicated to video work, P4 HT 3.6 overclocked to 4.1 and running liquid cooling and 4Gb of Ram.

  • Recording (encoding) MP3 with JMF

    Hi all,
    I'm not sure to be the first one, but I ask anyway.
    Does anybody out there have a solution how to record (encode) MP3 with only using JMF.
    Your help will be highly appreciated !!!!!!
    Kind regards
    aro

    I havent installed that plugin but i can decode (play) mp3 files with jmf.
    So, i suppose it was for encoding.
    If anyone has proved the plugin... ?
    Anyway you can use fobs project or jffmpeg.

  • Encoding videos with closed captioning / subtitles

    Now that closed captioning is supported on videos rented / purchased from iTMS, it is clear that the functionality is now supported on the Apple TV. Is anyone aware of any tool(s) that allow subtitles to be included? I already can embed the subtitles into the video using the various tools, but I am seeking a way to have true closed captioning that can be toggled on / off.
    As far as I know, the MP4 container does not support any type of subtitles in the container format. Therefore, Apple must be using a different format for its videos. Is it proprietary or some standard container format?

    Do not confuse Subtitles with Closed Captioning. For now, the only way to support subtitles is to place them in the video.

  • ATV3: Encoding videos with DD5.1 sound?

    Hi,
    I've started to convert recordings from my set top box (topfield satellite receiver) via PC and to move them into the iTunes libary.
    The recordings are being taken from various FTA stations in Europe.
    I'm using ProjectX to cut the raw files coming from my satellite receiver - and FormatFactory to convert it into MP4 format.
    Afterwards, I move the MP4-file to iTunes - and play it (via homesharing) on my ATV3 in the living room.
    This works fine as long as I take normal stereo (2-channel)-settings for encoding the MP4 file.
    If I'm going to use 6 channels (5.1), ATV3 doesn't playback the file anymore - it gets stuck at the beginning of the movie.
    The "fun" is: On my PC I can play this file within iTunes, which is in contradiction with the public opinion "if it works on iTunes, it works on your ATV as well".
    So, can someone of you tell me, if it's a bug in the ATV software - or do I need to use some special settings, to be able to enjoy 5.1 audio on self-recorded shows?
    (btw...the recording DOES contain 5.1 AC3 audio)
    Thanks,
    Boby

    Hi AC,
    thank you - since I've given up on FormatFactory and using Handbrake, everything seems to work fine.
    Seems to have to do with the predefined settings for ATV3 - also, the produced mp4-file is 30% smaller than using other tools, even handbrake is a bit slower (approx 10 minutes slower per movie, but that's still acceptable).
    Thanks for the hint - I'll keep using ProjectX for cutting (cuts out the ads of my .rec files within approx 60 seconds for a 90 min. movie, because it doesn't need a re-encoding). The cutted .rec-file will be fed directly into handbrake - and then later moved to iTunes - works perfectly.

  • How to use JFFmpeg with JMF

    Hi ,
    I am trying to use Jffmpeg with JMF to extend the supported format in JMF. I added jffmpeg-1.1.0.jar in class path variable.And I also made necessary changes to JMF Registry for JFFMPEG given in following url:
    http://jffmpeg.sourceforge.net/download.html
    But I could not play any mp4 video with JMF Studio.
    So,can any one help me to solve this problem?
    Thanks in advance
    Regards,
    Jyotirmoy

    This may not help much re Solaris, but is worth putting up here for reference for others, whilst the code structure may also be useful anyway being close to pure java and as a solution that reads & saves every frame.
    For Windows the folder in the zip includes Fobs4jmf, and - if necessary - setting preferences via the runjmstudio.bat should mean that the sun.bat will work for .mp4 and .flv video files.
    See vid2jpg.zip at http://www.exactfutures.com/index02.htm which includes the java source.

  • Video Capturing with JMF

    Dear friends
    I want to develop a program which can capture video from my web cam.
    (resolution 640x480 frame rate 20 frames/second) with JMF.
    If you have any suggestions and references please help me with this.
    Thank you in advance.

    ac09 wrote:
    ..If you have any suggestions..Read the posts to the [JMF forum|http://forums.sun.com/forum.jspa?forumID=28] where this topic has been discussed many (many) times. Make future posts re. JMF to the JMF forum.
    .. and references .. JMF [Code Samples and Apps|http://java.sun.com/javase/technologies/desktop/media/jmf/reference/codesamples/index.html] .
    Thank you in advance.No worries.

  • Stream video with Adobe Flash Media encoder

    Looking for a video camera capable of streaming video with
    good quality and decent price.
    What camara should I buy?

    I'm not sure if the Vixia series can be used to provide realtime video to a PC.  They're not really designed for this purpose - they are primarily recording devices.
    *disclaimer* I am not now, nor have I ever been, an employee of Best Buy, Geek Squad, nor of any of their affiliate, parent, or subsidiary companies.

  • Detection problem on HP webcam with JMF

    Hi,
    I'm trying NyARtoolkit and I need to use the video stream of my HP's webcam encrusted above the screen of my laptop (a HP Pavillon tx 2670ef)
    After the installation of JMF, I lunch JMStudio and I manage tu detect my webcam in : File->Preferences->Capture Devices->detect capture devices.
    Then i close the windows and i do File->Capture...->I enable "use video device" and unable "use audio device" then i click on "OK" but aftewards i have an error message saying that JMF couldn't initialize the capture device...
    2 students with me have the same pb...
    I made some researches about this issue and i found this post
    http://72.5.124.102/thread.jspa?messageID=10177842
    Afterwards I've installed ManyCam and i managed to get a video capture from the virtual webcam simulated with ManyCam.
    In fact, when i click on detect capture devices in JMStudio, a windows appears and i can choose "ManyCam Virtual Webcam" instead of "HP webcam".
    Moreover, in the options before capturing video, the encoding is in RVB instead of YUV before with the "HP webcam".
    But when i run my program i have this error :
    java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
         at java.util.Vector.elementAt(Unknown Source)
         at jp.nyatla.nyartoolkit.jmf.utils.JmfCaptureDeviceList.getDevice(JmfCaptureDeviceList.java:80)
         at jp.nyatla.nyartoolkit.java3d.utils.NyARSingleMarkerBehaviorHolder.<init>(NyARSingleMarkerBehaviorHolder.java:68)
         at J3DJME.NyARJava3D.<init>(NyARJava3D.java:174)
         at J3DJME.NyARJava3D.main(NyARJava3D.java:76)
    I tried many other things (Quicktime with QTcap... but i didn't managed to solve this pb yet)
    Coud you help to use my webcam with jmf ?
    josy

    You probably want to remove the crust from your web cam if you expect it to work. Most things that are encrusted aren't in the best of shape...
    JMF connects to web cameras by wrapping around native interfaces. If the JMStudio isn't able to use your web cam, it could mean a number of things...your web cam isn't compliant with the version of the interfaces (VFW and DirectShow, I believe) that JMF is wrapping around, the web cam doesn't output any formats JMF can use, etc.
    But if JMStudio can't use your web cam sucessfully, 99% of the time that means your web cam isn't going to work with JMF... unless you want to code support for it yourself.

  • Using JFFMPEG with JMF

    Hi,
    I had been trying to use jffmpeg within JMF to decode/encode media formats like mp4 etc to be used. When I am tryin to access net.sourceforge.jffmpeg.VideoDecoder and add it into the registry and try to run a usual avi file. It says
    java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key MJPG.JavaClass
    at java.util.ResourceBundle.getObject(ResourceBundle.java:314)
    at java.util.ResourceBundle.getString(ResourceBundle.java:274)
    at net.sourceforge.jffmpeg.JffmpegVideoFormat.getCodecClass(Unknown Source)
    at net.sourceforge.jffmpeg.VideoDecoder.setInputFormat(Unknown Source)
    at com.sun.media.SimpleGraphBuilder.verifyInput(SimpleGraphBuilder.java:923)
    at com.sun.media.SimpleGraphBuilder.matches(SimpleGraphBuilder.java:888)
    at com.sun.media.SimpleGraphBuilder.doBuildGraph(SimpleGraphBuilder.java:322)
    at com.sun.media.SimpleGraphBuilder.buildGraph(SimpleGraphBuilder.java:168)
    at com.sun.media.SimpleGraphBuilder.buildGraph(SimpleGraphBuilder.java:84)
    at com.sun.media.PlaybackEngine$PlayerTControl.buildTrack(PlaybackEngine.java:2102)
    The code snippet is as below which I am tryin to use
    String JFFMPEG_VIDEO = "net.sourceforge.jffmpeg.VideoDecoder";
    Codec video = (Codec)Class.forName( JFFMPEG_VIDEO ).newInstance();
    PlugInManager.addPlugIn( JFFMPEG_VIDEO,
    video.getSupportedInputFormats(),
    video.getSupportedInputFormats(),
    PlugInManager.CODEC );
    Please let me know where things are going wrong. If possible if anyone has any sample jffmpeg with jmf code, it will be very helpful.
    Thanks ,
    -vijay

    This looks like jffmpeg fails to load the native libraries via JNI. When this happens, jffmepg tries to find an optional pure-Java decoder (which is not available in for MJPEG) -> Look into jffmpeg.properties. You have to ensure that libjffmepg.so is available in your java library path in order to use the native jffmpeg decoder (will be found automatically).
    Also, you could try something like this:
    System.setProperty("java.library.path", LD_LIBRARY_PATH);
    libname = "jffmpeg";
    System.out.println("mapped name"+System.mapLibraryName(libname));
    System.loadLibrary(libname);
    System.out.println("library loaded");

  • Getting RTSP servers to work with JMF

    I have read through many postings about this, but none of them have been answered. Has anyone gotten JMStudio or any other JMF application to be able to properly recieve video streams in any format from a video on demand server using RTSP? I have tried Darwin Streaming Server (which the JMF faq claims has been tested with JMF, so I take it someone out there knows how to get this working) and Real's Helix Universal Server Basic. I have tried using JMStudio's Open URL menu, and writing a simple application to act as a client.
    At this point I would just like to find some server that works with some file/encoding format. Has anyone gotten anything to work? Thank you.
    -Brad

    I am facing the same problem. does anyone succeed to write a java RTSP player that interfaces well with Darwin Streaming Server?
    I don't find any examples of MPEG1 streaming in JMF. Most samples i.e. SimplePlayerApplet.java (param="sun.avi") use local video paths but not rtsp:// URLs.
    Samples like AVreceive.java / RTPUtil.java do not use explicit MPEG1 samples and assume that you have an RTP server. And other apps like http://www.alphaworks.ibm.com/tech/mpeg-4 are not fully open source.
    What streaming server would you suggest to use? I tried without success to stream a video within a java applet using DarwinSS (ok with .mov, .mp4 but not in java) or RealServers (ok with .rm but also not in java).
    In http://java.sun.com/products/java-media/jmf/2.1.1/support-rtp.html it is said that the following RTP servers are compatible with the JMF RTP Player (using javax.media.rtp) but each of them have a serious drawback:
    ShowMeTV Transmitter (commercial), IP/TV Server (commercial), vic (Video only), vat/rat (Audio only).
    Thanks in advance for any reply

  • HT202786 my friend shared a video with me on icloud photo sharing and then she deleted it from her camera roll, how do I save it???(very urgent)

    my friend shared a video with me on icloud photo sharing and then she deleted it from her camera roll, how do I save it???(very urgent)

    DVDs are encoded into MPEG2, which iMovie cannot edit. So you need to convert the DVD back to something else. For highest quality, I recommend that you convert the DVD to Apple Intermediate Codec. There is a free tool called MPEG Streamclip that will do this. You will also need to install the Apple QuickTIme MPEG2 Playback Component.
    Here are the details.
    1) Download and install the Apple MPEG2 QuickTime Component ($20) - available online from Apple.
    2) Download and install MPEG Streamclip from Squared 5 (free).
    3) Start MPEG Streamclip
    4) Insert your DVD into your Mac. If DVD Player or Front Row starts automatically quit those.
    5) Open a Finder window. Navigate to your DVD to the Video_TS folder.
    6) Drag the .VOB files from the Video_TS folder and drop then into MPEG Streamclip.
    7) If MPEG Streamclip offers to fix timecode breaks, say yes.
    8) Use FILE/EXPORT TO QUICKTIME to convert the files to Apple Intermediate Codec (or h.264 if you prefer)
    9a) Optional: You can deinterlace your footage in this step, if you like
    9b) optional: If you know the date and or time of the footage, name your file
    clip-yyyy-mm-dd hh;mm;ss
    (let mpeg streamclip provide the extension). This will provide metadata that iMovie will use to put the event in the right year and month.
    9c) Optional: If you don't want to make one huge clip out of your DVD, you can make smaller clips by using MPEG Streamclip. Move the cursor to the "in" point of the clip, and press i. Move the cursor to the "Out" point of the clip, and press o. Then do steps 8 through 10 and repeat until you have done this for all clips you want.
    10) Save the resulting file in a place where you can find it, like your Desktop.
    11) Open iMovie.
    12) In iMovie, choose FILE/IMPORT/From File and choose the file you saved in steps 8, 9, 10.
    13) iMovie will generate thumbnails and you can edit.

  • Sleep Display not staying asleep when encoding video

    Hello,
    I am looking for a way to turn the display off and KEEP it off with applications running as normal, until I want to wake it up. It is not always staying asleep.
    I have a hot corner set up so that I can instantly turn my iMac display off (including the backlight). This works fine most of the time, but when running certain applications, activating sleep display works for a few seconds then stops working and the screen comes back to life.
    Example applications which cause this are iTunes when encoding a video (e.g. converting a movie to iPod format), iSquint when encoding video, iDVD when encoding and burning a DVD - seems to be anything that makes heavy use of the processor.
    I have tried all sorts of things to get around this:
    1. setting the sleep display timer to 1 minute in the Energy Saving settings
    2. 3rd party application and widget "Sleep Display" (http://linestreet.googlepages.com/home) which claims to make the display go to sleep and STAY asleep, suggesting "This version may work for people who experienced the monitor going off then coming right back on" - which indicates that it's not just me having the problem. This "Sleep Display" application doesn't work with Leopard though; the author acknowledges this and suggests he will update it if he upgrades to 10.5
    3. different application - http://www.imalc.com/Site/SleepDisplay.html - this does the same as the hot corner and wakes up within a few seconds
    4. sleep display tool in Dockables - same problem
    5. "shades" system preference add-on, this makes the screen black and keeps it black but doesn't turn the backlight off
    6. tried hiding the offending application, moving it to another space - nothing seems to work!
    7. covering the imac with clothes - not ideal!
    Thanks for your help!
    Jim
    P.S. the screensaver does stay on - so whatever is waking the sleep display isn't disturbing the screen saver - this suggests to me it's a bug. Obviously a black screensaver isn't the solution though - the backlight is still on.

    I've got a very the similar problem. Brand new iMac 24" that shipped with Leopard -- my first Mac after jumping ship fom the Windoze side.
    I had iTunes updating it's album artwork and since it was taking a while, I went to bed. When I turned out my light, I realized the screen had not yet gone to sleep (a good 15 minutes after it should have). So I set up a Hot Corner to put the display to sleep. When I put the mouse there, the monitor would go to sleep, but wake up within 10 seconds. At first I thought it was just the mouse moving as I walked away, but it wasn't.
    I ended up turning the computer off because the big beautiful screen was throwing too much light. Since, I rarely turn my computers off and they're usually doing SOMETHING, this is really annoying.
    Admittedly, I haven't tried some othe the potential solutions above, but this has to be the same bug. Screen saver stays on, monitor comes out of sleep.
    Any help would be.....well.....helpful.
    Ian

  • Encoded video doesn't work on Toshiba Blu-ray disc player

    I have a problem that I am trying to encode a sequence of frames in a video container , but the encoded video doesn't work on toshiba blu ray disc player .. I am using the following ffmpeg command to encode frames and convert them to a video:
    ffmpeg -i "C:\ManVsWigan\Frames\%d.png" -vcodec libx264 "C:\ManVsWigan\encoded.mp4"
    I tried multiple video codecs but no luck yet
    "-vcodec mpeg4"
    "-vcodec mpeg2video"
    If you have any idea please help me

    The BluRay player leverages parts of Windows DirectShow but won't serve very well as a general player since Windows will load other players for the majority of media formats.
    You can get away with a limited amount of tampering of the BluRay's players tolerance of media files until you violate some far away written DRM safeguard and kneecapping the BluRay player from doing anything.
    If you're trying to validate your ffmpeg composed tests of your content as part of the editing process, you're better to avoid relying on the BluRay player that is purposed for narrow replay of licensed content and equipped with oversensitive safeguards susceptible to malfunctioning from the invasions of video pirates like you defined by studio executives.
    You and I understand you're not a pirate but chances aren't being taken.
    Whether you just dowloaded FFmep in the macho exe format or part of the millions of other packages that include it, you can tune your players to codecs pretty easily with the KLite Codec Manager or the Registry.
    Chances are you already know about KLite since editing video on Windows eventually requires it and its hard to walk down the street without eventually kiceking over a copy. But just in case you've been living on a Martian cave with your hands over your ears, snag a mirrored copy from: http://codecguide.com /download_kl.htm
    I like KLite more than others because it is fairly unobtrusive and avoids stomping over other media tools the way Adobe Premiere or Sony Vegas enslaves Windows and can neuter BluRay codecs without always adequately replacing them. I can cite threads on the matter but just googling for anything such as "Adobe Premier killed my BluRay" or "Sony Vegas ruined Windows" will usually return desperate strings of posts long enough to wrap around Jupiters equator.
    For general maintenance of Windows poor codec management, grab this noninstalling executable http://www.nirsoft.net/utils/installed_codec.html to determine if Windows believes it has the same codecs you thought it did and you'll likely be surprised by the fine tuning you'll need to perform.

  • Quicktime 7.6.4 won't play h264 encoded videos on my 10.4.11 MacMini

    Hello:
    This is my first post. I read through the forums and this seems to be the correct place to pose my question. If it's not, my apologizes.
    I'm trying to find out why Quicktime 7.6.4 won't play h264-encoded video on my MacMini (G4 PPC). I'm running 10.4.11. I recently installed Perian 1.2.1 and it got some .avi files to play correctly, whereas before there was no sound. But the h264 files still get me a black screen, albeit with sound now. Some h264 files can be played in VLC Media Player (but that's a horrible player compared to Quicktime in my opinion, as it constantly drops frames and eats 100% of my processor time), but VLC even has the black screen problem on some h264 files as well.
    I've also tried MPlayer OSX but that's really an alpha-type development and has a lot of bugs. Many movies it can't even open.
    Sorry for the rambling, but again my question: Is there any way to play h264-encoded video in Quicktime 7.6.4 on my Mac?
    Thanks in advance for your expertise and advice.

    Mr Ram,
    There is a group of Quicktime specialists in Apple.com ⇒ Support ⇒ Discussions ⇒ Quicktime .
    The more data you give us, the easier it is to help us help you to diagnose your problem. Your disk space would be very useful. Contrary to some, I advocate iDefrag to assist VLC and MPlayer, which you were a little hard on.
    GNU/Linux's free offerings
    MPlayer was developed a decade ago, and I prefer it for viewing DVDs (for 'DVD Player') seems too dark. VLC (legally) copies many CRM-protected DVDs of yours, so you can play only the burned copy. When I'm having a problem playing a DVD, the VLC log tells me all: only perfect DVDs play well on VLC.
    There are two ways of viewing everything.
    Streaming MPEG-4
    +H.264/MPEG-4 AVC+ is a fancy codec based upon MPEG-4: it requires a powerful processor to de-compress it. I watched an MPEG-4 movie from a G3 iBook in 2005. It played flawlessly.
    Your Problem
    Quicktime 7.X applications can not play +H.264/MPEG-4 AVC+ streams. It was a bug Apple never fixed. Frames are dropped because H.264 is so slow that it requires special hardware. You, I'm sad to say, don't have it.
    To quote the Wikipedia on Quicktime: 'QuickTime 7 lacks support for H.264's Sample Aspect Ratio .[67] QuickTime X does not have this limitation; many Apple products (such as iTunes and Apple TV) still use the older QuickTime 7 engine.'
    My Quicktime Pro on a PPC PowerBook is 7.6.4. You can either use a Linux transplant or upgrade to Quicktime X. Those more familiar with Macs may have better ideas for you.
    My best,
    Bruce

Maybe you are looking for