title
Products            Buy            Support Forum            Professional            About            Codec Central
 
Page 1 of 2 12 LastLast
Results 1 to 15 of 16

Thread: Is an error supposed to leave no output file?

  1. #1
    dBpoweramp Enthusiast
    Join Date
    Nov 2008
    Posts
    296

    Is an error supposed to leave no output file?

    I would have though so, but e.g.

    Error converting to Windows Media Audio 10, 'xxx.flac' to 'xxx.wma'
    md5 did not match decoded data, file is corrupt.

    leaves an output file, condition unknown.

  2. #2
    Administrator
    Join Date
    Apr 2002
    Posts
    43,855

    Re: Is an error supposed to leave no output file?

    There is no file? if not overwriting then even the corrupt file should be left after conversion.

  3. #3
    dBpoweramp Enthusiast
    Join Date
    Nov 2008
    Posts
    296

    Re: Is an error supposed to leave no output file?

    Quote Originally Posted by Spoon View Post
    There is no file?
    As I said: it "leaves an output file"

    Quote Originally Posted by Spoon View Post
    if not overwriting then even the corrupt file should be left after conversion.
    Are you saying a corrupt OUTPUT file should be left after failed conversion?

  4. #4
    dBpoweramp Guru
    Join Date
    Jan 2011
    Posts
    937

    Re: Is an error supposed to leave no output file?

    Yes

  5. #5
    dBpoweramp Enthusiast
    Join Date
    Nov 2008
    Posts
    296

    Re: Is an error supposed to leave no output file?

    Quote Originally Posted by ********* View Post
    Yes
    Thanks. Do you have a workaround? I cannot afford there to be corrupt files.

  6. #6
    Administrator
    Join Date
    Apr 2002
    Posts
    43,855

    Re: Is an error supposed to leave no output file?


  7. #7
    dBpoweramp Enthusiast
    Join Date
    Nov 2008
    Posts
    296

    Re: Is an error supposed to leave no output file?

    Quote Originally Posted by Spoon View Post
    Thanks, but no workaround seen there.

    Corrupt output files are a nightmare in well-managed projects. They wreck build management systems like MAKE and pollute data sets. Compliant command-line tools e.g. compilers leave either good output files or none.

    Please do consider remedying this. I suggest CoreConverter.exe simply ensures that in event of error, no output file is left. Even if there was one present previously. Also, from Microsoft Command Line Standard http://technet.microsoft.com/en-us/l.../ee156811.aspx

    Required:

    * Error messages (as well as VERBOSE and DEBUG messages) must be written to STDERR.

    * Commands must terminate with an exit code indicating success (0) or failure (non-zero).
    This would be a big improvement and make the program much more attractive to developers of production-grade integrations.

    Thanks.
    Last edited by chrisjj; 06-25-2011 at 06:37 PM.

  8. #8
    dBpoweramp Enthusiast
    Join Date
    Nov 2008
    Posts
    296

    Re: Is an error supposed to leave no output file?

    Quote Originally Posted by chrisjj View Post
    * Error messages (as well as VERBOSE and DEBUG messages) must be written to STDERR.
    Please ignore that - I see http://www.dbpoweramp.com/developer-cli-encoder.htm says error messaes already optionally go to STDERR.

  9. #9
    dBpoweramp Guru
    Join Date
    Jan 2011
    Posts
    937

    Re: Is an error supposed to leave no output file?

    The do, normally nothing would go to stderr

  10. #10
    dBpoweramp Enthusiast
    Join Date
    Nov 2008
    Posts
    296

    Re: Is an error supposed to leave no output file?

    Quote Originally Posted by ********* View Post
    The do, normally nothing would go to stderr
    Could you clarify that?

  11. #11
    Administrator
    Join Date
    Apr 2002
    Posts
    43,855

    Re: Is an error supposed to leave no output file?

    STDERR if supplied is the process of getting error messages out of the converter.

  12. #12
    dBpoweramp Enthusiast
    Join Date
    Nov 2008
    Posts
    296

    Re: Is an error supposed to leave no output file?

    Quote Originally Posted by Spoon View Post
    STDERR if supplied is the process of getting error messages out of the converter.
    What do you mean by "if"? STDERR is always supplied - by the OS, when the process is created.

  13. #13
    Administrator
    Join Date
    Apr 2002
    Posts
    43,855

    Re: Is an error supposed to leave no output file?

    It is not always, a calling program can pass NULL handles.

  14. #14
    dBpoweramp Enthusiast
    Join Date
    Nov 2008
    Posts
    296

    Re: Is an error supposed to leave no output file?

    Quote Originally Posted by Spoon View Post
    It is not always, a calling program can pass NULL handles.
    Ah, I see. Thanks.

    Please do have the return code indicate error! Until then, there is no way one can properly use the converter ins standard tools like MAKE. Thanks.

  15. #15
    Administrator
    Join Date
    Apr 2002
    Posts
    43,855

    Re: Is an error supposed to leave no output file?

    Perhaps for the next version.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •