[libav-bugs] [Bug 555] New: avprobe cannot detect raw GSM audio files metadata unless there is a file extension hint

bugzilla at libav.org bugzilla at libav.org
Wed Aug 21 21:39:00 CEST 2013


https://bugzilla.libav.org/show_bug.cgi?id=555

           Summary: avprobe cannot detect raw GSM audio files metadata
                    unless there is a file extension hint
           Product: Libav
           Version: 9
          Platform: X86
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: Normal
         Component: libavcodec
        AssignedTo: bugzilla at libav.org
        ReportedBy: devyew at gmail.com


Created attachment 428
  --> https://bugzilla.libav.org/attachment.cgi?id=428
raw GSM audio file sample - first 2k bytes cut by dd

$ avprobe -v verbose -show_format -show_streams
avprobe-not-recognized-raw-gsm-partial-sm
avprobe version 9.6, Copyright (c) 2007-2013 the Libav developers
  built on Jun  8 2013 02:44:19 with Apple LLVM version 4.2 (clang-425.0.24)
(based on LLVM 3.2svn)
  configuration: --prefix=/usr/local/Cellar/libav/9.6 --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-nonfree
--enable-hardcoded-tables --enable-avresample --enable-vda --enable-gnutls
--enable-runtime-cpudetect --disable-indev=jack --cc=cc --host-cflags=
--host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame
--enable-libxvid --enable-avplay
  libavutil     52.  3. 0 / 52.  3. 0
  libavcodec    54. 35. 0 / 54. 35. 0
  libavformat   54. 20. 3 / 54. 20. 3
  libavdevice   53.  2. 0 / 53.  2. 0
  libavfilter    3.  3. 0 /  3.  3. 0
  libavresample  1.  0. 1 /  1.  0. 1
  libswscale     2.  1. 1 /  2.  1. 1
avprobe-not-recognized-raw-gsm-partial-sm: Invalid data found when processing
input
# avprobe output


$ cp avprobe-not-recognized-raw-gsm-partial-sm
avprobe-not-recognized-raw-gsm-partial-sm.gsm

$ avprobe -v verbose -show_format -show_streams
avprobe-not-recognized-raw-gsm-partial-sm.gsm
avprobe version 9.6, Copyright (c) 2007-2013 the Libav developers
  built on Jun  8 2013 02:44:19 with Apple LLVM version 4.2 (clang-425.0.24)
(based on LLVM 3.2svn)
  configuration: --prefix=/usr/local/Cellar/libav/9.6 --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-nonfree
--enable-hardcoded-tables --enable-avresample --enable-vda --enable-gnutls
--enable-runtime-cpudetect --disable-indev=jack --cc=cc --host-cflags=
--host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame
--enable-libxvid --enable-avplay
  libavutil     52.  3. 0 / 52.  3. 0
  libavcodec    54. 35. 0 / 54. 35. 0
  libavformat   54. 20. 3 / 54. 20. 3
  libavdevice   53.  2. 0 / 53.  2. 0
  libavfilter    3.  3. 0 /  3.  3. 0
  libavresample  1.  0. 1 /  1.  0. 1
  libswscale     2.  1. 1 /  2.  1. 1
[gsm @ 0x7fb55c006600] Estimating duration from bitrate, this may be inaccurate
Input #0, gsm, from 'avprobe-not-recognized-raw-gsm-partial-sm.gsm':
  Duration: 00:00:01.24, start: 0.000000, bitrate: 13 kb/s
    Stream #0.0: Audio: gsm, 8000 Hz, mono, s16, 13 kb/s
# avprobe output

[format]
filename=avprobe-not-recognized-raw-gsm-partial-sm.gsm
nb_streams=1
format_name=gsm
format_long_name=raw GSM
start_time=0.000000
duration=1.240000
size=2048.000000
bit_rate=13212.000000

[streams.stream.0]
index=0
codec_name=gsm
codec_long_name=GSM
codec_type=audio
codec_time_base=1/8000
codec_tag_string=[0][0][0][0]
codec_tag=0x0000
sample_rate=8000.000000
channels=1
bits_per_sample=0
avg_frame_rate=0/0
bit_rate=13200.000000
time_base=1/50
start_time=0.000000
duration=1.240000

$ ll avprobe-not-recognized-raw-gsm-partial-sm*
-rw-r--r--  1 ye  staff  2048 Aug 21 15:19
avprobe-not-recognized-raw-gsm-partial-sm
-rw-r--r--  1 ye  staff  2048 Aug 21 15:34
avprobe-not-recognized-raw-gsm-partial-sm.gsm
$ md5 avprobe-not-recognized-raw-gsm-partial-sm
avprobe-not-recognized-raw-gsm-partial-sm.gsm
MD5 (avprobe-not-recognized-raw-gsm-partial-sm) =
973f9c75e6f2868ecefa4c17470a9614
MD5 (avprobe-not-recognized-raw-gsm-partial-sm.gsm) =
973f9c75e6f2868ecefa4c17470a9614

-- 
Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list