Video\Audio encoding in Java

Hi,
I need to write an application that will convert videos to different formats. Like: mov to mp4, flv to mp4, etc
Anybody know of java classes\libraries I could use to implement this?
Thanks!
Tamara

scottjsn wrote:
How can I in the java class DYNAMICALLY set up the encoding so that the sysytem at the runtime will acccept the Cyrillic characters. Nonsensical. Java strings are unicode. Always. If you have a java string and you pass it to a java method it remains a java string.
And the Cyrillic characters are mapped into unicode. So a java string can certainly contain them.
Your problem probably lies either in getting Cyrillic into the string or setting up the "display" so it get displayed.
You first step should be in understanding that there is a difference between data (such as what is in a string) and display (what you see on a screen.) Data is always mapped when displayed. Understanding how that mapping occurs is important.

Similar Messages

  • Best Audio Encoder for Java???

    In my program, I can only play .au files in Java.. I have a few .wavs that I would like to incorporate into my program, but I need to change them into .au . Ive tried using COOL EDIT PRO 2 and SOUND FORGE 6.0 to open up the .wavs, then save them as .au .. I run my Java program, but an error comes up saying INVALID ENCODING and INVALID FILE TYPE.. Does anyone have a solution for this frustrating problem I have? It's very urgent and I need your help, thanks...

    It took me 4 clicks and 12 keystrokes to find this.
    http://java.sun.com/docs/books/tutorial/sound/problems.html
    I clicked Tutorials
    I clicked The Java Tutorial
    I clicked in the Tutorial Search textField
    I typed sound files <enter>
    The first one looked good to me, click!
    Live and learn,
    Radish21

  • Not able to recognize any video/audio devices using jmf and java soun

    Hi ,
    I need one help from your side.
    Here I am expecting some clarifications from you. Before that let you my environement.
    My working environment :
    Eclipse tool and added jmf jar to my project I did not do any thing more.
    If any thing I need to do just let me know. My target platform is MAC & UBUNTU.
    Please bare with my questions.
    1) I am not able to recognize any video/audio devices using jmf and java sound APIs on My system.
    ( I checked with the app mentioned in the http://www.java-forums.org/new-java/11201-jmf-cannot-connect-device.html )
    Do we need any administrives rights for our working PC.
    What is the procedure/ setup I need to follow from a java application to enable particular audio/video device since I dont about end-user system setup right.
    If possible send some sample code to recognize /r detect audio device ( voice input ). It should run on both MAC and UBUNTU.
    2) I run the one sample audio recording application of this link (http://www.jsresources.org/examples/SimpleAudioRecorder.java.html) which is provided by YOU.
    I got output audio file and able to hear voice on UBUNTU system but not able to hear voice on MAC system.
    I heared that default line in ( audio setup of the sys) is wont take any voice data on MAC.Why I made this stmt means we are getting false when using isSupported methods of JAVA SOUND API.
    ( like for TragetdataLine ...i,e, all ports are getting false)
    I have one sample audio recording app implemented by QUICKTIME API. In this case also he taking audio ftom device only using quicetime API.
    With that we are able to record and hear audio ( voice input --> not line in , external device we added some thing like SSB...)
    3) In case of Video capturing DataSource, Streams are implemented by PullBufferDataSource , PullBufferStream intefaces used.
    In case of Audio capturing DataSource, Streams are implemented by PushBufferDataSource, PushBufferStream intefaces used.
    Can you explain the reasons ? I gone through API but i am not clear.
    HOPE I WILL BE CLARIFIED EVERY THING FROM YOU.
    Thanks
    RamaRao.G

    Hi ,
    I need one help from your side.
    Here I am expecting some clarifications from you. Before that let you my environement.
    My working environment :
    Eclipse tool and added jmf jar to my project I did not do any thing more.
    If any thing I need to do just let me know. My target platform is MAC & UBUNTU.
    Please bare with my questions.
    1) I am not able to recognize any video/audio devices using jmf and java sound APIs on My system.
    ( I checked with the app mentioned in the http://www.java-forums.org/new-java/11201-jmf-cannot-connect-device.html )
    Do we need any administrives rights for our working PC.
    What is the procedure/ setup I need to follow from a java application to enable particular audio/video device since I dont about end-user system setup right.
    If possible send some sample code to recognize /r detect audio device ( voice input ). It should run on both MAC and UBUNTU.
    2) I run the one sample audio recording application of this link (http://www.jsresources.org/examples/SimpleAudioRecorder.java.html) which is provided by YOU.
    I got output audio file and able to hear voice on UBUNTU system but not able to hear voice on MAC system.
    I heared that default line in ( audio setup of the sys) is wont take any voice data on MAC.Why I made this stmt means we are getting false when using isSupported methods of JAVA SOUND API.
    ( like for TragetdataLine ...i,e, all ports are getting false)
    I have one sample audio recording app implemented by QUICKTIME API. In this case also he taking audio ftom device only using quicetime API.
    With that we are able to record and hear audio ( voice input --> not line in , external device we added some thing like SSB...)
    3) In case of Video capturing DataSource, Streams are implemented by PullBufferDataSource , PullBufferStream intefaces used.
    In case of Audio capturing DataSource, Streams are implemented by PushBufferDataSource, PushBufferStream intefaces used.
    Can you explain the reasons ? I gone through API but i am not clear.
    HOPE I WILL BE CLARIFIED EVERY THING FROM YOU.
    Thanks
    RamaRao.G

  • Audio is 1 frame longer than video after encode

    My .ac3 files are coming up 1 frame longer than they should be on SOME encodes. Unfortunately, I can't see any noticeable pattern to which files it happens to. It occurs on anything from audio-only files created in Soundtrack to an FCP video/audio export. It's happened on both a DV sequence as well as a DVCPRO HD sequence. It's a bit unnerving to see the audio longer than the video, even if it is one frame because the end product is slightly (1 frame, I'd reckon) out of sync. I've tried setting a specific out point in my sequence and got the same effect.
    Does anyone have any ideas? Anyone else having their audio come up 1 frame too long on a Dolby encode?
    Thanks,
    Cameron

    Anyone else having their audio come up 1 frame too long on a Dolby encode?
    Yes.
    The rest is longwinded with no answer to the problem.
    First the system config.
    Dual 1.8 GHz PCI-X G5
    4 GB Ram
    Media drive: 800 GB Raid FW 800
    (4 discs, 2 on internal bus, 2 on LaCie FW 800 card)
    162 MB/s Read, 91 MB/s Write.
    FCP 5.1.2
    Compressor 2.3
    DVD SP 4.1.1
    I created a 16 minute NTSC DVC PRO50 sequence, audio at 48KHz 16 bit.
    Not having a person recorded talking for that length of time I created a series of one frame "pops" of color bars and tone, followed by 10 seconds of video and audio slug.
    This sequence was copied and pasted to fill the timeline with a single frame of the "pop" at the very end.
    Everything perfectly in sync.
    I nested the sequence and rendered.
    No matter how the 16 minute timeline was exported and compressed to MPEG-2, 7 Mb/s and Dolby 2.0 192 Kb/s.
    (direct export to Compressor, export of audio and video separately or sequence export, then to Compressor)
    there was always an audio sync error once imported to the DVD SP timeline.
    Not an entire frame out, but on zooming to max in the timeline in SP, about 7/8 of a frame extra.
    If I exported just the last 1:21 min of the NTSC DVC PRO50 timeline, and compressed with the same settings, the extra audio length was about 3/4 of a frame over.
    Next I exported the NTSC DVC PRO50 timeline as a DVCPRO HD100 1080 60i QT sequence.
    Cut the last 1:21 min and imported to Compressor.
    Compressed as 19 MB/s MPEG-2 and Dolby 2.0 192 Kb/s.
    Created a new DVD SP HD project and brought the files into the timeline.
    Zoomed in at the end, and the error in sync was minimal, not perfect, but difficult to make out even at full zoom.
    Anyone have any suggestions to get things, at least Standard Definition, perfectly in sync?

  • How to synchronize both audio & video received through AVTransmit2.java ?

    hi,
    I will transmit an local video file using AVTransmit2.java, but the problem is i am not able to synchronize both
    audio & video streams transmitted. I have an applet which receives both the streams(audio & video) but it
    plays in different players. how to synchronize both the players ?
    thanks

    I know that In Midlet development using MMAPI there are APIs available to synronize the players like
    p1.setTimaBase(p2.getTimeBase())
    But I am not using Players. Through http connection I m getting the raw image data and displaying it through ImageItem i.e no players required.
    Therefore If i stream the audio like this How to synchronize that.
    I relly need ur Help
    Thanks

  • Treating with video file ,audio andpictures with java

    hi
    i want classes that treat with video ,audio and pictures
    second iformatted my pc and forgot what to download with the IDE ,do i download JVM only or what ?
    THX

    hi
    i want classes that treat with video ,audio and
    picturesGood luck. Pictures will be the easiest part (built-in functionality, e.g. through javax.swing.ImageIO). audio is a bit trickier (http://www.jsresources.org). Dunno about video. Probably the most difficult.
    www.google.com would be a good place to start.
    second iformatted my pc and forgot what to download
    with the IDE ,do i download JVM only or what ?[url http://java.sun.com/j2se/1.5.0/download.jsp]JSDK

  • Re: audio, video based chat in Java

    Hai,
    I am new to Java. I created text based chatting in Java using Socket. Now I need to add audio, video based chat in Java through Socket. Can you send sample coding for my project.
         Thanks in advance.
    reg
    vino

    Check out JMF

  • Audio Encoding & Ken Burns Problems Persist - More Help Please.

    My previous thread (10/27): Encoding Audio in iDVD for 41 hours. Is there any hope?
    --72min iMovie, many high res photos, iTunes music, voiceovers, sound effects (20.9G)
    Since then:
    I reimported Music Store songs from CD and tried iMovie to iDVD again , menu took 50min, video encoding took 4.5hrs, audio encoding went 12 hours till I force quit. (Should I have waited longer?)
    I then was able to create a Quicktime Movie (Full Quality) in 36hrs, but the Ken Burns photos were so horrific (shimmering) that I decided to try creating a Disk Image. Is there any chance the results will be better? (Burn w/Toast6)
    I also tried exporting iMovie to my JVC GR-DVP3 video camera. Only got colored checkerboard patterns.
    If the Disk Image approach doesn't work, I'll be back at square one. Anything else I might try?

    Wow, this sounds like a long time. Is this DV? Or
    H.264?
    The extension is .dv What is H.264
    Remember that iDVD will create standard resolution
    video, even if you are feeding it HD material. So
    use Export> Quicktime> Full Quality DV.
    I did.
    The shimmering might improve once it is burned to
    disk, but it might not. I also find it is different
    on different players. PhotoToMovie does a better job
    than iMovie/iPhoto of avoiding shimmers.
    I heard that, but it took me 2 weeks to make my movie and at present I can't bear the thought of redoing all my KB photos.
    I also tried exporting iMovie to my JVC GR-DVP3
    video camera. Only got colored checkerboard
    patterns
    Check the iMovie forum for this one, but it sure
    seems that something must not be hooked up right.
    Was it in VCR mode?
    I have a post on the iMovie forum, iMovie recognized the camera and it recorded, but all I got was sporadic patterns. The manual shows DV to DV operations but no computer to DV. Maybe my camera isn't compatable.

  • Video (or Video + Audio) Data Rate

    Wondered if anyone here might know of a software utility that has the ability to scan QuickTime compatible files and either display the video (or video + audio) data rate excursion or, as an alternative, graph the instantaneous variation in the data rate over time.

    Apple +I (show info) in QT player will show you the framerate and bitrate while playing.
    Thanks for your suggestion, Rick. However, I must point out that the data rate so displayed is simply the total average for the entire clip and not the instantaneous (i.e., constantly changing) variance with time. Preliminary observations tend to indicate the single pass H.264 algorithm begings roughly 10% under the requested data rate and quickly settles very near the target. The multipass algorithm, on the other hand, appears to begin in the vicinity of 300% above the targeed data rate and monotonically decreases throughout the remainder of the movie clip. So much for a quick qualitative analysis based on observations during the actualy encoding process.
    What I now wish to do is actually perform a bit of quantitative analysis and, based on those results, correlate actual data rates with the ability of a given H.264 multipass file to sync to an iPod. Basically, I am trying to determine whether or not a user data rate input is used as a comparator during the initial phase of multipass H.264 coding and, if so, how it is implemented. (I.e., how are the delta values handled -- linearly, exponentially, etc.) In addition, I wish to compare QT v7.0.3 with v7.0.4 clips to determine why the latter are less iPod compatible. Too, there remains a question as to whether or not any data rate information is now embedded in the clips themselves since various work arounds tried (i.e., clipping file lengths) have proven unsuccessful.

  • Video: Audio plays fine. No picture though.

    I am having trouble getting a video to play on team members ipads.
    It is encoded as an MP4 h.264 and I am streaming it from a common server. It plays fine on my ipad, but my two team members get only audio and no picture. Ideas?

    I think it had to do with the other two ipads being newer with retina displays. I re-encoded after reading another thread about retina displays, and now all is fine.
    Here the answer that was helpful to me in figuring out the problem:
    "The reason that the videos were playing on older iPads but not on the current iPad Air has to do with how the videos were encoded. The ones that didn't play on the air had been encoded with the Field Order set to Lower First. When that was changed to 'progressive', the videos played fine on all.
    All mobile devices have progressive scan screens, so progressive is usually the right choice to make. I don't know any specifics why earlier iPad models would play interlaced footage and the Air doesn't, but I can make a guess... Apple has been quietly deprecating a bunch of earlier codecs and QuickTime options. This is most noticeable in Mavericks on the desktop. Now, for example, QuickTime files using Apple Animation codec sit and convert to ProRes when opening, since the Animation codec isn't in QuickTime anymore." Adobe viewer, iPad retina, videos

  • Solution to audio encoding problem achieved

    I was using clips from my Sanyo Xacti Camcorder, imported into iMovie as mpeg 4 files and unable to finish the project in iDVD as the error would come in the audio encoding stage.A quick test is to export the iMovie files through Quicktime and it would stop cold, saying something is wrong with the file.
    Going through the forum here,many had posted reasons is because iDVD cannot handle audio files with deviations from sampling rate of 48k, and somehow the audio files may work if it is converted to aiff , with sampling rate of 48k.I found a way to do it last night.
    Export the imovie to GarageBand. When GarageBand finished the video track and sound track imports, adjust the volume of the sound track as desired.
    Make sure the GarageBand preference to set export movie in full quality, not ipod or email quality. Then export the movie to disk, and the resulting Quicktime movie must have the original audio tracked enabled before it is used in iDVD. Check the Quicktime movie by quicktime player, and under movie property, you can check that enable box.
    The finished product is a Quicktime movie that has both video and audio files that iDVD can handle and use.And it saves time in audio conversion by doing it in GarageBand first.

    I was unable to export the imovie to quicktime, as the error message came within seconds , saying about something wrong with the file. The only way I could export the file to quicktime format is through GarageBand.
    GarageBand is the application to add another sound track , and it preserves the whole imovie and could be exported directly to iDVD, instead of exporting to
    Quicktime format first. The only reason I did this "extra" step was because I already knew if the Quicktime movie would not fail in iDVD, and it is quicker to check it this way then to wait 10 hours for iDVD time.
    It was already recognized that iMovie does not do audio conversion, and when the audio files are not native to iDVD(i.e. 48 Hz sampling), the iDVD would crash.
    See
    http://discussions.apple.com/thread.jspa?threadID=800972&tstart=30

  • Batch merging of Video+Audio with QT Pro 7?

    Hello. Wondering if anyone could help me out on an issue i'm having please.
    I'm using Quicktime Pro 7, and want to combine 50+ audio tracks with corresponding video tracks.
    I know about how you can combine/merge video & audio in Quicktime. This feature is perfect for what I want to do (as i don't have to re-encode them), but as there's so many to do i'm wondering if it's possible to do exactly the same thing but in batch.
    Probably offtopic for this forum, but if it's not possible to do it batch does anyone know another program that will be able to do it? (just merging the two files, not re-encoding)
    I know there are multiple windows programs, but i'm looking for something that works on mac (don't have access to a windows)
    The video files are Quicktime PJPEG files. The Audio files are AAC.
    Many thanks to anyone who can help me out on this!
    Freddie

    The latter instance that you mention is the one i'm doing. I have 50 independent video files and 50 independent audio tracks (the video files don't contain any resourced audio).
    Why would you ever separate the audio and video into independent files? (I.e., the nearest thing I would do is demux MPEG2/AC3 content to paired elementary streams of M2V video which resourced a separate AIFF audio file and even then double-clicking the video file automatically opens/accesses the associated audio track. Unfortunately, the "Save As..." option applied to such files would produce an MPEG "muxed" M2V/PCM file. So I hope this is not what you are using here.
    I'm trying to see what is the fastest and easiest way to perform the second step in the process you mention, combining the two files.
    I think there was some confusion about what I was trying to do (sorry about that) but i hope it's all clear now.
    Is there still a way to do this in Mpeg Streamclip?
    Once I had used MPEG Streamclip to create separate merged audio and viceo files, I would revert to QT 7 Pro for step 2. Simply open both files in the QT 7 Player and add one file (track) to the other file so that it then contains both audio and video content in a single file.

  • No video/audio with .mpg setting

    My broadcast server (Leightronix Nexus) requires .mpg files. I exported a sequence from FCP using the settings below, and it worked. Now, I am attempting to export using the same settings, but the file does not display video or audio. The size of the non-working file is the same as the working file (about 835MB). Any ideas on why the setting would work for one project but not the other?
    Thanks.
    Settings used...
    Name: Nexus Compatible
    Description: .mpg file compatible with Nexus video server
    File Extension: mpg
    Estimated file size: 3.76 GB/hour of source
    Segmentation on cluster disabled
    Type: MPEG-2 program stream
    Video Encoder
    Format: M2V
    Width: 720
    Height: 480
    Pixel aspect ratio: NTSC CCIR 601/DV
    Crop: None
    Padding: None
    Frame rate: 29.97
    Frame Controls: Automatically selected: Off
    Start timecode from source
    Aspect ratio: 4:3
    Field dominance: Automatic
    Average data rate: 8.2 (Mbps)
    2 Pass VBR enabled
    Maximum data rate: 9.8 (Mbps)
    High quality
    Best motion estimation
    Closed GOP Size: 15, Structure: IBBP
    Audio Encoder
    Format: MPEG
    Sample Rate: 48.000kHz
    Channels: 2
    Bits Per Sample: 16

    b.rouse wrote:
    My broadcast server (Leightronix Nexus) requires .mpg files. I exported a sequence from FCP using the settings below, and it worked. Now, I am attempting to export using the same settings, but the file does not display video or audio. The size of the non-working file is the same as the working file (about 835MB). Any ideas on why the setting would work for one project but not the other?
    Would help to know how you're viewing this file that has you convinced no media is available. On your Mac (in what app?) or on your server?
    bogiesan

  • IDVD audio encoding error

    I currently have 10 different quicktime files that i've created by exporting 10 different iMovie projects.
    I've created an iDvd project and dragged all 10 .dv files in. Everything works well in the preview. the total project is 3.6 out of the 4GB available.
    the entire project is on an 250 GB external harddrive attached to a mac laptop (so having available space is not the problem, i have over 130 gigs free)
    i press burn, and the encoding begins. everything's running smoothly for two hours, all the videos are encoded. once it reaches "Audio encoding" i come across an error. it recommends me to "Delete Encoded Assets" and try again.
    Which i have, and it's still not working.
    Something about the Track.
    i've created dvd's before with this exact same hardware. I even just created one now, using just one of the quicktime files. For some reason, this big project just won't happen and i'm on the edge of reason here.
    I'd appreciate any help.
      Mac OS X (10.4.1)  

    Is there any audio associated with the video?
    iDVD 5: Audio encoding error when burning a DVD
    http://docs.info.apple.com/article.html?artnum=301876
    iDVD: Troubleshooting issues with burning discs
    http://docs.info.apple.com/article.html?artnum=302925
    Sue

  • Audio encoding troubles

    After some time off, I'm again burning old family vhs and Hi8 tapes to dvd but this time w/our new intel core duo. I've tried varying the themes in iDVD but with some of them I get the spinning beach ball after the video encoding--at the beginning of the audio encoding. It simpy hangs up after about 30 seconds and the dreaded beach ball appears. I've tried to re-burn after splitting the clips so that none are longer than 15 minutes--still no go. I never add music so the only audio is from the original tapes or the default music with associated with the theme. This was never a problem with the dvds I creaed on our G4 using some of the older iDVD themes. Any ideas? thanks

    This was never a problem with the dvds I creaed on
    our G4 using some of the older iDVD themes.
    This lack of positive feedback has been around since
    version 5 and has nothing to do with themes. Just
    "bad" feedback.
    http://docs.info.apple.com/article.html?artnum=302988
    My computer can take up to 30 minutes to get through
    this phase, depending on the iDVD project. Takes even
    longer for some people; like overnight...
    What I've done a few times is "force quit" and start over at the "share iMovie with iDVD" stage. Sometimes, after re-creating the iDVD project with the same Theme settings it whips right through the audio encoding (although it also has had to redo the video encoding first). I get frantic whenever I see the beachball on the screen and my impulse it to force quit whatever application I'm in.

Maybe you are looking for