Missing runtime from mediainfo
#1
I'm using the *-mediainfo.xml files for media. There are several mediainfo files that are not parsed completely by TMM. Please have a look at the attached file. From that file the duration is not fetched:

Mediainfo

Here's the duration from the xml. In TMM runtime=0 is shown instead:

Code:
<Duration>7971380</Duration>
  <Duration>2 h 12 min</Duration>
  <Duration>2 h 12 min 51 s 380 ms</Duration>
  <Duration>2 h 12 min</Duration>
  <Duration>02:12:51.380</Duration>
  <Duration>02:12:53;08</Duration>
  <Duration>02:12:51.380 (02:12:53;08)</Duration>
#2
is the movie an .ISO file?
Because the -mediainfo.xml currently only fires for disc type files.

When having an ISO and filesize >0 the runtime gets correctly parsed out of xml...
tinyMediaManager - THE media manager of your choice :)
Wanna help translate TMM ?
Image
#3
Yes, media is a remuxed BD ISO file with a generated "[title]-mediainfo.xml". Over 99,9% of my media are ISO files. I use the following command to pre-generate the "[title]-mediainfo.xml" for TMM.

mediainfo d: -f --Output=XML > [title]-mediainfo.xml

TMM usually gets the correct info from the "Video" and "Audio" tracks. But there are some 100 left. For these either audio or video details are not fetched at all.

I can upload several of these XML files if you need further assistance.

TIA


***EDIT:*** Did use the new 7.93 release of mediainfo for a test. No change. Duration is not fetched.
#4
can you upload the tmm.log logfile somewhere?
It worked for me fine with your xml....
tinyMediaManager - THE media manager of your choice :)
Wanna help translate TMM ?
Image
#5
Found something in the log. Seems that TMM has problems with that particular mediainfo output:

Code:
2017-03-21 14:36:27,248 DEBUG [tmmpool-reloadMI-thread-1] o.t.core.entities.MediaFile:1439 - start MediaInfo for \\TOWER2\disk4\Filme\L\Leon Der Profi 1994 [HD]\Leon Der Profi 1994 [HD].iso
2017-03-21 14:36:27,249 INFO  [tmmpool-reloadMI-thread-1] o.t.core.entities.MediaFile:1231 - ISO: try to parse \\TOWER2\disk4\Filme\L\Leon Der Profi 1994 [HD]\Leon Der Profi 1994 [HD]-mediainfo.xml
2017-03-21 14:36:27,397 DEBUG [tmmpool-reloadMI-thread-1] o.t.core.entities.MediaFile:1774 - found language 'german' in 'Leon Der Profi 1994 [HD].iso
2017-03-21 14:36:27,400 DEBUG [tmmpool-reloadMI-thread-1] o.t.core.entities.MediaFile:1774 - found language 'german' in 'Leon Der Profi 1994 [HD].iso
2017-03-21 14:36:27,402 DEBUG [tmmpool-reloadMI-thread-1] o.t.core.entities.MediaFile:1774 - found language 'german' in 'Leon Der Profi 1994 [HD].iso
2017-03-21 14:36:27,403 DEBUG [tmmpool-reloadMI-thread-1] o.t.core.entities.MediaFile:1774 - found language 'german' in 'Leon Der Profi 1994 [HD].iso
2017-03-21 14:36:27,403 ERROR [tmmpool-reloadMI-thread-1] o.t.core.entities.MediaFile:1747 - ISO file seems to have an invalid structure - ignore duration
2017-03-21 14:36:27,407 DEBUG [tmmpool-reloadMI-thread-1] o.t.core.entities.MediaFile:1439 - start MediaInfo for \\TOWER2\disk4\Filme\L\Leon Der Profi 1994 [HD]\poster.jpg
2017-03-21 14:36:27,416 DEBUG [tmmpool-reloadMI-thread-1] o.t.core.entities.MediaFile:1439 - start MediaInfo for \\TOWER2\disk4\Filme\L\Leon Der Profi 1994 [HD]\fanart.jpg
2017-03-21 14:36:27,423 DEBUG [tmmpool-reloadMI-thread-1] o.t.core.entities.MediaFile:1439 - start MediaInfo for \\TOWER2\disk4\Filme\L\Leon Der Profi 1994 [HD]\banner.jpg
2017-03-21 14:36:27,431 DEBUG [tmmpool-reloadMI-thread-1] o.t.core.entities.MediaFile:1439 - start MediaInfo for \\TOWER2\disk4\Filme\L\Leon Der Profi 1994 [HD]\clearart.png
2017-03-21 14:36:27,437 DEBUG [tmmpool-reloadMI-thread-1] o.t.core.entities.MediaFile:1439 - start MediaInfo for \\TOWER2\disk4\Filme\L\Leon Der Profi 1994 [HD]\disc.png
2017-03-21 14:36:27,444 DEBUG [tmmpool-reloadMI-thread-1] o.t.core.entities.MediaFile:1439 - start MediaInfo for \\TOWER2\disk4\Filme\L\Leon Der Profi 1994 [HD]\logo.png
2017-03-21 14:36:27,451 DEBUG [tmmpool-reloadMI-thread-1] o.t.core.entities.MediaFile:1439 - start MediaInfo for \\TOWER2\disk4\Filme\L\Leon Der Profi 1994 [HD]\clearlogo.png
2017-03-21 14:36:27,458 DEBUG [tmmpool-reloadMI-thread-1] o.t.core.entities.MediaFile:1439 - start MediaInfo for \\TOWER2\disk4\Filme\L\Leon Der Profi 1994 [HD]\thumb.jpg
2017-03-21 14:36:27,464 INFO  [tmmpool-main-task-thread-9] o.t.c.m.t.MovieReloadMediaInformationTask:70 - Done getting MediaInfo - took 00:00:00.218
#6
ah, yes, good point.
We have a sanity check there.
If the sum of all stream sizes (according to xml) is too far away from the physical disc size, we invalidate this.
Can you tell me, how big your ISO file is? (in bytes)?
tinyMediaManager - THE media manager of your choice :)
Wanna help translate TMM ?
Image
#7
Size is 29.135.601.664.

In the meantime I looked thru some old TMM logs and it seems that all missing durations share that same error message.

I always use the untouched BD, remux to my language only, and produce an ISO. Everythings script-driven. No re-encoding.
#8
ah ok, thx.
Check slightly out of range - will tweak this a bit Smile
Thanks
tinyMediaManager - THE media manager of your choice :)
Wanna help translate TMM ?
Image
#9
Thanks, do you need more examples?
#10
nah, thx.
just using now +/- 10% difference from mediainfo XML sizes to physical sizes, to accept that as valid ISO.

I just need to make sure, to filter out such XMLs, where the reported size would be 40gig inside an 8gig ISO (copy protected; structure garbled)
but 10% should do the trick fine...
tinyMediaManager - THE media manager of your choice :)
Wanna help translate TMM ?
Image
#11
Tried to test it with the new 2.9.3. release. Most of the movies do work now. Thanks for that.

However there are a lot of files where your tuned calculation seems to fail. It fails for all (100%) 3D-ISO files with "*-mediainfo.xml" files.

I did upload one 3D-ISO mediainfo here:

Mediainfo

Thanks a lot.
#12
A found it. You try to match the size of the ISO with any size tag you find. In that particular case it's a JPEG you try to match:

Code:
2017-04-04 11:44:21,281 DEBUG [tmmpool-reloadMI-T1-G1078] o.t.core.entities.MediaFile:1793 - ISO size:15060107264  reportedDataSize:421444  = diff:15059685820 ~99%

Code:
<File>
<track type="General">
<Count>322</Count>
<Count_of_stream_of_this_kind>1</Count_of_stream_of_this_kind>
<Kind_of_stream>General</Kind_of_stream>
<Kind_of_stream>General</Kind_of_stream>
<Stream_identifier>0</Stream_identifier>
<Count_of_image_streams>1</Count_of_image_streams>
<Image_Format_List>JPEG</Image_Format_List>
<Image_Format_WithHint_List>JPEG</Image_Format_WithHint_List>
<Codecs_Image>JPEG</Codecs_Image>
<Complete_name>D:\\folder.jpg</Complete_name>
<Folder_name>D:\</Folder_name>
<File_name>folder</File_name>
<File_extension>jpg</File_extension>
<Format>JPEG</Format>
<Format>JPEG</Format>
<Format_Extensions_usually_used>jpeg jpg jpe</Format_Extensions_usually_used>
<Commercial_name>JPEG</Commercial_name>
<Internet_media_type>image/jpeg</Internet_media_type>
<Codec>JPEG</Codec>
<Codec>JPEG</Codec>
<Codec_Extensions_usually_used>jpeg jpg jpe</Codec_Extensions_usually_used>
<File_size>421444</File_size>
<File_size>412 KiB</File_size>
<File_size>412 KiB</File_size>
<File_size>412 KiB</File_size>
<File_size>412 KiB</File_size>
<File_size>411.6 KiB</File_size>
<Stream_size>0</Stream_size>
<Stream_size>0.00 Byte (0%)</Stream_size>
<Stream_size> Byte0</Stream_size>
<Stream_size>0.0 Byte</Stream_size>
<Stream_size>0.00 Byte</Stream_size>
<Stream_size>0.000 Byte</Stream_size>
<Stream_size>0.00 Byte (0%)</Stream_size>
<Proportion_of_this_stream>0.00000</Proportion_of_this_stream>
<File_creation_date>UTC 2013-06-16 09:21:59.766</File_creation_date>
<File_creation_date__local_>2013-06-16 11:21:59.766</File_creation_date__local_>
<File_last_modification_date>UTC 2013-06-16 09:21:59.812</File_last_modification_date>
<File_last_modification_date__local_>2013-06-16 11:21:59.812</File_last_modification_date__local_>
</track>
#13
ehrm.. no.
reportedDataSize is cumulated of ALL file_size/stream_size values (taking the bigger one per track)
With above panda XML i get 17056516845

(but that one doesn't have this 421444 entry... seems to be another xml)
tinyMediaManager - THE media manager of your choice :)
Wanna help translate TMM ?
Image
#14
I did use the first output "ISO size:15060107264 reportedDataSize:421444" and GREPped thru my files until I found "421444". Don't know what XML this was. But in that file there was a "folder.jpg" in the root of the ISO. There was no video-size and no audio-size in the XML - just the image-size.

Currently I'm re-creating all XMLs with mediainfo 0.7.93. Will last some days - will check again then. But I'm pretty sure that the 421444 example is not the only one.

Logout Mark Read Team Forum Stats Members Help
Missing runtime from mediainfo0