Ticket #304 (closed defect: needs_more_info)
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
Note: See
TracTickets for help on using
tickets.



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