You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, everyone.
To share information, the mediainfo report generated by the MPC-HD playback software is uploaded
with this result for example
General
Unique ID : 231698035337845414301804475945933004885 (0xAE4F6B1E500C05B6AE066E1AB802E055)
Complete name : \\UNRAID\Archivio\torrent\tmp2\xxxx.mkv
Format : Matroska
Format version : Version 1
File size : 3.90 GiB
Duration : 1 h 32 min
Overall bit rate : 6 064 kb/s
Frame rate : 25.000 FPS
Encoded date : 2009-02-11 23:30:03 UTC
Writing application : mkvmerge v2.2.0 ('Turn It On Again') built on Mar 4 2008 13:20:25
Writing library : libebml v0.7.7 + libmatroska v0.8.1
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : CABAC / 5 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference fra : 5 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1 h 32 min
Bit rate : 5 014 kb/s
Width : 1 280 pixels
Height : 696 pixels
Display aspect ratio : 1.85:1
Frame rate mode : Constant
Frame rate : 25.000 FPS
Original frame rate : 23.976 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.225
Stream size : 3.28 GiB (84%)
Writing library : x264 core 65 r1047 f773bf0
Encoding settings : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=7 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=12 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40(pre) / rc=2pass / bitrate=5014 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00
Language : English
Default : Yes
Forced : No
Audio #1
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 1 h 32 min
Bit rate mode : Constant
Bit rate : 448 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 295 MiB (7%)
Language : Italian
Service kind : Complete Main
Default : Yes
Forced : No
Audio #2
ID : 3
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 1 h 32 min
Bit rate mode : Constant
Bit rate : 384 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 253 MiB (6%)
Language : English
Service kind : Complete Main
Default : No
Forced : No
Text #1
ID : 4
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Language : Italian
Default : Yes
Forced : No
Text #2
ID : 5
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Title : Forced
Language : Italian
Default : No
Forced : No
Text #3
ID : 6
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Language : English
Default : No
Forced : No
My objective was to write a script that analysed all the files in a folder.
using a python library such as pymediainfo
I am only testing on one for simplicity
with this simple script
from pymediainfo import MediaInfo
def analyze_media(file_path):
media_info = MediaInfo.parse(file_path)
return media_info.to_data()
def write_to_txt(data, output_file):
with open(output_file, 'w') as f:
for track in data['tracks']:
for key, value in track.items():
f.write(f"{key}: {value}\n")
f.write("\n")
if __name__ == "__main__":
file_path = r"U:\torrent\tmp2\xxxxxxxx.mkv"
output_file = "media_info.txt"
media_data = analyze_media(file_path)
write_to_txt(media_data, output_file)
print("Media information has been written to media_info.txt")
I have a much more detailed result but with an incompatible format
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, everyone.
To share information, the mediainfo report generated by the MPC-HD playback software is uploaded
with this result for example
My objective was to write a script that analysed all the files in a folder.
using a python library such as pymediainfo
I am only testing on one for simplicity
with this simple script
I have a much more detailed result but with an incompatible format
in the extended version there is much more information but the format is not compatible.
I have seen that I can change the export with MediaInfo.parse(file_path, output="")
See https://pymediainfo.readthedocs.io/en/stable/pymediainfo.html for the documentation of the output parameter.
Is there an XML file that defines the format of the mediainfo to be imported so that this tracker communicates with pymediainfo?
Thank in avance!
Beta Was this translation helpful? Give feedback.
All reactions