Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jpg image identified as MPEG Audio #150

Open
DellaDu opened this issue Apr 18, 2017 · 8 comments
Open

Jpg image identified as MPEG Audio #150

DellaDu opened this issue Apr 18, 2017 · 8 comments
Assignees
Labels

Comments

@DellaDu
Copy link

DellaDu commented Apr 18, 2017

If I named the jpg file without extention '.jpg', the MediaInfo 0.7.94 will incorrectly detects it as MPEG Audio.
here is an example file:

ajpegfile

General
Complete name : C:\Users\i\Desktop\AJPEGFile
Format : MPEG Audio
File size : 6.26 MiB
Overall bit rate mode : Variable
FileExtension_Invalid : m1a mpa1 mp1 m2a mpa2 mp2 mp3

Audio
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 1
Emphasis : 50/15ms
Bit rate mode : Variable
Channel(s) : 2 channels
Sampling rate : 32.0 kHz
Compression mode : Lossy
Stream size : 45.2 KiB (1%)

@JeromeMartinez
Copy link
Member

Confirmed, false-positive.

@JeromeMartinez JeromeMartinez self-assigned this Apr 18, 2017
@Eld0r
Copy link

Eld0r commented Jul 16, 2017

PNGs without extension are correctly identified as PNG. But with and without extension they're sorted in the column audio. See this folder with PNGs in custom output:
falsepicasaudio

@boltomli
Copy link

Seems not repro on 18.03.

@JeromeMartinez
Copy link
Member

I tried with v18.03 and file renamed with .mpa extension, and issue is still there.
Sorry, I am late on fixing bugs on free support.

@the-j0k3r
Copy link
Contributor

the-j0k3r commented Mar 22, 2018

I did as OP removed the extension from the jpg and 18.03 cant reproduce.

General
Complete name                            : C:\Users\Joker\Desktop\test
Format                                   : JPEG
File size                                : 1.46 KiB
FileExtension_Invalid                    : h3d jpeg jpg jpe jps mpo

Image
Format                                   : JPEG
Width                                    : 42 pixels
Height                                   : 42 pixels
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Compression mode                         : Lossy
Stream size                              : 1.46 KiB (100%)

Advanced output

General
Count                                    : 331
Count of stream of this kind             : 1
Kind of stream                           : General
Kind of stream                           : General
Stream identifier                        : 0
Count of image streams                   : 1
Image_Format_List                        : JPEG
Image_Format_WithHint_List               : JPEG
Codecs Image                             : JPEG
Complete name                            : C:\Users\Joker\Desktop\test
Folder name                              : C:\Users\Joker\Desktop
File name                                : test
File name                                : test
Format                                   : JPEG
Format                                   : JPEG
Format/Extensions usually used           : h3d jpeg jpg jpe jps mpo
Commercial name                          : JPEG
Internet media type                      : image/jpeg
Codec                                    : JPEG
Codec                                    : JPEG
Codec/Extensions usually used            : h3d jpeg jpg jpe jps mpo
File size                                : 1494
File size                                : 1.46 KiB
File size                                : 1 KiB
File size                                : 1.5 KiB
File size                                : 1.46 KiB
File size                                : 1.459 KiB
Stream size                              : 0
Stream size                              : 0.00 Byte (0%)
Stream size                              :  Byte0
Stream size                              : 0.0 Byte
Stream size                              : 0.00 Byte
Stream size                              : 0.000 Byte
Stream size                              : 0.00 Byte (0%)
Proportion of this stream                : 0.00000
File creation date                       : UTC 2018-03-22 06:25:35.853
File creation date (local)               : 2018-03-22 06:25:35.853
File last modification date              : UTC 2018-03-22 06:25:38.178
File last modification date (local)      : 2018-03-22 06:25:38.178
FileExtension_Invalid                    : h3d jpeg jpg jpe jps mpo

Image
Count                                    : 122
Count of stream of this kind             : 1
Kind of stream                           : Image
Kind of stream                           : Image
Stream identifier                        : 0
Format                                   : JPEG
Commercial name                          : JPEG
Internet media type                      : image/jpeg
Codec                                    : JPEG
Codec                                    : JPEG
Width                                    : 42
Width                                    : 42 pixels
Height                                   : 42
Height                                   : 42 pixels
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Resolution                               : 8
Resolution                               : 8 bits
Bit depth                                : 8
Bit depth                                : 8 bits
Compression mode                         : Lossy
Compression mode                         : Lossy
Stream size                              : 1494
Stream size                              : 1.46 KiB (100%)
Stream size                              : 1 KiB
Stream size                              : 1.5 KiB
Stream size                              : 1.46 KiB
Stream size                              : 1.459 KiB
Stream size                              : 1.46 KiB (100%)
Proportion of this stream                : 1.00000

also there is an older issue for this: #11

I did however notice that several fields are duplicated and some dont have a value, I guess thats a bug for another report.

@JeromeMartinez
Copy link
Member

I did as OP removed the extension from the jpg and 18.03 cant reproduce.

OK. but as there is still an issue with .mpa extension, I keep the issue open.

also there is an older issue for this: #11

Completely separated issue.

I did however notice that several fields are duplicated and some dont have a value, I guess thats a bug for another report.

No bug, this is the expected output in this "debug" display.

@the-j0k3r
Copy link
Contributor

the-j0k3r commented Mar 22, 2018

OK thx.

I was more interested in this

File size                                : 1494
File size                                : 1.46 KiB
File size                                : 1 KiB
File size                                : 1.5 KiB
File size                                : 1.46 KiB
File size                                : 1.459 KiB

The first would be bytes no? If so its missing something or seems to. Sorry for offtopic.

@MikaelWahlberg
Copy link

I did as OP removed the extension from the jpg and 18.03 cant reproduce.

OK. but as there is still an issue with .mpa extension, I keep the issue open.

also there is an older issue for this: #11

Completely separated issue.

I did however notice that several fields are duplicated and some dont have a value, I guess thats a bug for another report.

No bug, this is the expected output in this "debug" display.

Any update on this? We have some JPG example files, that has this issue (Specifically if they are read over http, so I guess the extension doesn't work correctly). But I can also reproduce locally if I remove the .jpg extension

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants