Académique Documents
Professionnel Documents
Culture Documents
!:*pro&rams*mediainfo,cli*mediainfo.e(e ..Info.Parameters ../ for a listin& of the attributes available as parameters with the ..Inform3 option. An abbreviated list of 1ey attributes is provided in Appendi( A !:*pro&rams*mediainfo,cli*mediainfo.e(e ..Inform3section4template avfile ../ to output the specified section and template values of attributes of avifile !:*pro&rams*mediainfo,cli*mediainfo.e(e ..Inform35section46file: templatefile avfile ../ to output the values of avifile attributes specified in the section and templatefile. If section is not specified in the command line it must be specified in the templatefile. )ections may be: General% 0ideo% Audio% -e(t% !hapter% Ima&e% Menu
-emplates are of the form: 5te(t67parameter75te(t657parameter765te(t6... -emplatefiles contain: 5section465te(t67parameter75te(t657parameter765te(t6... -e(t may include: *r*n to be&in a newline. "carria&e return 89 and linefeed 8A#
Additionally the options ..:utput3;-ML and or ..Lan&ua&e3raw may be added to the command to force output in ;-ML ta& format or internal te(t% however they do not wor1 with the ..Inform options% and the ;-ML option does not seem to wor1 with the other options.
Important Notes
Note that: if the options or filenames in the command contain blan1s they must be enclosed in $uotes <. each 7parameter7 must match the spellin& and capitali+ation shown in the ..Info.Parameters listin&. parameters followed by )trin& will convert numeric values to fractional form e&: D.CCC will be A C the template option may only be used for the output of one section the templatefile option must be used for output from multiple sections a section may only be specified once in a templatefile. e&: if a second 0ideo4 line is used it will be i&nored. multiple parameters may be specified for a section e&: 5te(t67parmD75te(t6 7parm@75te(t6...
the blan1 spaces followin& parameters in a templatefile are si&nificant on output. 'or e(ample the blan1 space between ;oliday and =esolution in the e(ample was due to a space followin& 7'ileName7 in the template.t(t file. / outputfilename at the end of the command line will pipe output to a file. if the commands are used within a .bat file% the parameters must be enclosed in double 7 si&ns ie: 77parameter77
Appendix A
-he followin& pa&es contain an abbreviated set of parameter names and e(amples of possible tar&et values &enerated by MediaInfo,!LI from actual av files. 'or use with the 2Inform3 option in .bat files.
PossIble
Values
ts !"E#$'&
avi ()* ( dio )ideo *nterleave 426/6/1660 4 2%4 !i7 4 2%4 !i7 4 2%4 !i7 4 2%4 !i7 4 2%4.2 !i7 4503240 /1mn %%s /1mn %%s %6ms /1mn %%s /1:%%.2 mp4 only !"E#$4 )is al
mp4 !"E#$4
mkv !atroska
Video;
Format Format-*nfo Format<)ersion Format<"rofile Format sed *nfo abo t Format )ersion of t,is format "rofile of t,e Format
mp4 or mkv wmv only ()C +)"% (dvan;ed )ideo Code; !ain=>4.n :ig,=>/.4 )<!"E#4-*&@()C
&imple=>n
!"=!>
Code; *9 (fo nd in some ;ontainers) ( ,int for t,is ;ode; *9 "lay time of t,e stream "lay time (formated) "lay time in : ::, !!mn &&s !!!ms "lay time in format : ::, !!mn &&s "lay time in format : :::!!:&&.!!!
!"4)
+)"%
+!)/ +!)/
Video;
7itAate<!ode 7itAate<!ode-&tring 7itAate 7itAate-&tring 7itAate<!inim m 7itAate<!inim m-&tring 7itAate<Nominal 7itAate<Nominal-&tring 7itAate<!axim m 7itAate<!axim m-&tring +idt, +idt,-&tring :eig,t :eig,t-&tring "ixel(spe;tAatio "ixel(spe;tAatio-&tring 9isplay(spe;tAatio 9isplay(spe;tAatio-&tring FrameAate<!ode FrameAate<!ode-&tring FrameAate FrameAate-&tring FrameCo nt &tandard Colorimetry &;an'ype &;an'ype-&tring &tream&i.e &tream&i.e-&tring &tream&i.e-&tring4 &tream&i.e-&tring% &tream&i.e-&tring/ &tream&i.e-&tring4 >ang age-&tring 7it rate mode ()7A8 C7A) 7it rate mode ()7A8 C7A) 7it rate in bps 7it rate (wit, meas rement) !inim m 7it rate in bps !inim m 7it rate (wit, meas rement) Nominal 7it rate in bps Nominal 7it rate (wit, meas rement) !axim m 7it rate in bps !axim m 7it rate (wit, meas rement) +idt, :eig,t "ixel (spe;t ratio "ixel (spe;t ratio 9isplay (spe;t ratio 9isplay (spe;t ratio Frame rate mode (CFA8 )FA) Frame rate mode (CFA8 )FA) Frame rate Frame rate Frame ;o nt N'&C or "(> C7A Constant /243344 / 241 Bbps )7A )ariable 45.1 !bps
4.%5 5-4 CFA Constant 45.224 45.224 fps 500/3 N'&C 4:2%:22 "rogressive "rogressive //43111 /.46 !i7 (60C) / !i7 /.% !i7 /.46 !i7 /.405 !i7 Englis,
4./// 4-/
%/.160 %/.160 fps Component *nterla;ed *nterla;ed /5/03/02 //.6 !i7 (65C) /4 !i7 /4 !i7 //.6 !i7 //.6/ !i7 en$ s
/2 /2.222 fps
1//%2423% 312 !i7 (31C) 312 !i7 312 !i7 312 !i7 312.2 !i7
Audio;
Format Format-*nfo Format<)ersion Format<"rofile Code;*9 Code;*9-:int 9 ration 9 ration-&tring 9 ration-&tring4 9 ration-&tring% 9 ration-&tring/ 7itAate<!ode 7itAate<!ode-&tring 7itAate 7itAate-&tring C,annel(s) C,annel(s)-&tring C,annel"ositions &lingAate &lingAate-&tring &tream&i.e &tream&i.e-&tring &tream&i.e-&tring4 &tream&i.e-&tring% &tream&i.e-&tring/ &tream&i.e-&tring4 Format sed *nfo abo t Format )ersion of t,is format "rofile of t,e Format Code; *9 (fo nd in some ;ontainers) ( ,int for t,is ;ode; *9 "lay time of t,e stream "lay time (formated) "lay time in : ::, !!mn &&s !!!ms "lay time in format : ::, !!mn &&s "lay time in format : :::!!:&&.!!! 7it rate mode ()7A8 C7A) 7it rate mode ()7A8 C7A) 7it rate in bps 7it rate (wit, meas rement) N mber of ;,annels N mber of ;,annels "osition of ;,annels &ling rate in B:. &tream si.e in bytes !"E# ( dio !"E# ( dio (C$/ ( dio Coding / 9'& 9igital ',eater &ystems ((C (dvan;ed ( dio Code; )ersion % or 4 >C )orbis +!(%
)ersion 4 >ayer %
)ersion 4 or % >ayer / !"/ 4/205// %4mn 40s %4mn 40s 5//ms %4mn 40s %4:46.2 )7A )ariable 444524 44% Bbps % % ;,annels
(<)@A7*&
/2333 /2s 333ms /2s 333ms /2s 333ms 22:/4.2 C7A Constant 0/116 04.2 Bbps % % ;,annels
%%252 %%.25 B:. 104435 1/1 Bi7 (%%C) 1/1 Bi7 1/1 Bi7 1/1 Bi7 1/1.2 Bi7
44422 44.4 B:. 44%5%64% 42.6 !i7 (%4C) 44 !i7 44 !i7 42.6 !i7 42.6/ !i7
/34222 /34 Bbps 0 0 ;,annels Front: > C A8 Aear: > A8 >FE 43222 43.2 B:.
Menu;
Format Format sed eg: 9)9$)ideo 9)9$)ideo