[FFmpeg-user] Issue with -async parameter (and maybe with asf container)

Massimo Battistel battistel at gmail.com
Tue Jul 1 21:14:48 CEST 2014


I've found another sample causing an almost identical issue:

http://www.datafilehost.com/d/89098169

ffmpeg -i sample.mp2 -acodec pcm_s16le -async 2 -f null -

ffmpeg version N-64326-g46563af Copyright (c) 2000-2014 the FFmpeg
developers
  built on Jun 30 2014 22:02:05 with gcc 4.8.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-iconv --enable-libass --enable-libbluray
--enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm
--enable-libilbc --enable-libmodplug --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr
--enable-libspeex --enable-libtheora --enable-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      52. 90.101 / 52. 90.101
  libavcodec     55. 68.100 / 55. 68.100
  libavformat    55. 44.100 / 55. 44.100
  libavdevice    55. 13.101 / 55. 13.101
  libavfilter     4.  9.100 /  4.  9.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc    52.  3.100 / 52.  3.100
[mp3 @ 02eba020] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from 'sample.mp2':
  Duration: 00:25:16.45, start: 0.000000, bitrate: 222 kb/s
    Stream #0:0: Audio: mp2, 48000 Hz, stereo, s16p, 222 kb/s
-async is forwarded to lavfi similarly to -af
aresample=async=2:min_hard_comp=0.100000:first_pts=0.
[null @ 02894680] Using AVStream.codec.time_base as a timebase hint to the
muxer is deprecated. Set AVStream.time_base instead.
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf55.44.100
    Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
    Metadata:
      encoder         : Lavc55.68.100 pcm_s16le
Stream mapping:
  Stream #0:0 -> #0:0 (mp2 (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
size=N/A time=00:01:07.77 bitrate=N/A
size=N/A time=00:02:15.21 bitrate=N/A
size=N/A time=00:03:22.87 bitrate=N/A
size=N/A time=00:04:30.14 bitrate=N/A
size=N/A time=00:05:36.52 bitrate=N/A
size=N/A time=00:06:40.87 bitrate=N/A
size=N/A time=00:07:45.69 bitrate=N/A
size=N/A time=00:08:53.20 bitrate=N/A
size=N/A time=00:10:00.14 bitrate=N/A
size=N/A time=00:11:07.56 bitrate=N/A
size=N/A time=00:12:14.92 bitrate=N/A
size=N/A time=00:13:22.36 bitrate=N/A
size=N/A time=00:14:29.85 bitrate=N/A
size=N/A time=00:15:37.34 bitrate=N/A
size=N/A time=00:16:44.88 bitrate=N/A
size=N/A time=00:17:52.56 bitrate=N/A
size=N/A time=00:19:00.19 bitrate=N/A
size=N/A time=00:20:07.96 bitrate=N/A
[mp2 @ 028942a0] Header missing
Error while decoding stream #0:0: Invalid data found when processing input
[mp2 @ 028942a0] Header missing
Error while decoding stream #0:0: Invalid data found when processing input
[null @ 02894680] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 60228864 >= 0
[null @ 02894680] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 60228864 >= 1136
[pcm_s16le @ 02ebf080] Failed to allocate packet of size 240933696
Audio encoding failed (avcodec_encode_audio2)
Conversion failed!


Without "-async 2" everything run fine till the end.

thanks,
MB


More information about the ffmpeg-user mailing list