Menu

#433 Linux carriage return in Inform files not handled

Usability
open-accepted
5
2009-11-24
2009-11-24
Michel
No

Hi!! I'm trying to use this switch from cli
mediainfo --Inform=Video;%Encoded_Library% filename

and getting this result

Usage: "MediaInfo [-Options...] FileName1 [Filename2...]"
"MediaInfo --Help" for displaying more information
bash: fg: %Encoded_Library%: no such job

I have also tried using a text file as a template but getting same result.Here is the command I'm using

/usr/bin/mediainfo --Inform=file:///var/www/html/media_general.txt /var/www/html/media/190854f3ef.mpg

Here is my text file for the template

General;General_FileExtension=%FileExtension%\nGeneral_Duration=%Duration%\nGeneral_Format=%Format%\nGeneral_Format_Profile=%Format_Profile%\nGeneral_CodecID=%CodecID%

I'm using centos5.4 32bit version and using mediainfo-0.7.25 with libmediainfo & libzen 0.4.9

Discussion

  • Jerome Martinez

    Jerome Martinez - 2009-11-24
    • summary: --Inform switch doesn't work on centos --> Linux carriage return in Inform files not handled
    • status: open --> open-accepted
     
  • Jerome Martinez

    Jerome Martinez - 2009-11-24

    For the --Inform in the command line, this is specific to your command line manager (all in Linux!).
    ";" is a special character, and the command line is not provided to the software as is. You must escape the sequence.
    mediainfo "--Inform=Video;%Encoded_Library%" filename

    About the file.
    There is an issue in the Linux version, the file is accepted only if there are Windows carriage returns (\r\n'.
    You must currently transform your file in "DOS mode" (\r\n instead of the \n of linux)

    I let this bug report open for the carriage return issue.

     
  • Michel

    Michel - 2009-11-24

    Thanks for the reply.Actually I got it working after submitting the bug report.
    My request is to add those information into knowledge base on mediinfo site so that
    user can find it easily.
    I appreciate your time & effort on this project.
    Michel

     

Log in to post a comment.