Ticket #304 (closed defect: needs_more_info)

Opened 2 years ago

Last modified 13 months ago

wrong detection: "Format mp3 detected only with small score of 1"

Reported by: AndreAdrian Owned by:
Priority: normal Component: avformat
Version: 0.7.1 Keywords: mp3 mjpeg misdetection
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

The IP camera Lumenera Le165 uses MJEPG video codec. If ffmpeg version 0.7.1 is used together with OpenCV version 2.3.0 the Le165 mjpeg codec is miss-detected as mp3 codec. A simple fix (work around) is possible.
In file libavformat/utils.c
In function av_probe_input_buffer()
around source code line 592
change from

if (probe_size < offset) {

continue;

}

to

if (probe_size < offset) continue;
if (score <= 1) continue;

Justification: With a low score of 1 the mp3 codec is now ignored. OpenCV and ffmpeg find now the correct codec.
Disadvantage: Cases where codec was correct with score == 1 are now broken.

Change History

comment:1 Changed 2 years ago by cehoyos

  • Analyzed by developer unset
  • Status changed from new to open
  • Type changed from enhancement to defect
  • Reproduced by developer unset

Please add command line and complete, uncut output of ffmpeg.

comment:2 Changed 13 months ago by michael

  • Status changed from open to closed
  • Resolution set to needs_more_info

Please provide a sample file that is misdetected, iam happy to fix the detection. There is nothing we can do without a sample file, the suggested change looks wrong.

Note: See TracTickets for help on using tickets.