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

Windows CLI doesn't show correct variables with spaces

There is this command line tool for MediaInfo that we use to print video file information. E.g. I want to get video file duration value: mediainfo --Inform=General;%Duration/String2% video.mkv 46 min 57 s As you can see it prints 46 min 57 s which…
user3108268
  • 1,043
  • 3
  • 18
  • 37
0
votes
1 answer

Command Prompt/Batch - How to implement If/Else statements using 3rd party commands?

Lets say I want to create a batch file. I work with video files and I use this well known tool MediaInfo. And it has a CLI version on Windows. Lets say I want to rename bunch of files in a folder. So I run this: for /r %%i in (*.mkv) do call ren…
0
votes
1 answer

How to use mediainfo on aws s3 filname contain space?

How to use mediainfo on aws s3 filename contain space? I got this error. E: https://s3-eu-west-1.amazonaws.com/test/video/batmanvs superman.mov, HttpVersionNotSupportedThe HTTP version specified is not supported. I tried single quote and double…
jojo
  • 291
  • 4
  • 13
0
votes
1 answer

How to set command output as variable in batch

First, I've googled and googled how to fix this problem, with no luck. I'm working on making a batch file to re-encode audio in a file to aac if it's ac-3 or ogg using ffmpeg. I know how to do the conversion with ffmpeg, just not how to automate it…
0
votes
0 answers

FileNotFoundError: [WinError 2] Mediainfo

I'm trying to find out if file is a video. Currently trying with pymediainfo, but I'm stuck on this error: Traceback (most recent call last): File "C:/Users/Ankka/Downloads/test.py", line 6, in fileInfo = MediaInfo.parse(o) File…
A.Ankka
  • 1
  • 1
0
votes
0 answers

Batch script stops working after reboot

so I have written a batch that worked as I intended to. After I rebooted my windows however, I ran the batch again, and for some reason it wouldn't work anymore. After breaking it down, eliminating/simplifying some code I found out that the problem…
user3033137
  • 15
  • 1
  • 5
0
votes
0 answers

PHP exec and mediainfo

I have a problem with my php script and mediainfo. I run xampp, i set the permission of my working folder to 777,but if i try to use: exec("mediainfo /path/of/the/file/video.avi > /path/of/the/output/report.txt") or exec("mediainfo…
user1825932
  • 51
  • 1
  • 5
0
votes
1 answer

Batch Get TV programme name from .TS file

Is there a way to get the Name of current playing program, from a DVB recording in .TS format? In VLC I can see it in Tile Bar, and also in "Now Playing", but in MediaInfo it shows many hours and programs, and not only what is being played. Is it…
0
votes
1 answer

Android - Recorded audio file differs size when changing device

I am trying to record an audio file in Android, I'm setting the output file bit rate and sampling rate, everything is working right but whenever i record anything in a different device the file size differs a lot. I have made some tests with a Z2…
juanes666
  • 23
  • 1
  • 2
  • 6
0
votes
2 answers

Trouble storing the output of mediainfo video times into an array

For the life of me, I cannot figure out why I can't store the output of the mediainfo --Inform command into an array. I've done for loops in Bash before without issue, perhaps I'm missing something really obvious here. Or, perhaps I'm going about…
ErichL
  • 3
  • 2
0
votes
1 answer

Mediainfo doesn't work with exec() function of php

$rt=passthru("/usr/bin/mediainfo ".$file ); echo $rt; ?> it doesn't show anything even if it works in the cli i have linux ubuntu OS . thanks for all
0
votes
1 answer

Install yamdi, ffmpeg, mplayer, mencoder and mediainfo

Regards, For one a script I need the following support to have on the my server. Mencoder 1.0rc1 Mplayer 1.0rc1 FFmpeg (from SVN) flvtool2 or yamdi MediaInfo (http://mediainfo.sourceforge.net/en) How do I check what I got from this on server?…
NetSector
  • 106
  • 2
  • 11
0
votes
1 answer

python popen special characters not parsing file

I am having issues with non ASCII characters. I am using python 2.7.3 python -V Python 2.7.3 I installed http://pymediainfo.readthedocs.org/en/latest/ via easy_install pymediainfo imported as below from pymediainfo import MediaInfo media_info =…
0
votes
2 answers

Exporting video duration as HH:MM:SS into .csv

I have a bash script that reads video files in a directory and outputs information into a .csv. The only problem I have at this point is that when I export the duration of all video files in HH:MM:SS format it cuts off the seconds for any duration…
Erick
  • 1
0
votes
1 answer

get .mov video rotation with php or avconv

is there a way to find an .mov file's rotation from the exif data directly with php or using avconv? Im currently using mediainfo but I was wondering if I can get the rotation without depending on it.
KDaker
  • 5,899
  • 5
  • 31
  • 44