View Issue Details

IDProjectCategoryView StatusLast Update
0006782MediaMonkey (current)Codecpublic2011-06-05 01:46
Reporterpeke 
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version4.0 
Target Version4.0Fixed in Version4.0 
Summary0006782: Files with incorect extensions are not added to Library
DescriptionSome H.264/MPEG-4 AVC file Re not imported due the Error while reading File Info:

These are reported by SPlayer (Shooter Player) and MPC (MediaPlayer Clasic) which play these files normally:
---
Video: MPEG4 Video (H264) 960x540 29.97fps [GPAC ISO Video Handler]
Audio: AAC 44100Hz stereo 150Kbps [GPAC ISO Audio Handler (eng)]
Video resolution? 960 x 540 (Aspect ratio 16:9)

General
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 779 MiB
Duration : 36mn 53s
Overall bit rate : 2 953 Kbps
Encoded date : UTC 2010-11-07 08:56:36
Tagged date : UTC 2010-11-07 08:56:36

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.2
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 36mn 53s
Bit rate mode : Variable
Bit rate : 2 798 Kbps
Maximum bit rate : 4 175 Kbps
Width : 960 pixels
Height : 540 pixels
Display aspect ratio : 16/9
Frame rate mode : Constant
Frame rate : 29.970 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.180
Stream size : 738 MiB (95%)

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : No
Codec ID : 40
Duration : 36mn 53s
Bit rate mode : Variable
Bit rate : 150 Kbps
Maximum bit rate : 170 Kbps
Channel(s) : 2 channels
Channel positions : L R
Sampling rate : 44.1 KHz
Resolution : 16 bits
Stream size : 39.6 MiB (5%)
Language : English

---
Video: MPEG4 Video (H264) 960x540 29.97fps [MP4 Video Media Handler (eng)]
Audio: AAC 48000Hz stereo 156Kbps [MP4 Sound Media Handler (eng)]
Video resollution? 960 x 540 (Aspect ratio 16:9)

General
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42
File size : 444 MiB
Duration : 20mn 58s
Overall bit rate : 2 961 Kbps

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.2
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 20mn 57s
Bit rate mode : Variable
Bit rate : 2 800 Kbps
Width : 960 pixels
Height : 540 pixels
Display aspect ratio : 16/9
Frame rate mode : Constant
Frame rate : 29.970 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.180
Stream size : 420 MiB (95%)
Language : English

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : No
Codec ID : 40
Duration : 20mn 58s
Bit rate mode : Variable
Bit rate : 156 Kbps
Maximum bit rate : 480 Kbps
Channel(s) : 2 channels
Channel positions : L R
Sampling rate : 48.0 KHz
Resolution : 16 bits
Stream size : 23.5 MiB (5%)
Language : English
TagsNo tags attached.
Fixed in build1369

Relationships

duplicate of 0007737 closedmichal AAC / Video codec plugin Files with incorect extensions are not added to Library 
related to 0006416 closedjiri MediaMonkey (current) MP3 files that uses RIFF format structure are not playable 
related to 0007178 closedmichal MediaMonkey (current) Tagging non-MP4 file with MP4 extension destroys the file. 

Activities

peke

2010-12-01 23:38

developer   ~0021542

Last edited: 2010-12-02 02:12

View 5 revisions

Note: both files had .MPEG extensions so if I Change extension to .MP4 files are imported Correctly.

My guess is that this is same/similar issue as 0006416 where around MP3 file user writes RIFF header.

As pointed in 0006416 http://www.ventismedia.com/mantis/view.php?id=6416#c20514 MM should be able to detect right CODEC/Format according to headers and not assume correct format based on Extension. Additionally to not lose time that should be done on the end scanning with or without dialog that will notify user about nature of error and that MM will try to determine right format.

michal

2010-12-02 06:05

developer   ~0021546

The file is not MPEG1, nor MPEG2, so the extension is wrong (evidently, the file is normal MP4). I plan some "detect wrong extension" feature, which should resolve this problem I think.
MM detect format using file headers, but, without right file extension, it cannot choose right format plugin for detecting this format...

peke

2010-12-02 11:55

developer   ~0021549

Last edited: 2010-12-02 11:56

View 2 revisions

Exactly my point, I'm thinking that Format plugins should have small function to return RAW header or FOURCC ID so that MM can after initial scan and in error dialog ask user to try to check/detect correct file format.

That way I think we will not lose on scan speed and we will get feature to fix such issues for them due the fact that trying each file against each format plugin is high risk and CPU/MEM intensive.

michal

2010-12-02 12:20

developer   ~0021550

Format plugins now returns error "-2", when the given file is not in the expected format they know. I think, only in this case should MM try to detect file type (container) by reading some data from it, the function is already in f_video plugin, the question is only the MM side, how to handle it from user's view (e.g. collect all such wrong files during scanning and show some dialog after scanning for easy renaming a rescanning?).

michal

2011-04-27 11:57

developer   ~0024510

Fixed in build 1368. If the format plugin refuses some video file, application tries to detect the right extension and uses appropriate other format plugin.

michal

2011-05-02 08:53

developer   ~0024715

Reopening. There are still problems with playback of some files with incorrect extension. Reported here: http://www.mediamonkey.com/forum/viewtopic.php?f=6&t=57433

michal

2011-05-02 10:47

developer   ~0024719

Fixed in build 1369. I've tried F4V, FLV, MPG and AVI renamed to MP4 and it seems ok already.

lowlander

2011-05-04 15:04

developer   ~0024817

User indicates there are still some problems in 1369: http://www.mediamonkey.com/forum/viewtopic.php?p=296334#p296334

michal

2011-05-05 06:53

developer   ~0024853

Fixed in codec pack 1.11. F_aac_codec.dll was fixed, but not released.

peke

2011-06-05 01:46

developer   ~0025929

Verified 1384 and Codec Pack 1.12