[libav-bugs] [Bug 575] New: Can't detect format of mp3 file

bugzilla at libav.org bugzilla at libav.org
Thu Oct 17 07:52:35 CEST 2013


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

           Summary: Can't detect format of mp3 file
           Product: Libav
           Version: git HEAD
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: general
        AssignedTo: bugzilla at libav.org
        ReportedBy: viacheslav.dukalskiy at f-secure.com


Libav cannot properly detect format of the input file if file extension is
missing.

For example, this command works fine:

$ avconv -threads 2 -y -i "01 Soundgarden_Live to Rise.mp3" -acodec libfaac -ab
64000 -ar 44100 -f mp4 /tmp/test.m4a

But if to rename a file "01 Soundgarden_Live to Rise.mp3" to e.g. "some.file",
it is failed:

$ avconv -threads 2 -y -i "some.file" -acodec libfaac -ab 64000 -ar 44100 -f
mp4 /tmp/test.m4a
avconv version 0.8.6-6:0.8.6-1~bpo60+1proj1, Copyright (c) 2000-2013 the Libav
developers
  built on Aug  7 2013 13:17:09 with gcc 4.4.5
some.file: Invalid data found when processing input



$ avconv -v 9 -loglevel 99
avconv version 0.8.3-6:0.8.3-1~bpo60+1proj1, Copyright (c) 2000-2012 the Libav
developers
  built on Jun 21 2012 15:54:53 with gcc 4.4.5
  configuration: --extra-version='6:0.8.3-1~bpo60+1proj1' --arch=amd64
--prefix=/usr --enable-vdpau --enable-bzlib --enable-frei0r --enable-gnutls
--enable-libcdio --enable-libgsm --enable-libschroedinger --enable-libspeex
--enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib
--enable-libvpx --enable-runtime-cpudetect --enable-libfreetype
--enable-libpulse --enable-libopenjpeg --enable-libfaac --enable-nonfree
--enable-gpl --enable-postproc --enable-swscale --enable-x11grab
--enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264
--enable-libdc1394 --enable-shared --disable-static
  libavutil    51. 22. 1 / 51. 22. 1
  libavcodec   53. 35. 0 / 53. 35. 0
  libavformat  53. 21. 0 / 53. 21. 0
  libavdevice  53.  2. 0 / 53.  2. 0
  libavfilter   2. 15. 0 /  2. 15. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  52.  0. 0 / 52.  0. 0
Hyper fast Audio and Video encoder
usage: avconv [options] [[infile options] -i infile]... {[outfile options]
outfile}...

Use -h to get full help or, even better, run 'man avconv'

-- 
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