Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Command Line Examples #
- # Listing of key attributes #
- mediainfo.exe "C:\movie.mkv"
- # Listing of all key attributes #
- mediainfo.exe -f "C:\movie.mkv"
- # Using the template option and pipe output to a file #
- mediainfo.exe --Inform=file://C:\template.txt "C:\movie.mkv" > "result.txt"
- # for single file create batch mediainfo.bat #
- ---------------------------------------------------------------------------------------------------------------------
- set template="file://C:\Apps\MediaInfo\CLI\template.txt"
- set MediaInfo="C:\Apps\MediaInfo\CLI\MediaInfo.exe"
- %MediaInfo% --Inform=%template% "%~nx1" > "%~n1.txt"
- exit
- ---------------------------------------------------------------------------------------------------------------------
- # for multiple files create batch mediainfo.bat #
- ---------------------------------------------------------------------------------------------------------------------
- set template="file://C:\Apps\MediaInfo\CLI\template.txt"
- set MediaInfo="C:\Apps\MediaInfo\CLI\MediaInfo.exe"
- for %%I in (*.mkv *.mp4 *.avi) do %MediaInfo% --Inform=%template% "%%I" > "%%~nI.txt"
- exit
- ---------------------------------------------------------------------------------------------------------------------
- # template.txt example #
- ---------------------------------------------------------------------------------------------------------------------
- General;File Name...........: %FileName%\nRuntime.............: %Duration/String%\nFile Size...........: %FileSize/String3%\nFormat..............: %Format%\n
- Video;Video Bitrate.......: %BitRate/String%\nVideo Codec.........: %Format% %Format_Profile%\nAspect Ratio........: %DisplayAspectRatio/String%\nResolution..........: %Width%x%Height%\nFrame Rate..........: %FrameRate/String%\n
- Audio;Audio Codec.........: %Codec/String%$if(%BitRate%, @ %BitRate/String%)\nChannels............: %Channel(s)% CH\n$if(%Language%,Language............: %Language/String%)\n
- Text;Subtitle : %Language/String%\n
- ---------------------------------------------------------------------------------------------------------------------
- # More info about %parameters% #
- mediainfo.exe --Info-Parameters > parameters.txt
- http://pastebin.com/5sqzHG2y
- http://crypt2.net/file/cngsyl
- # Tip: You can copy .bat to SendTo menu and run it from there #
- %USERPROFILE%\AppData\Roaming\Microsoft\Windows\SendTo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement