Page 1 of 1

Incorrect video extensions [#7694]

Posted: Tue Apr 26, 2011 7:17 am
by Psyker7
I've been downloading some videos which the site I get them from insists are '.mp4' files and are labeled with that extension.
MediaPlayerClassic plays them fine, but MM gets an error when trying to import them - "error while reading file info" and won't play them at all.

Strangely, renaming these to '.avi' appears to make them play correctly - yet they still won't import into the library.
MediaInfo says it's a Flash Video, renaming to '.flv' also plays correctly, but still won't import with the same error - 'error while reading file info'

Code: Select all

General
Count                            : 277
Count of stream of this kind     : 1
Kind of stream                   : General
Kind of stream                   : General
Stream identifier                : 0
Count of video streams           : 1
Count of audio streams           : 1
Video_Format_List                : AVC
Video_Format_WithHint_List       : AVC
Codecs Video                     : AVC
Audio_Format_List                : AAC
Audio_Format_WithHint_List       : AAC
Audio codecs                     : AAC LC
Complete name                    : D:\Video\iView_Downloader_v15.81\Test\Episode 13 The Big Bang [Final].mp4
Folder name                      : D:\Video\iView_Downloader_v15.81\Test
File name                        : Episode 13 The Big Bang [Final]
File extension                   : mp4
Format                           : Flash Video
Format                           : Flash Video
Format/Url                       : http://www.macromedia.com/go/getflashplayer
Format/Extensions usually used   : flv
Commercial name                  : Flash Video
Internet media type              : application/x-shockwave-flash
Codec                            : Flash Video
Codec                            : Flash Video
Codec/Url                        : http://www.macromedia.com/go/getflashplayer
Codec/Extensions usually used    : flv
File size                        : 266351953
File size                        : 254 MiB
File size                        : 254 MiB
File size                        : 254 MiB
File size                        : 254 MiB
File size                        : 254.0 MiB
Duration                         : 3221031
Duration                         : 53mn 41s
Duration                         : 53mn 41s 31ms
Duration                         : 53mn 41s
Duration                         : 00:53:41.031
Overall bit rate                 : 661532
Overall bit rate                 : 662 Kbps
File creation date               : UTC 2011-04-26 11:38:58.499
File creation date (local)       : 2011-04-26 21:38:58.499
File last modification date      : UTC 2011-04-26 11:47:28.221
File last modification date (loc : 2011-04-26 21:47:28.221

Video
Count                            : 193
Count of stream of this kind     : 1
Kind of stream                   : Video
Kind of stream                   : Video
Stream identifier                : 0
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format/Url                       : http://developers.videolan.org/x264.html
Commercial name                  : AVC
Format profile                   : Main@L3.1
Format settings                  : CABAC / 6 Ref Frames
Format settings, CABAC           : Yes
Format settings, CABAC           : Yes
Format settings, ReFrames        : 6
Format settings, ReFrames        : 6 frames
Internet media type              : video/H264
Codec ID                         : 7
Codec                            : AVC
Codec                            : AVC
Codec/Family                     : AVC
Codec/Info                       : Advanced Video Codec
Codec/Url                        : http://developers.videolan.org/x264.html
Codec profile                    : Main@L3.1
Codec settings                   : CABAC / 6 Ref Frames
Codec settings, CABAC            : Yes
Codec_Settings_RefFrames         : 6
Duration                         : 3220040
Duration                         : 53mn 40s
Duration                         : 53mn 40s 40ms
Duration                         : 53mn 40s
Duration                         : 00:53:40.040
Bit rate mode                    : VBR
Bit rate mode                    : Variable
Maximum bit rate                 : 555008
Maximum bit rate                 : 555 Kbps
Width                            : 640
Width                            : 640 pixels
Height                           : 360
Height                           : 360 pixels
Pixel aspect ratio               : 1.000
Display aspect ratio             : 1.778
Display aspect ratio             : 16:9
Frame rate mode                  : CFR
Frame rate mode                  : Constant
FrameRate_Mode_Original          : VFR
Frame rate                       : 25.000
Frame rate                       : 25.000 fps
Frame count                      : 80501
Standard                         : Component
Resolution                       : 8
Resolution                       : 8 bits
Colorimetry                      : 4:2:0
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8
Bit depth                        : 8 bits
Scan type                        : Progressive
Scan type                        : Progressive
Interlacement                    : PPF
Interlacement                    : Progressive
Delay                            : 0
Delay                            : 00:00:00.000
Delay, origin                    : Container
Delay, origin                    : Container
Buffer size                      : 346368

Audio
Count                            : 157
Count of stream of this kind     : 1
Kind of stream                   : Audio
Kind of stream                   : Audio
Stream identifier                : 0
Format                           : AAC
Format/Info                      : Advanced Audio Codec
Commercial name                  : AAC
Format profile                   : LC
Format settings, SBR             : No (Explicit)
Format settings, SBR             : No (Explicit)
Codec ID                         : 10
Codec                            : AAC LC
Codec                            : AAC LC
Codec/Family                     : AAC
Duration                         : 3221031
Duration                         : 53mn 41s
Duration                         : 53mn 41s 31ms
Duration                         : 53mn 41s
Duration                         : 00:53:41.031
Channel(s)                       : 2
Channel(s)                       : 2 channels
Channel positions                : Front: L R
Channel positions                : 2/0/0
Sampling rate                    : 44100
Sampling rate                    : 44.1 KHz
Samples count                    : 142047467
Compression mode                 : Lossy
Compression mode                 : Lossy
Delay                            : 0
Delay                            : 00:00:00.000
Delay, origin                    : Container
Delay, origin                    : Container
Delay relative to video          : 0
Video0 delay                     : 0

I would have thought MM shouldn't depend too much on the file extension, and should attempt to just play it anyway? Or perhaps detect if the extension is wrong and offer to correct it. I have quite a large number of files which have these incorrect extensions it seems, but hadn't had a problem with any previous player - WMP, MPC etc.

Re: Incorrect video extensions

Posted: Tue Apr 26, 2011 8:11 am
by MiPi
Scanning video files with wrong (but known) extensions is planned to be fixed soon (issue 6782).
But after renaming, it should work. Could you please upload me some of these problematic FLV files? You can use e.g. sendspace.com and send me link (by PM). Thank you very much.

Re: Incorrect video extensions

Posted: Tue Apr 26, 2011 9:53 am
by MiPi
I've reproduced the problem with importing FLV file (with right flv extension), tracked and resolved as http://www.ventismedia.com/mantis/view.php?id=7694

Re: Incorrect video extensions [#7694]

Posted: Mon May 02, 2011 3:32 am
by Psyker7
In 1368

So the files are being added to the library now even if the extension is incorrect, as per
http://www.ventismedia.com/mantis/view.php?id=6782

However, if the extension is set to .mp4 (as these files where when I got them) they still will not play.
Seems silly if MM can add them but not play them.

Changing extension does make them work perfectly fine now.

Re: Incorrect video extensions [#7694]

Posted: Mon May 02, 2011 5:54 am
by MiPi
It should be ok in the next version, please let me know then.
MM can add some files, that it cannot play - it could happen, MM parses the file and adds it, but does not try to find decoders and splitters during scanning, it would significantly slow down scanning.

Re: Incorrect video extensions [#7694]

Posted: Wed May 04, 2011 10:01 am
by Psyker7
While http://www.ventismedia.com/mantis/view.php?id=6782 implies this is fixed in 1369, the file I sent to you still throws an error if named with .mp4

I think there's something funky with the format it comes in, but it's strange that it can recognize all the metadata (length, bitrate etc) but not play it when it has this .mp4 extension.
I have some more files I can upload which do not work if you want?

Re: Incorrect video extensions [#7694]

Posted: Wed May 04, 2011 10:38 am
by MiPi
Please try to temporary rename f_aac_codec.dll to f_aac_codec.dll.out and try again. This file is already fixed, but new codec pack with this fix was not released yet.

Re: Incorrect video extensions [#7694]

Posted: Sat May 07, 2011 9:25 am
by Psyker7
1370 with codec pack 1.11 fixed this!

Thanks for sticking with it, all video I have appears to work fine for me now.