fluent-ffmpeg / node-fluent-ffmpeg

A fluent API to FFMPEG (http://www.ffmpeg.org)
MIT License
7.64k stars 874 forks source link

2 frames left in the queue on closing #1179

Open navinjethani opened 2 years ago

navinjethani commented 2 years ago

Version information

ffmpeg version N-47683-g0e8eb07980-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2018 the FFmpeg

Code to reproduce

ffmpeg -i /tmp/testvodafone_DR0000000004_V_20220406_180635_V_DR_IN_20220406_180827_180930.mp4 -y -filter:a volume=2.0 /tmp/no_tag_testvodafone_DR0000000004_V_20220406_180635_V_DR_IN_20220406_180827_180930.mp4



(note: if the problem only happens with some inputs, include a link to such an input file)

### Expected results
The volume should be increased by factor of 2 & result should be success

### Observed results
ERROR) convertMP4ToTSFULL(part1) stderr: ffmpeg version N-47683-g0e8eb07980-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg
  libavutil      56. 24.101 / 56. 24.101
  libavcodec     58. 42.100 / 58. 42.100
  libavformat    58. 24.100 / 58. 24.100
  libavdevice    58.  6.101 / 58.  6.101
  libavfilter     7. 46.101 /  7. 46.101
  libswscale      5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/testvodafone_DR0000000004_V_20220406_180635_V_DR_IN_20220406_180827_180930.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2022-04-06T18:09:30.000000Z
    com.android.version: 9
  Duration: 00:01:02.85, start: 0.000000, bitrate: 828 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, smpte170m), 1280x720, 728 kb/s, SAR 1:1 DAR 16:9, 18.30 fps, 30 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      creation_time   : 2022-04-06T18:09:30.000000Z
      handler_name    : VideoHandle
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 96 kb/s (default)
    Metadata:
      creation_time   : 2022-04-06T18:09:30.000000Z
      handler_name    : SoundHandle
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
Too many packets buffered for output stream 0:1.
[aac @ 0x5151500] Qavg: 915.973
[aac @ 0x5151500] 2 frames left in the queue on closing

https://user-images.githubusercontent.com/28238426/162064784-4e117b22-ab59-493e-b1b3-2de7e1604feb.mp4

Conversion failed!

### Checklist

<!-- you may delete that checklist when you have checked everything -->

* [ Y] I have read the [FAQ](https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/wiki/FAQ)
* [ Y] I tried the same with command line ffmpeg and it works correctly (hint: if the problem also happens this way, this is an ffmpeg problem and you're not reporting it to the right place)
* [ Y] I have included full stderr/stdout output from ffmpeg
hypo-thesis commented 1 year ago

+1