File I/O and encoding (J2SDK 1.4.2 on Windows)

I encountered a strange behavior using the FileReader / Writer classes for serializing the contents of a java string. What I did was basically this:
String string = "some text";
FileWriter out = new FileWriter(new File("C:/foo.txt"));
out.write(string);
out.flush();
out.close();In a different method, I read the contents of the file back:
FileReader in = new FileReader(new File("C:/foo.txt"));
StringWriter out = new StringWriter();
char[] buf = new char[128];
for (int len=in.read(buf); len>0; len=in.read(buf)) {
    out.write(buf, 0, buf.length);
out.flush(); out.close(); in.close();
return out.toString();Problems arise as soon as the string contains non ascii characters. After writing and reading, the value of the string differs from the original. It seems that different character encodings are used when reading and writing, although the doc states that, if no explicit encoding is specified, the platform's default encoding (in my case CP1252) will be used.
If I use streams directly instead of writers, it does not work, either, as long as I do not specify the encoding when converting bytes to strings and vice versa.
When I specify the encoding (no matter which one, as long as I specify the same for reading as for writing), the resulting string is equal to the original one.
If I replace the FileReader and Writer by StringReader and StringWriter (bypassing the serialization), it works, too (without specifying the encoding).
Is this a bug in the file i/o classes or did I miss something?
Thanks for your help
Ralph

first.... if you are writing String objects via serialization, encoding doesn't matter whatsoever. Not sure you were saying you tried that, but just for future reference.
For String.getBytes() and String(byte[]) or InputStreamReader and OutputStreamWriter: If you don't specify an encoding, the system default (or default specified on the command-line or set in some other way) will be used in all cases.
For byte streams: If you are reading/writing bytes thru streams, then the character conversion is up to you. You call getBytes on a string or create a string with the byte[] constructor.
For readers/writers: If you are reading/writing characters thru readers/writers, then the character conversion is done by that class.
However, StringReader and StringWriter are just writing to/from String objects and they are writing Unicode char's, so it's really a special case.
Okay...
So if you have a string which has characters outside the range of the encoding being used (default or explicitly specified), then when it's written to the file, those characters are messed up. So say you have a Chinese character which needs 2 bytes. Generally, the 2 bytes are written, but when read back, that one character shows as 2. Whether 2 bytes are written or 1, probably depends on the encoding. But the result is the same, you get a munged up string.
Generally speaking, you are going to get better storage on most text when using UTF-8 as your encoding. You need to specify it always for reads and writes, or set it as the default. The reason is that chars are written in as many bytes as needed. And it'll support anything Unicode supports, thus anything String supports.

Similar Messages

  • I need to install Firefox, but every time I try and download it, the downloaded file is corrupted and I cannot install Firefox on my Windows 7 Desktop PC

    I had Firefox installed as my standard webbrowser, but recently it started having problems in regards to websites, some websites wouldn't work as they should. For instance I couldn't open my hotmail email account, it was just a blank white page. Or I would get just code and text on a site that I would normally see images and a designed lay-out. The problems started after I used a demo PC-cleaning program, which removed unnecessary files from my computer. I figured it removed necessary files for firefox to work properly. So I uninstalled Firefox using the uninstaller (but keeping bookmark information etc.) and tried dowloading Firefox 5.0 but the download always crashes or gives me a corrupt file

    Do a clean (re)install:
    * Download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
    * Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    * Don't remove personal data when uninstalling.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    You can initially skip the step to create a new profile, that may not necessary for this issue.
    See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • I cannot drag file over Dock and place into one of more opened windows - i.e. Mail

    I cannot drag file over Dock, i.e. MAIL, wait a second, choose one of 2 windows - MAIL APP or NEW MAIL and place this file into opened New Mail. Normally I will wait until appear 2 windows with Mail app and New mail and choose NewMail and place the file into the new mail. This does not work for now and I have no idea why... Now it will Create only NewMail with this file attachment.
    I tried:
    1. Other Existing USER account
    2. Restart with SHIFT - SafeMode
    3. Reset PRAM
    4. Delete com.apple.dock.plist and restart with default dock.list
    5. It does not work on touchpad on my MacbookAir and with external mouse Logitech MX Revolution too
    6. I have no plugins in MAIL APP

    Create an album and drag them into the album. Then you can easily select all of them in the album and email.
    OT

  • [svn:fx-trunk] 7661: Change from charset=iso-8859-1" to charset=utf-8" and save file with utf-8 encoding.

    Revision: 7661
    Author:   [email protected]
    Date:     2009-06-08 17:50:12 -0700 (Mon, 08 Jun 2009)
    Log Message:
    Change from charset=iso-8859-1" to charset=utf-8" and save file with utf-8 encoding.
    QA Notes:
    Doc Notes:
    Bugs: SDK-21636
    Reviewers: Corey
    Ticket Links:
        http://bugs.adobe.com/jira/browse/iso-8859
        http://bugs.adobe.com/jira/browse/utf-8
        http://bugs.adobe.com/jira/browse/utf-8
        http://bugs.adobe.com/jira/browse/SDK-21636
    Modified Paths:
        flex/sdk/trunk/templates/swfobject/index.template.html

    same problem here with wl8.1
    have you sold it and if yes, how?
    thanks

  • Encore Project Settings and Encoded file is less in Encore than on my Drive.

    Hi,
    Before Encoding my Premiere Pro timeline in Media Encoder, I had set up my all my menus and all my assets in Encore CS 5.1. After I had done all that, I pressed the "Build button and it said I had around 23 GB left (I am making a Blu-Ray DVD)
    So I went back to Premiere Pro CS 5.5 and Encoded my Project through Media Encoder. I set it it H.264 Blu-Ray, PCM Audio, Target Bit Rate was 18.5 and Max Bit Rate was 20. The estimated file size said it was going to be around 23 GB. This was perfect.
    So I encoded it and when it was done, on the Hard Drive, it was 23 GB, just like to was supposed to be.
    I then imported it into my Encore project and put it on the timeline. I then looked at the Build tab to see how many GB I had left on the Disc. I wanted a little room.
    It said I am only using just over 20 GB and have a little over 4 GB left to use..
    Why would this happen? I now have more free space.
    In Encore, I wento to File ------ Project Settings ------ Default Transcode settings ---- and that was set at:
    Max Audio/Video
    Codec MPEG 2
    Bit Rate = 15 MBPS.
    The Audio was on Dolby.
    There was a drop down list, in the Bit Rate category, that I could have chosen to use 20 or 25. I left it at 15 for now.
    If I go back and choose 20 or 25 would that make the encoding of my whole project (Menus and h.264 Blu-Ray) a little better quality than it is now? Will it increase the size of Encoded project so when I hit the Build tab again it will show I have less space available to use? I want to make the project  as good as it can get without going over the 25 GB limit.
    One other thing.
    Wih my final project on the Encore Timeline, when I have the Sequence active, on the Project tab in Encore it reads: 19.1 GB Encoded (Audio and Video). the final encode is 23 GB. Why is it going down to 19?
    The video looks good and I could burn it to a Blu-Ray now and it would look great. I just want to know if there is some way to make it a little better inside Encore without having to Encode my whole project at a higher Bit Rate knowing that It will be a little less when I bring it into Encore.
    Thanks in advance
    Premiere Pro CS 5.5
    Media Encoder 5.5
    Encore 5.1

    Many issues in this; one problem is understanding file sizes and Encore's handling of project panel sizes and build panel sizes.
    See post 7 here:
    http://forums.adobe.com/message/4838089#4838089
    Regarding bitrate calculators and a shorthand method mentioned by Jeff Pulera, see his post 2 in that same thread. I see that it was regarding DVD; I wonder if someone has a shorthand like that for Bluray?

  • I'm running snow leopard. The try to open any .mov file in Quicktime, and I get an error message that says, "The document xyz.mov could not be opened. The movie is not in a format that Quicktime player understands. I'm a recent upgrade to Snow Leopard.

    I'm running snow leopard. The try to open any .mov file in Quicktime, and I get an error message that says, "The document xyz.mov could not be opened. The movie is not in a format that Quicktime player understands. I'm a recent upgrade to Snow Leopard.
    Help!
    Thanks, Mark

    Unfortunately, the error message gives no details about what codec might be missing or what it needs.
    If the file can't be opened in QT, it only means you cannot use the QT "Inspector" window to check what compression formats were used to create the file. It does not mean you can't use the Finder "Information" window to check on the compression formats or use a third party media information window (e.g., like VLC which will open many compression formats not supported natively by QT) to determine what kind of data is included in the MOV wrapper. If the file cannot be opened in any app, it is usually a good sign that the file itself is corrupted.
    It's a stupid error message. Apple should do better than that.
    Error trapping is quite extensive but there are still many areas which require human oversight. The message is telling you that either the container has a problem (e.g., not properly terminated, non-standard, or corrupted) or that one or more of the compression formats used is not supported by your current codec component configuration or that the data was encoded using non-standard settings or preferences not supported by QT or that the fourCC code does not match the data contained in the file or that there are timecode inconsistencies, etc., etc., etc. In short there are a near infinite number of possible problems for which it would be very difficult/nearly impossible to program error trapping depending on your sourcing of content and how you process it before it reaches the player app. Think of it like trying to play a BD disc in an DVD player.
    I'll call Apple support when I get a chance.
    Chances are good that they will end up sending you back here. In any case, it is often a good idea to post a sample file for examination by other QT users. At the very least, they should be able to tell you if the sample file will play on other systems which would indicate whether or not the file itself is bad and under the best of circumstances whould allow them to examing the file in detail for various common problems.

  • How to decoding and encoding PNG and GIF images?

    I could decode and encode JPEG images using following create functions which are in com.sun.image.codec.jpeg package.
    JPEGImageDecoder decoder = JPEGCodec          .createJPEGDecoder(inputStream);
    JPEGImageEncoder encoder = JPEGCodec                    .createJPEGEncoder(outputStream);
    But I dont know required package and functions to decode and encode PNG and GIF images. Please help me.

    Is the API that hard to follow?
    ImageIO.read( file/stream/url)
    ImageIO.write( image, format (e.g. PNG, GIF(1), JPEG), file/stream what have you)
    1) Not sure if Java supports GIF saving, it might if you install JAI, or Java 6.

  • Cannot open PDF - "file is damaged and could not be repaired"

    We created a signable, saveable, Reader Extended PDF in Acrobat X 10.1.4, with a Submit button that exports it using the "PDF The complete document" format to a .php page on our website using the url: http://www.todayscihld.us/pdfscript/fdf.php?form_name=WebForm 
    This is the .php page that's supposed to receive the export via the submit button and email it as an attachment:
    <?php
    // $form_name is provided in the url that calls this page, allowing this page
    // to be called from different PDF's, yet customized for each one
    $date = (date ("m/d/y"));
    $time = (date ("H:i:s T"));
    $tmpname = (date ("mdy-His"));
    $message = '
    This is a multi-part message in MIME format.
    ------=_NextPart_000_0007_01C37EC6.3F062EA0
    Content-Type: text/plain;
        charset="iso-8859-1"
    Content-Transfer-Encoding: 7bit
    A '.$form_name.' was submitted from the Website at '.$time.' on '.$date.'.
    (attachment: '.$form_name.')
    ------=_NextPart_000_0007_01C37EC6.3F062EA0
    Content-Type: application/vnd.fdf;
        name="PDF-'.$tmpname.'.pdf"
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment;
        filename="PDF-'.$tmpname.'.pdf"
    '.base64_encode(file_get_contents('php://input')).'
    ------=_NextPart_000_0007_01C37EC6.3F062EA0--
    $recip = "[email protected]";
    $subject = $form_name;
    $headers = "From: Website <[email protected]>\n";
    $headers .= "Return-Path: <[email protected]>\n";
    //use the following line for bcc:
    //$headers .= "bcc: [email][email protected][/email]\n";
    $headers .= "Content-Type: multipart/mixed; boundary=\"----=_NextPart_000_0007_01C37EC6.3F062EA0\"\n";
    $status = mail($recip, $subject, $message, $headers);
    Header("Location: http://www.todayschild.us/page.php?3");
    ?>
    Most of the time this works, however some of the time we get blank PDF files (<10KB), and sometimes we get filled PDF files that we cannot open in Adobe Reader X 10.1.4 - we get the "file is damaged and could not be repaired" error.  However, I can view this "damaged" pdf just fine in the Chrome built-in PDF viewer, and I can open it using Foxit Reader and Nitro Reader.  And if I open it in one of those programs and then save it under a new name, I can open the newly saved file in Adobe Reader.  So why is it that everything except Adobe Reader can open this file?
    Here's one of these problem PDF files: https://dl.dropbox.com/u/65535781/PDF-112612-162749.pdf
    Can anyone help me figure out what's going wrong, and what we can do to fix it? 

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • File is damaged and could not be repaired, when emailed the PDF Document

    Hi i have the same problem , that what you have resolved, but it doesn't work for me...
    i.e, when i sent a mail from the below code , mail sent but when open it shows "**There was an error in opening this document. the file is damaged and could not be repaired."**
    can u please suggest to over come this problem.. and i m using IBM Websphere 8.
    please advice ....
    thanks alot in advance...
    here is the code :
    AstLogger logger = AstLogger.getInstance();
    logger.info(this.getClass(),"ReportBuilderUtils.sendMail Start....");
    boolean flag = false;
    try {
    javax.naming.InitialContext ctx = new javax.naming.InitialContext();
    javax.mail.Session session = (javax.mail.Session) ctx.lookup(AstProps.getInstance().getWebCollectLoginMailSession());
    Message msg = new MimeMessage(session);
    InternetAddress addressFrom = new InternetAddress(from);
    logger.info(this.getClass(), "Report Builder Utils - Email From :" + from);
    msg.setFrom(addressFrom);
    String log = "";
    double tempFilesize=0;
    for(String emailId : recipients) {
    InternetAddress addressTo = new InternetAddress(emailId);
    msg.addRecipient(Message.RecipientType.TO, addressTo);
    log += emailId + ",";
    logger.info(this.getClass(), "Report Builder Utils - Email Recipients :" + log);
    // Setting the Subject and Content Type
    msg.setSubject(subject);
    logger.info(this.getClass(), "Report Builder Utils - Email Subject :" + subject);
    msg.setContent(message, "text/plain");
    msg.setHeader("Content-Type", "multipart/mixed");
    MimeBodyPart mbp1 = new MimeBodyPart();
    mbp1.setText(message);
    logger.info(this.getClass(), "Report Builder Utils - Email Message :" + message);
    mbp1.setDataHandler(new DataHandler(new HTMLDataSource(message)));
    Multipart mp = new MimeMultipart();
    mp.addBodyPart(mbp1);
    // constants to handle the large files
    if(tempFile.exists()){
    tempFilesize = tempFile.length();
    logger.info(this.getClass(), "Report Builder Utils - File Size :" +((tempFilesize/(1024*1024))) +"MB.");
    System.out.println("ATTACHMENT_SIZE ==>" +ATTACHMENT_SIZE);
    if(tempFilesize > ATTACHMENT_SIZE){
    flag = false;
    return flag;
    MimeBodyPart mbp_file = new MimeBodyPart();
    mbp_file.setHeader("Content-Type", "application/pdf");
    mbp_file.setHeader("Content-Transfer-Encoding", "Base64");
    mbp_file.setFileName(fileName);
    mbp_file.setDisposition(Part.ATTACHMENT);
    mbp_file.setDataHandler(new DataHandler(new FileDataSource(tempFile)));
    mp.addBodyPart(mbp_file);
    System.out.println("Mail Successfully sent to :"+recipients);
    msg.saveChanges();
    msg.setContent(mp);
    // even tried by placing here
    // mbp_file.setHeader("Content-Transfer-Encoding", "base64"); base64 is not case-sensitive i hope , i read out on some books
    Transport.send(msg);
    logger.info(this.getClass(), "Report Builder Utils - Email Send successfully...");
    flag = true;
    }catch (Exception e) {
    StringWriter sw = new StringWriter();
    PrintWriter pw = new PrintWriter(sw);
    e.printStackTrace(pw);
    logger.error(this.getClass(), sw.toString());
    AstLogger.getInstance().info(this.getClass(),"ReportBuilderUtils.sendMailAsAttachment End.");
    return flag;
    Edited by: 992445 on Mar 7, 2013 4:05 AM

    You need to get a new copy of the PDF.

  • There was an error opening this document. The file is damaged and could not be repaired. Error mess

    Hello, I am hoping someone can help me. I have an invoicing program that allows me to send an invoice as a PDF to a customer in an email. It always worked fine but for some reason anyone that gets the PDF email attachment gets the message " There was an error opening this document. The file is damaged and could not be repaired". I don't know why this is suddenly happening. I downloaded the latest Adobe Reader 10.1 and that didn't help. I also downloaded the trial version of Adobe Acrobat X and that doesn't help either. I can open all PDFs on my drive but for some reason my program seems to have a problem converting or writing the invoice file to a PDF. Anybody able to help? Thank you very much!

    Hi Bill,
    Thanks for your response, I'll try and answer your questions as best a possible. I am not printing to anything, just emailing and I'm not sure what you mean by "the adobe PDF printer". I originally could not find for sure what acrobat I was using although there is a file in my C drive with acrobat 5.0. When I tried downloading an update I found for that version, it told me it couldnt download the update because the original is not there. I then downloaded the new trial version of acrobat X in the hopes that may work, but it did not change the issue. I believe my invoicing program uses some internal PDF program inbeded in the invoicing program for the emailing option it provides. I did send the email to myself and it is the same as I send to anyone else, it has that error message. The others in my office can open the invoicing program and email the PDF perfectly fine to themselves and to me, it's only when my computer tries to send the invoice through email that we have the problem. I can view the file (invoice) perfectly fine. I do not not how to check this encoding you are referring to. Do these details help you, to help me?? Thank you again for your help.

  • Can't save file in UTF-8 encoding

    Hi,
    I've read everything I can find on this subject, from these forums to Google to newsgroups. Still no success.
    I am simply trying to save a file in UTF-8 format.
    This code depicts the methods I'm using:
    File file = new File("myFile");
    FileOutputStream fos = new FileOutputStream(file);
    OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8");
    System.out.println("Encoding is " + osw.getEncoding());
    osw.write(myStringBuffer.toString());
    When this code is run, this is printed:
    Encoding is UTF8
    However, when I check the output file itself, it is ANSI 1252. I've tried compiling and running in both 1.4.2 and 1.5.0. Same results.
    Thanks for your help...

    I have checked it with two separate tools.
    1. I have opened up the file in TextPad and viewed the file properties. TextPad reports this: "code set: ANSI"
    2. I have a command-line utility that is bundled with a 3rd party application (commercial search engine). The command-line utility reports the character set and the language of a text file. The command-line utility reports this: "CHARSET: 1252"
    Is there something else to try?

  • Read a text file before knowing the encoding

    Hi,
    I've wrote a AppleScript to adjust time delay of *.lrc file(txt file but different extension).I only got a messed up text, in other aspect, it works well. I understand applescript read the text file using the wrong encoding, but I can't just set the encoding to UTF-8, for it can be UTF-8 and it can be Shift-JIS, Big5 andGB18030 as well. I don't know how to open text without getting messed up and write the result to a new text file on desktop using UTF-8 encoding. Can anyone help me with this? Thanks in advance.
    Code:
    on run
      set _lrcFile to (choose file)'s POSIX path
      display dialog "Time to delay (sec):" with title "Adjust LRC Delay" default answer "-0.5"
      set _timeDelay to text returned of result
      try
      set _timeDelay to _timeDelay as real
      on error
      display dialog "Input must be a real" with title "Error" buttons {"Stop"} default button "Stop"
      error number -128
      end try
      set _paraList to paragraphs of (read POSIX file _lrcFile)-->I don't know how to read text file properly here.
      set _newLrc to ""
      repeat with _para in _paraList
      set _timecode to do shell script "sed 's/\\[\\([0-9]\\{2\\}\\):\\([0-9]\\{2\\}.[0-9]\\{2\\}\\)\\]\\(.*\\)/\\1 \\2/'<<<" & quoted form of _para
      if _timecode as string is not (contents of _para) then
      set _timecode to words of _timecode
      set _min to (item 1 of _timecode) as integer
      set _sec to (item 2 of _timecode) as real
      set _sec to _sec + _timeDelay
      set _min to _min + _sec div 60
      set _sec to _sec mod 60
      set _sec to (round (_sec * 100)) / 100
      if _min < 10 then
      set _min to "0" & _min as string
      else
      set _min to _min as string
      end if
      if _sec < 0 then
      set _sec to "00.00"
      else if _sec < 10 then
      set _sec to "0" & _sec as string
      else
      set _sec to _sec as string
      end if
      if (count of _sec) < 5 then
      set _sec to _sec & "0"
      end if
      set _lyrics to do shell script "sed 's/\\[\\([0-9]\\{2\\}\\):\\([0-9]\\{2\\}.[0-9]\\{2\\}\\)\\]\\(.*\\)/\\3/'<<<" & quoted form of _para
      set _newLrc to _newLrc & "[" & _min & ":" & _sec & "]" & _lyrics & return
      else
      set _newLrc to _newLrc & contents of _para & return
      end if
      end repeat
      -->write _newLrc to destop here (using UTF-8 encoding)
    end run
    Sample of *.lrc and the result after delaying 0.5s.

    Hope this post will help people doing their homeworks...
              StringBuffer tmpBuffer = new StringBuffer();
              try {
                   URL url = new URL("http://.../test.txt");
                   URLConnection urlconnection = url.openConnection();
                   long l = urlconnection.getContentLength();
                   tmpBuffer.append("Content Length = " + l);
                   BufferedReader in =
                        new BufferedReader(new InputStreamReader(url.openStream()));
                   String line;
                   while ((line = in.readLine()) != null) {
                        tmpBuffer.append("\n" + line);
                   in.close();
              } catch (Exception e) {
                   //System.out.println(e.toString());
              if (tmpBuffer != null) {
                   wdContext.currentContextElement().setZoneMessage(
                        tmpBuffer.toString());

  • Using Max to rip and encode  cds but encountering problems

    I thought I'd use this software for a change something isnt quite right,On some cds the title artist and list of tracks appears as it should on Max window then the ripping and encoding commences.Only problem here is that i keep getting an ITunes file permission error which i have to delete each time .On other cds The Max window appears with nothing showing, the ripping and encoding starts but then seems to stop only to start importing in iTunes,I then stop this process to allow Max to continue but the end result is a iget a long list of unnamed tracks at the bottom of my itunes Music library.It seems like i havent got my settings quite right?? Could someone please advise me what the problem could be? thanks
    Message was edited by: angloargie

    You're problem is entirely different from the original poster's. You're more likely to get help if you start your own thread with a descriptive subject line. Include any error messages you're getting and any steps you've taken already to solve the problem.
    Best of luck.

  • How to retrieve version and encoding info from SAX parser

    I want to have access to the version and encoding info in a parsed XML document (when using SAX2). Who knows how this works?
    If not possible with SAX2, what other solutions are there?
    Second question: how to retrieve comments in XML files?
    Thanks in advance!

    thanks for answering, but ...
    LexicalHandler is fine for retrieving the comments,
    but does not give me the encoding (specified by
    encoding="UTF-8") and version (specified by
    version="1.0").
    I am feeding my parser with a byte stream, the parser
    resolves the correct encoding and i want to have
    access to this value!!hi , It is unlikely that you will get the encoding and version . This is being addressed by the DOM level3
    , see
    http://www-106.ibm.com/developerworks/xml/library/x-dom3.html?dwzone=xml .

  • QT Files: bad quality and not compatible - ???

    Hello!
    QT is driving me crazy!
    1. If I use it to import video from my DV cam, it always starts with a very small video size instead of the nativ video resolution (DV Pal) and always with quality set to low.
    2. If I capture interlaced material from my DV camera or my TV card and export it, the new video is the same size as the original one (Pal), but every 3rd or 4th line is replaced by the previous one and the interlacing is distroyed (the video looks just horrible).
    3. If I export an avi file from QT, the file is useless (with QT or any other app) untill I doctor it with ffmpegX or D-Vision.
    4. If I encode a video with the H264 codec no other app than QT (e.g. VLC) can playback the file. (If I use ffmpegX and encode a video with H264 I can playback it with all apps).
    WHY??? QT should be the link between all video processing programs - but it's completely useless because it's so buggy!
    Or is that Apples way to force all users to use there programs only!?! Any comments?
    What about:
    1. Is there another app to capture/import video data from DV cams or TV cards than QT. What about myVCR (does it reencode the video or simply copy it to HD?)
    2. Does QT only work with NTSC resolutions when dealing with interlaced video? Or is there an option somewhere to force it to keep the material interlaced?
    3./4. Is that improved by the latest update?
    Cheers
    Balrock
    PS: Pal is the european TV video standart 720x576 lines, NTSC is the US standart with 720x480 lines.

    1. If I use it to import video from my DV cam, it always starts with a very small video size instead of the nativ video resolution (DV Pal) and always with quality set to low.
    Do you check/set the "Native Device" Preference BEFORE attempting the capture. Also, since QT capture is dependent on CPU power, would not normally recommend it as your primary means of video capture.
    3. If I export an avi file from QT, the file is useless (with QT or any other app) untill I doctor it with ffmpegX or D-Vision.
    AVI files may contain any number of audio/video compression formats including muxed and MP3/MPEG layer-3 not supported in QT without installation of the appropriate third party proprietary codecs.
    4. If I encode a video with the H264 codec no other app than QT (e.g. VLC) can playback the file. (If I use ffmpegX and encode a video with H264 I can playback it with all apps).
    There are three distinct work flows which will create H.264 (MPEG-4 AVC) files. Which one are you using and for what are you targeting the output?
    WHY??? QT should be the link between all video processing programs - but it's completely useless because it's so buggy!
    QT is a simple control head utility for playback which, when properly registered, allows elementary editing of compatible frame-to-frame synchronized files by direct access/manipulation of the system's QT Tools package.
    1. Is there another app to capture/import video data from DV cams
    Check out the free "Vidi" utility at http://mitzpettel.com/software/vidi.php to see if it might meet your needs.
    2. Does QT only work with NTSC resolutions when dealing with interlaced video? Or is there an option somewhere to force it to keep the material interlaced?
    May be "Video Source" preference dependent. Don't have a PAL camera, so the question never came up in my testing.

Maybe you are looking for

  • Recovery From A Dead Drive!

    Hi. My Pavilion dv7-6b51ea (QG732EA), Windows 7 Home Premium (64-bit), BIOS F.1C started giving me a SMART disk warning this was followed shortly after by a decrease in performance (20-30 min to boot to desktop) and this was shortly followed by a blu

  • Transfering items from one customer to another customer

    Hi Gurus, I have a requirement where we have to transfer the items from one customer to another customer in the same company code. We should also be clearing the items from the old customer as part of the transfer. Is there a way/transaction in ECC 6

  • Mail suddenly doesn't work

    I have a hotmail.com email adress. It always worked great with Mail. But suddenly I can't receive any mail. I've already deleted my account and made a new one. Also I've made a gmail account. But it still doesn't work. With gmail I've got one mail se

  • Invoiceing party at header level in MIRO

    Hi, We have different invoicing parties defined for the same vendor at the plant level in Alternative Data. But, the invoicing party in MIRO is at the header level. When we do MIRO by vendor, it does pull in all the POs but those POs have different I

  • Arg - .txt from Mac please!

    Hi All. I need to be able to edit AND SAVE txt files for some 3d modeling software that I am using. I have tried Pages, TextWrangler and TextEdit and none seem to save out as txt. Is there something which will allow me to open and save txt files? Als