INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: MC25 hangs when importing MKV with wrong .MP4 extension  (Read 647 times)

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2619
MC25 hangs when importing MKV with wrong .MP4 extension
« on: April 14, 2019, 05:02:47 am »

Hi,
When importing files, MC25 was stuck for a long time trying to import a file. CPU usage was 100% (JRWorker.exe) and RAM usage went up to 3 GB. I found out it was caused by having a wrong .mp4 extension on an MKV video. Renaming the file with the correct extension fixes the issue.

MPC-HC had no problems with this file. MediaInfo can decode it and flags the incorrect extension.

Code: [Select]
Complete name               : \\NAS\Video\Movies\2014\redacted.movie.title.mp4
Format                      : Matroska
Format version              : Version 4
File size                   : 3.10 GiB
Duration                    : 2 h 30 min
Overall bit rate            : 2 945 kb/s
Movie name                  : redacted.movie.title
Encoded date                : UTC 2014-06-21 19:23:24
Writing application         : mkvmerge v7.0.0 ('Where We Going') 64bit built on Jun  9 2014 15:16:27
Writing library             : libebml v1.3.0 + libmatroska v1.4.1
FileExtension_Invalid       : mkv mk3d mka mks


Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10939
Re: MC25 hangs when importing MKV with wrong .MP4 extension
« Reply #1 on: April 14, 2019, 05:31:14 am »

MP4 files are particularly annoying as they can be very odd formats and trying to check if its not really a hidden MP4 file in some format can be annoying.
In short, don't do that.
Logged
~ nevcairiel
~ Author of LAV Filters

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2619
Re: MC25 hangs when importing MKV with wrong .MP4 extension
« Reply #2 on: April 14, 2019, 05:48:40 am »

Obviously the file was not misnamed on purpose. If you didn't produce the file, you have no control over that, and most users will only see "JRiver is hanging" without having a clue that this can be the cause.

Some sanity can be done. There are libs out there to try to determine a file type by its' headers.
Other sanity types: when parsing headers, is it saying that it contains 1929742332 streams? Probably not correct.
Logged
Pages: [1]   Go Up