Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Captions example doesn't work : ffmpeg exited with code 1 #70

Open
Huljo opened this issue Aug 1, 2018 · 3 comments
Open

Captions example doesn't work : ffmpeg exited with code 1 #70

Huljo opened this issue Aug 1, 2018 · 3 comments

Comments

@Huljo
Copy link

Huljo commented Aug 1, 2018

Hi,

Trying to use captions but the example provided doesn't work for me.

OS: Ubuntu 16.04.4 LTS
Node version : 8.10.0
ffmpeg installed

node examples/captions.js

ffmpeg process started: ffmpeg -i /tmp/videoshow-b125f69d-eee3-4f45-88a4-096e61661544 -i /tmp/videoshow-c85a6426-715e-4248-a07d-c3f7b1c41d6e -i /tmp/videoshow-1f9f34a7-5c64-4c54-8350-36ac46a608f9 -i /tmp/videoshow-e0202044-23ee-4efb-a9fb-55969a2f1312 -i /tmp/videoshow-7923838d-d2c9-40f2-ae36-d9891e6db7d7 -y -filter_complex concat=n=5:v=1:a=0 video.mp4

ffmpeg process started: ffmpeg -i /tmp/videoshow-6a7f0f60-3f4f-4c45-a3a5-62258d1725b2 -i /home/john/projects/videoshow/examples/../test/fixtures/song.mp3 -y -map 0:0 -map 1:0 -t 23 -af afade=t=in:ss=0:st=0:d=3 -af afade=t=out:st=20:d=3 -vf subtitles='/tmp/videoshow-490b9770-a7c7-4325-bd9a-1bb239857a0a.ass' video.mp4

Error: Error: ffmpeg exited with code 1: 
       at ChildProcess.<anonymous> (/home/john/projects/videoshow/node_modules/fluent-ffmpeg/lib/processor.js:182:22)
       at emitTwo (events.js:126:13)
       at ChildProcess.emit (events.js:214:7)
       at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
@Huljo Huljo changed the title Captions example doesn't work Captions example doesn't work : ffmpeg exited with code 1 Aug 1, 2018
@mifi
Copy link
Contributor

mifi commented Oct 4, 2018

captionStart: 2,
captionEnd: 3

should be milliseconds. maybe that's the problem

@MaximOrlovsky
Copy link

MaximOrlovsky commented Jan 9, 2019

Same error in OS X:

...$ node examples/captions.js 
ffmpeg process started: ffmpeg -i /var/folders/f3/tcsjqpr90gj2c4byfy0frkwr0000gp/T/videoshow-28f67795-dd90-4ad1-88ee-3febc807e1ad -i /var/folders/f3/tcsjqpr90gj2c4byfy0frkwr0000gp/T/videoshow-a2b3b4fd-49d1-450c-ae17-fa6f35f23b30 -i /var/folders/f3/tcsjqpr90gj2c4byfy0frkwr0000gp/T/videoshow-703e911a-47d9-405c-a456-aee6f2e05bac -i /var/folders/f3/tcsjqpr90gj2c4byfy0frkwr0000gp/T/videoshow-704a4778-2986-49dc-9339-e7b05a14155a -i /var/folders/f3/tcsjqpr90gj2c4byfy0frkwr0000gp/T/videoshow-2d712cf2-9c49-477e-9471-5209104cef58 -y -filter_complex concat=n=5:v=1:a=0 video.mp4
ffmpeg process started: ffmpeg -i /var/folders/f3/tcsjqpr90gj2c4byfy0frkwr0000gp/T/videoshow-6eee0e57-2ee6-4e17-8da3-092282dad2a7 -i /Users/max/videoshow/examples/../test/fixtures/song.mp3 -y -map 0:0 -map 1:0 -t 23 -af afade=t=in:ss=0:st=0:d=3 -af afade=t=out:st=20:d=3 -vf subtitles='/var/folders/f3/tcsjqpr90gj2c4byfy0frkwr0000gp/T/videoshow-e4a060c0-8973-4014-bd4c-e5666edb00d9.ass' video.mp4
Error: Error: ffmpeg exited with code 1: Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
Conversion failed!

    at ChildProcess.<anonymous> (/Users/user/videoshow/node_modules/fluent-ffmpeg/lib/processor.js:182:22)
    at ChildProcess.emit (events.js:182:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:238:12)

@mifi Removing

captionStart: 2,
captionEnd: 3

doesn't help.

@MaximOrlovsky
Copy link

Solution from #51 (comment) helped:

brew uninstall ffmpeg

brew install ffmpeg --with-chromaprint --with-fdk-aac --with-fontconfig --with-freetype --with-frei0r --with-game-music-emu --with-libass --with-libbluray --with-libbs2b --with-libcaca --with-libgsm --with-libmodplug --with-libsoxr --with-libssh --with-libvidstab --with-libvorbis --with-libvpx --with-opencore-amr --with-openh264 --with-openjpeg --with-openssl --with-opus --with-rtmpdump --with-rubberband --with-schroedinger --with-sdl2 --with-snappy --with-speex --with-tesseract --with-theora --with-tools --with-two-lame --with-wavpack --with-webp --with-x265 --with-xz --with-zeromq --with-zimg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants