transitive-bullshit / ffmpeg-concat

Concats a list of videos together using ffmpeg with sexy OpenGL transitions.
878 stars 115 forks source link

audioConcat.txt: No such file or directory #72

Open pixelchai opened 4 years ago

pixelchai commented 4 years ago

The ffmpeg-concat CLI gives an error when trying to concat two clips

Command:

ffmpeg-concat -t fade clips/000011.mp4 clips/000047.mp4 -O tmp -o out/out.mp4

Output:

{
  cmd: 'ffmpeg -i clips/000011.mp4 -y -loglevel info -pix_fmt rgba -start_number 0 tmp/scene-0-%012d.raw'
}
{
  cmd: 'ffmpeg -i clips/000047.mp4 -y -loglevel info -pix_fmt rgba -start_number 0 tmp/scene-1-%012d.raw'
}
{
  cmd: 'ffmpeg -ss 0.25 -i clips/000047.mp4 -y -acodec libmp3lame -vn -t 17.576 tmp/scene-1.mp3'
}
{
  cmd: 'ffmpeg -i clips/000011.mp4 -y -acodec libmp3lame -vn -t 17.843 tmp/scene-0.mp3'
}
init-frames: 24.826s
render 0%
render 1%
render 2%
render 2%
...
render 99%
render 99%
render-frames: 2.530s
created tmp/audioConcat.txt
ffmpeg -f concat -safe 0 -i tmp/audioConcat.txt -y tmp/audioConcat.mp3
failed to concat audio Error: ffmpeg exited with code 1: tmp/audioConcat.txt: No such file or directory

    at ChildProcess.<anonymous> (/usr/lib/node_modules/ffmpeg-concat/node_modules/fluent-ffmpeg/lib/processor.js:182:22)
    at ChildProcess.emit (events.js:315:20)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)  ffmpeg version n4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 9.3.0 (Arch Linux 9.3.0-1)
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
[concat @ 0x55fa86f981c0] Impossible to open 'tmp/tmp/scene-0.mp3'
tmp/audioConcat.txt: No such file or directory

ffmpeg-concat: 27.802s
concat error Error: ffmpeg exited with code 1: tmp/audioConcat.txt: No such file or directory

    at ChildProcess.<anonymous> (/usr/lib/node_modules/ffmpeg-concat/node_modules/fluent-ffmpeg/lib/processor.js:182:22)
    at ChildProcess.emit (events.js:315:20)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
(node:62502) UnhandledPromiseRejectionWarning: Error: ffmpeg exited with code 1: tmp/audioConcat.txt: No such file or directory

    at ChildProcess.<anonymous> (/usr/lib/node_modules/ffmpeg-concat/node_modules/fluent-ffmpeg/lib/processor.js:182:22)
    at ChildProcess.emit (events.js:315:20)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
(node:62502) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:62502) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

NB: 'created tmp/audioConcat.txt' is logged

Information about the input clips: first clip second clip

ghost commented 4 years ago

See #78