Questions tagged [mediainfo]

MediaInfo is a convenient unified display of the most relevant technical and tag data for video and audio files.

The MediaInfo data display includes

  • Container: format, profile, commercial name of the format, duration, overall bit rate, writing application and library, title, author, director, album, track number, date, duration.
  • Video: format, codec id, aspect, frame rate, bit rate, color space, chroma subsampling, bit depth, scan type, scan order.
  • Audio: format, codec id, sample rate, channels, bit depth, language, bit rate.
  • Text: format, codec id, language of subtitle.
  • Chapters: count of chapters, list of chapters.
181 questions
0
votes
2 answers

Powershell MediaInfo read files in dir

I'm somewhat of a Powershell newbie, I've been using PS purposefully as my main scripting language for about 6 months now. I'm trying to generate a basic script using only powershell and mediainfo to parse details from files in a directory (input)…
Kareem
  • 534
  • 1
  • 6
  • 17
0
votes
1 answer

Python generate sorted list

I want to compress my movies automatically. So I've written a mediainfo wrapper class in python, to generate a xml output, which I then parse to a movieinfo class, with a list of audio and subtitle tracks. __author__ = 'dominik' class…
Dominik2000
  • 135
  • 1
  • 8
0
votes
2 answers

How do I suppress the output in subprocess.call, but save the output?

At the moment the code I have is print ("Getting MediaInfo...") mediainfo_command = ("mediainfo", input_file_full) mediainfo = (subprocess.call(mediainfo_command)) So what I want to do is save the output of the subprocess.call into the variable…
0
votes
1 answer

MediaInfo not able to get details of uploaded file in the same manner it can when pointed to local file

I have been trying to get the durationstring of a piece of video content that has been uploaded to an MVC4 application using the MediaInfo.dll which I have added to the application as a reference. I am successfully able to view the details of the…
Jay
  • 3,012
  • 14
  • 48
  • 99
0
votes
1 answer

How to pass a 'file' to cpp function that expects 'Buffer' in Python ctypes?

I want to add 'Open_Buffer_Continue' function to the MediaInfoDLL.py ctypes wrapper, the bindings are here and MediaInfoDLL.cs C# binding already implements this function so it's possible. How do i pass the following: file = open('./file.avi',…
user2202807
0
votes
1 answer

cmd script printing out but not executing

Hi all I'm currently writing up a small bash script to automate some stuff for me but I've hit a bit of a snag My current file looks like the following: for /f "delims=" %%f in ('dir /b "D:/*"') do C:\MediaInfo\MediaInfo.exe "--Inform=Video;%Width%…
Scott
  • 465
  • 3
  • 10
  • 22
0
votes
1 answer

MediaInfoList Example for Delphi

According to the MediaInfo documentation which is located at http://mediainfo.sourceforge.net/en/Support/SDK/Doxygen/class_media_info_lib_1_1_media_info_list.html, the MediaInfoList class is used to gather information about multiple files in one…
Dave k
  • 65
  • 6
0
votes
2 answers

How to print two lines from grep into one line with bash script

I'm trying to achieve the following: I have a directory with multiple video files in it, I want to list all the files and in the same line add the duration and size of the file , using mediainfo (nothing else is available). Mediainfo's output…
No Importa
  • 63
  • 1
  • 2
  • 4
-1
votes
1 answer

FFmpeg concat creating corrupted video part (Media Info provided)

I am using concat to join a list of video files with the following command ffmpeg -f concat -safe 0 -i filesList.txt -c copy output.mp4 The issue here is that there are a few files that were recorded in slow motion on my phone. The slow-motion…
krv
  • 2,830
  • 7
  • 40
  • 79
-1
votes
1 answer

Basic Question: I have media info app installed on my mac M1 but there's no CLI

as stated in the subject, I have purchased the mediainfo app from App Store but there's no CLI available. Please advise. I am on Apple M1
btan
  • 1
-1
votes
1 answer

Batch renaming files with output from MediaInfo tool

I hope you can help out here. I am not very experienced with either batch command files or Bash command files on MacOS (either very welcome). I have thousands of video files in AVI format (DV recordings) which contain the recording date and time…
-1
votes
1 answer

mediainfo.js query specific data

I got an example working great. Now Im trying to modify that working example and come up with a way to extract specific data. For example. Frame rate. Im thinking the syntax should be something like this with result.frameRate see below where I tried…
H D Dang
  • 23
  • 2
-1
votes
3 answers

GREP or AWK complex pattern match (linux)

So I have text output bellow from a 'mediinfo VIDEO.mkv': General Unique ID : 190778803810831492312123193779943 (0x8F265C1B107A4D595F723237C370C7074FB7) Complete name : VIDEO.mkv Format …
Chase Westlye
  • 381
  • 2
  • 6
  • 20
-1
votes
1 answer

Creating 3 Column CSV have FileName Duration Size in CMD

I am using builtin cmd commands & mediainfo utility to get three parameters for media filenames stored in a TXT file but help will be appreciated as I can't make it work From here I scrapped code for mediainfo:…
nightcrawler
  • 275
  • 5
  • 16
-1
votes
1 answer

Using Mediainfo in Bash with multiple hard drives

I am using mediainfo in a bash script to compile and spit out some info into a .csv. I have two separate hard drives on the mac I am using and I usually run the script on the main hard drive with everything on it. I recently ran out of room and am…
Erick
  • 1
1 2 3
12
13