[FFmpeg-user] wav file detects h264 instead of pcm_s16le

Gijsbert De Haan gdehaan at haivision.com
Thu Apr 28 20:55:29 CEST 2016


Hi,

I have a WAV mono file with about 30s of samples but when I try to
convert it to ogg it fails:

$ ffmpeg -probesize 100 -i upload.wav -vn -y -f ogg upload.ogg
ffmpeg version 2.8.6-1ubuntu2 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.1 (Ubuntu 5.3.1-11ubuntu1) 20160311
  configuration: --prefix=/usr --extra-version=1ubuntu2
--build-suffix=-ffmpeg --toolchain=hardened
--libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl
--enable-shared --disable-stripping --disable-decoder=libopenjpeg
--disable-decoder=libschroedinger --enable-avresample
--enable-avisynth --enable-gnutls --enable-ladspa --enable-libass
--enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio
--enable-libflite --enable-libfontconfig --enable-libfreetype
--enable-libfribidi --enable-libgme --enable-libgsm
--enable-libmodplug --enable-libmp3lame --enable-libopenjpeg
--enable-libopus --enable-libpulse --enable-librtmp
--enable-libschroedinger --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora
--enable-libtwolame --enable-libvorbis --enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid
--enable-libzvbi --enable-openal --enable-opengl --enable-x11grab
--enable-libdc1394 --enable-libiec61883 --enable-libzmq
--enable-frei0r --enable-libx264 --enable-libopencv
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
[NULL @ 0x1cf62a0] too many reference frames 32
[NULL @ 0x1cf62a0] non-existing PPS 185 referenced
[h264 @ 0x1cf62a0] too many reference frames 32
    Last message repeated 5 times
[h264 @ 0x1cf62a0] slice type 32 too large at 161
[h264 @ 0x1cf62a0] decode_slice_header error
[h264 @ 0x1cf62a0] no frame!
[wav @ 0x1cf5360] Stream #0: not enough frames to estimate rate;
consider increasing probesize
[wav @ 0x1cf5360] decoding for stream 0 failed
[wav @ 0x1cf5360] Could not find codec parameters for stream 0 (Video:
h264 ([1][0][0][0] / 0x0001), none, 768 kb/s): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
upload.wav: could not find codec parameters
Input #0, wav, from 'upload.wav':
  Duration: 00:00:29.95, bitrate: 768 kb/s
    Stream #0:0: Video: h264 ([1][0][0][0] / 0x0001), none, 768 kb/s,
48k tbr, 48k tbn
Output #0, ogg, to 'upload.ogg':
Output file #0 does not contain any stream

Note I only specified -probesize 100 to limit the amount of messages
to copy/paste into this email, I have tried not specifying anything
and several large values for probesize and analyzeduration but it did
not help.
This file was generated in Javascript in a browser, I have many of
these files but this is the only one that fails to convert.
Here is an example output of a working file conversion:

$ ffmpeg -probesize 100 -i upload.works.wav -vn -y -f ogg upload.works.ogg
ffmpeg version 2.8.6-1ubuntu2 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.1 (Ubuntu 5.3.1-11ubuntu1) 20160311
  configuration: --prefix=/usr --extra-version=1ubuntu2
--build-suffix=-ffmpeg --toolchain=hardened
--libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl
--enable-shared --disable-stripping --disable-decoder=libopenjpeg
--disable-decoder=libschroedinger --enable-avresample
--enable-avisynth --enable-gnutls --enable-ladspa --enable-libass
--enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio
--enable-libflite --enable-libfontconfig --enable-libfreetype
--enable-libfribidi --enable-libgme --enable-libgsm
--enable-libmodplug --enable-libmp3lame --enable-libopenjpeg
--enable-libopus --enable-libpulse --enable-librtmp
--enable-libschroedinger --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora
--enable-libtwolame --enable-libvorbis --enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid
--enable-libzvbi --enable-openal --enable-opengl --enable-x11grab
--enable-libdc1394 --enable-libiec61883 --enable-libzmq
--enable-frei0r --enable-libx264 --enable-libopencv
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
Guessed Channel Layout for  Input Stream #0.0 : mono
Input #0, wav, from 'upload.works.wav':
  Duration: 00:00:29.95, bitrate: 768 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 1
channels, s16, 768 kb/s
Output #0, ogg, to 'upload.works.ogg':
  Metadata:
    encoder         : Lavf56.40.101
    Stream #0:0: Audio: vorbis (libvorbis), 48000 Hz, mono, fltp
    Metadata:
      encoder         : Lavc56.60.100 libvorbis
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le (native) -> vorbis (libvorbis))
Press [q] to stop, [?] for help
size=     201kB time=00:00:29.95 bitrate=  54.9kbits/s
video:0kB audio:195kB subtitle:0kB other streams:0kB global
headers:3kB muxing overhead: 2.795864%

I have tried to specify -f wav before -i filename (ie ffmpeg -f wav -i
upload.wav -vn -y -f ogg upload.ogg) but same error output.
Is there a way to turn off the format probe?

Thanks,
Gus


More information about the ffmpeg-user mailing list