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
3
votes
3 answers

How do I get specific information out of Mediainfo

I found out that mediainfo is a really good tool for getting metadata out of videofiles. But sometimes its way too overwhelming for me. First thing I should mention I am using Windows Powershell and in Windows Powershell I use Mediainfo as command…
sebastian
  • 179
  • 1
  • 4
  • 10
2
votes
3 answers

Which class "owns" an unmanaged resource (and which implements IDisposable)?

I'm working on an OSS project to make the popular MediaInfo library easier to use in .NET, but this question is generalizable. If a derived class D always instantiates an object O when calling its base class DB's constructor. DB sets its value to…
Charles Burns
  • 10,310
  • 7
  • 64
  • 81
2
votes
1 answer

What is the meaning of device label last part (ex - 413c:c00f) in deviceInfo from enumerateDevices?

I am querying for devices using enumerateDevices and listing the labels of all microphone devices. The labels are like - Communications - Headset Microphone (Jabra Link 370) (0b0e:245e) Echo Cancelling Speakerphone (8- C3422WE)…
2
votes
1 answer

Issue parsing multiple large video files quickly using mediainfodll library

I have being using MediaInfoLib, to find duration of a media file, in my project without issue until I observed lately that when I try to parse multiple large video files ( MXF, MP4 and AVI formats) quickly in a loop, MediaInfo is unable to return…
ark1974
  • 615
  • 5
  • 16
2
votes
1 answer

Using C# and MediaInfo How to detect HDR format

I'm using the MediaInfo Nuget Wrapper to analyse a bunch of files using MediaInfo Actual on a file I can see Video ID : 1 Format : HEVC Format/Info : High Efficiency Video Coding Format profile : Main 10@L5.1@Main HDR format : Dolby Vision,…
Holly
  • 307
  • 1
  • 8
  • 17
2
votes
1 answer

Difference in number of channels returned by mediainfo and ffprobe

I was examining an audio file and noticed that the numbers of channels returned by mediainfo and ffprobe were different. The mediainfo command: mediainfo audio.mp4 The ffprobe command (see the channels value): ffprobe -i audio.mp4…
Hai Tran
  • 45
  • 6
2
votes
2 answers

Batch files inside folder to create MediaInfo.nfo file

I'm trying to create a Batch whose purpose is to use MediaInfo.exe (CLI) to create a single text file (.nfo) containing all the "mediainfo" of the video files contained in a folder. The Batch is executed from the context menu: right click on the…
2
votes
2 answers

Extracting Movie name using mediainfo within python

I can get the Movie name from my avi files with the command line mediainfo --Inform="General;%Movie%" file.avi In python I have access to the mediainfo structure mediainfo = MediaInfo.parse(filename) But nowhere can I find out how the command line…
vicarage
  • 83
  • 1
  • 6
2
votes
3 answers

C# Reading Video / Audio / Image file metadata from a stream

I'm currently looking to write an AWS Lambda function in C# File uploaded to S3 triggers my Lambda Lambda to interrogate file and get technical metadata about video codecs, frame rates, audio channels, duration Lambda to post that data to another…
CianM
  • 397
  • 5
  • 17
2
votes
2 answers

Using MediaInfo DLL with C# DLLImport

Using MediaInfo DLL (64-bit), I am attempting to get the standard text output providing information about an mp4 file. To wrap the dll, I have created a MediaInfo class, based on my (limited) understanding from the quickstart guide. public class…
Quantum_Kernel
  • 303
  • 1
  • 7
  • 19
2
votes
1 answer

What is the best way to check if audio embedded in video is ambisonic?

We are making 360 video player for VR headsets using Unity. We are trying to achieve spatial audio. The easiest case is when video and audio are in separated files, but now we decided to support also videos with embedded audio. I need to know before…
GrzegorzW
  • 23
  • 4
2
votes
1 answer

Specific mediainfo command for audio duration for media stream having stereo or multiple audio streams

I am getting concatenated duration of audios present in the file from the following command: mediainfo --Output="Audio;%Duration%" "filename" This command will give me the number 130406130468 which is concatenated duration of 2 audios present in…
Shubham Dadhich
  • 127
  • 1
  • 7
2
votes
1 answer

Building valid JSON playlist from directory of files using MediaInfo Command Line and jq

I'm using MediaInfo command line v18.08 on ubuntu to parse multiple files in a directory and output JSON, like this: mediainfo * --output=JSON Which outputs the following JSON for each file (trimmed down a bit) { "media": { "@ref":…
digitaltoast
  • 659
  • 7
  • 23
2
votes
2 answers

Swift Arguments in task.arguments

In Swift 4, I try to launch a command line to know the frame rate of a video. I use mediainfo tool. The command to execute is (tested in Terminal) "/Users/Lorenzo/mediainfo --Inform="Video;%FrameRate%" /Users/Lorenzo/Desktop/1.mov" And my swift…
DePa
  • 31
  • 4
2
votes
0 answers

'Mediainfo' permission denied AWS

I have a lambda function for making thumbnails from videos, but I'm encountering some issues when I try to use the mediainfo module. I get the same problem when I test the function /var/task/node_modules/mediainfo-wrapper/lib/linux64/mediainfo:…
1 2
3
12 13