Opened 9 years ago

Closed 9 years ago

#4153 closed enhancement (invalid)

FFprobe: MIDI does not work when it does not have mid extension

Reported by: Đonny Owned by:
Priority: wish Component: avformat
Version: git-master Keywords: libmodplug probe
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
I have a MIDI file. When the file is saved with *.mid extension, FFprobe detects properly that it's MIDI. When it has different extension, e.g. *.data FFprobe fails.
How to reproduce:

C:\Users\zarubaj>ffprobe  -i "C:\Code\cms\UploadTemp\eouploader.10383f39-f380-448a-9960-fd
e6d059cc91.1.data" -print_format xml=q=1 -show_error -show_format -show_streams -show_priv
ate_data
ffprobe version N-68141-g4280150 Copyright (c) 2007-2014 the FFmpeg developers
  built on Dec  1 2014 22:11:20 with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --e
nable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-li
bass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-li
bgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-lib
opencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-l
ibrtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --en
able-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable
-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-
libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib
  libavutil      54. 15.100 / 54. 15.100
  libavcodec     56. 13.100 / 56. 13.100
  libavformat    56. 15.101 / 56. 15.101
  libavdevice    56.  3.100 / 56.  3.100
  libavfilter     5.  2.103 /  5.  2.103
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
<?xml version="1.0" encoding="UTF-8"?>
<ffprobe:ffprobe xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:ffprobe='http
://www.ffmpeg.org/schema/ffprobe' xsi:schemaLocation='http://www.ffmpeg.org/schema/ffprobe
 ffprobe.xsd'>
C:\Code\cms\UploadTemp\eouploader.10383f39-f380-448a-9960-fde6d059cc91.1.data: Invalid dat
a found when processing input
    <error code="-1094995529" string="Invalid data found when processing input"/>
</ffprobe:ffprobe>
C:\Users\zarubaj>ffprobe  -i "C:\Code\cms\UploadTemp\eouploader.10383f39-f380-448a-9960-fd
e6d059cc91.1.mid" -print_format xml=q=1 -show_error -show_format -show_streams -show_priva
te_data
ffprobe version N-68141-g4280150 Copyright (c) 2007-2014 the FFmpeg developers
  built on Dec  1 2014 22:11:20 with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --e
nable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-li
bass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-li
bgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-lib
opencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-l
ibrtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --en
able-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable
-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-
libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib
  libavutil      54. 15.100 / 54. 15.100
  libavcodec     56. 13.100 / 56. 13.100
  libavformat    56. 15.101 / 56. 15.101
  libavdevice    56.  3.100 / 56.  3.100
  libavfilter     5.  2.103 /  5.  2.103
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
<?xml version="1.0" encoding="UTF-8"?>
<ffprobe:ffprobe xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:ffprobe='http
://www.ffmpeg.org/schema/ffprobe' xsi:schemaLocation='http://www.ffmpeg.org/schema/ffprobe
 ffprobe.xsd'>
load_pat > can not open /usr/local/share/timidity/timidity.cfg, use environment variable M
MPAT_PATH_TO_CFG for the directory
Input #0, libmodplug, from 'C:\Code\cms\UploadTemp\eouploader.10383f39-f380-448a-9960-fde6
d059cc91.1.mid':
  Metadata:
    name            : Town
    instrument      : Timidity GM patches
    sample          : Town
                    : 0:
                    : 1:
                    : 2:
                    : 3:
                    : 4:
                    : 5:
                    : 6:
                    : 7:
                    : 8:
                    : 9:
                    : 10:
                    : 11:
                    : 12:
                    : 13:
                    : 14:
                    : 15:
                    : 16:
                    : 17:
                    : 18:
                    : 19:
                    : 20:
                    : 21:
                    : 22:
                    : 23:
                    : 24:
                    : 25:
                    : 26:
    extra info      : 22 patterns, 56 channels, 1/27 instrument, 28/28 samples
  Duration: 00:01:18.00, bitrate: 2 kb/s
    Stream #0:0: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s
    <streams>
        <stream index="0" codec_name="pcm_s16le" codec_long_name="PCM signed 16-bit little
-endian" codec_type="audio" codec_time_base="1/44100" codec_tag_string="[0][0][0][0]" code
c_tag="0x0000" sample_fmt="s16" sample_rate="44100" channels="2" bits_per_sample="16" r_fr
ame_rate="0/0" avg_frame_rate="0/0" time_base="1/1000" duration_ts="78000" duration="78.00
0000" bit_rate="1411200">
            <disposition default="0" dub="0" original="0" comment="0" lyrics="0" karaoke="
0" forced="0" hearing_impaired="0" visual_impaired="0" clean_effects="0" attached_pic="0"/
>
        </stream>
    </streams>

    <format filename="C:\Code\cms\UploadTemp\eouploader.10383f39-f380-448a-9960-fde6d059cc
91.1.mid" nb_streams="1" nb_programs="0" format_name="libmodplug" format_long_name="ModPlu
g demuxer" duration="78.000000" size="22097" bit_rate="2266" probe_score="50">
        <tag key="name" value="Town"/>
        <tag key="instrument" value="Timidity GM patches"/>
        <tag key="sample" value="Town
0:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:"/>
        <tag key="extra info" value="22 patterns, 56 channels, 1/27 instrument, 28/28 samp
les"/>
    </format>
</ffprobe:ffprobe>

Attachments (1)

eouploader.10383f39-f380-448a-9960-fde6d059cc91.1.mid (21.6 KB ) - added by Đonny 9 years ago.
Ifn this file is given to FFprobe with *.mid extenson everything is OK, if it is given to FFprobe with different extension (e.g. *.data) FFprobe fails

Download all attachments as: .zip

Change History (2)

by Đonny, 9 years ago

Ifn this file is given to FFprobe with *.mid extenson everything is OK, if it is given to FFprobe with different extension (e.g. *.data) FFprobe fails

comment:1 by Carl Eugen Hoyos, 9 years ago

Component: ffprobeavformat
Keywords: libmodplug probe added; midi removed
Priority: normalwish
Resolution: invalid
Status: newclosed
Type: defectenhancement

This has to be fixed in libmodplug, see ticket #2583.

Note: See TracTickets for help on using tickets.