timelapse icon indicating copy to clipboard operation
timelapse copied to clipboard

Timelapse Error [Errno 2] after stop recording

Open anandvip opened this issue 4 years ago • 18 comments

Timelapse Error [Errno 2] No such file or directory: 'ffmpeg':'ffmpeg'

System Information

  • Operating system:Mojave
  • Software version:10.14.6

anandvip avatar Apr 28 '20 06:04 anandvip

Make sure that you have ffmpeg installed (e.g. run brew install ffmpeg)

ItsThompson avatar Apr 28 '20 07:04 ItsThompson

Was wondering whether we should bundle ffmpeg with the app in order to avoid such scenarios. 🤔

mre avatar Apr 28 '20 07:04 mre

Is there anyway you can check if the computer has ffmpeg already installed and if there isn't then download it?

ItsThompson avatar Apr 28 '20 09:04 ItsThompson

This user got a notification about ffmpeg only after "stop recording". Maybe we should warn users at startup time, just after the final print statement below:

https://github.com/mre/timelapse/blob/a93b77b889e57c3b771edf7b6d135944db9e61fa/timelapse/main.py#L146-L156

cmangla avatar Apr 28 '20 09:04 cmangla

oh yeah. That print(not_found_msg) should be a notify, I guess. Wanna whip up a PR?

mre avatar Apr 28 '20 10:04 mre

Is there anyway you can check if the computer has ffmpeg already installed and if there isn't then download it?

Yeah that would be possible. Not sure if it's a bit too invasive, though. Hm...

mre avatar Apr 28 '20 10:04 mre

oh yeah. That print(not_found_msg) should be a notify, I guess. Wanna whip up a PR?

I remember some discussion in which we said that not_found_msg was too long for a notify, am I right?

cmangla avatar Apr 28 '20 12:04 cmangla

Heh, yeah maybe a shorter message would help.

mre avatar Apr 28 '20 13:04 mre

Hi, new user here.

I'm getting the same error as @anandvip. I did the brew install ffmpeg before first-use. I also tried brew reinstall ffmpeg. No dice.

Running Catalina 10.15.4 (19E287).

dnywh avatar Apr 30 '20 06:04 dnywh

Welcome @dannyalright, that's odd. What does ffmpeg --version give you on the commandline?

mre avatar Apr 30 '20 09:04 mre

@mre Perhaps we need to add shell=True to the line below in Encoder:

https://github.com/mre/timelapse/blob/a93b77b889e57c3b771edf7b6d135944db9e61fa/timelapse/encoder.py#L55-L56

Just a guess.

cmangla avatar Apr 30 '20 11:04 cmangla

Thanks, @mre!

ffmpeg version 4.2.2 is what I get in response to ffmpeg --version.

Here's the full response:

ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
  built with Apple clang version 11.0.3 (clang-1103.0.32.59)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2_3 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags=-fno-stack-check --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack
  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
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Unrecognized option '-version'.
Error splitting the argument list: Option not found

dnywh avatar Apr 30 '20 21:04 dnywh

Make sure that you have ffmpeg installed (e.g. run brew install ffmpeg)

I did, I can see the screen shots in recent files, some odd 1600 screen shots. how ever during installation ffmpeg did instruct to change the path for some of the files, which one? I don't know...

anandvip avatar May 10 '20 12:05 anandvip

Was wondering whether we should bundle ffmpeg with the app in order to avoid such scenarios. 🤔

Yes, that would be great!

anandvip avatar May 10 '20 12:05 anandvip

I have the same issue on macOS Monterey 12.4 any help would be appreciated.

ffmpeg 5.0.1_3 is already installed and up-to-date. Python 3.10.0

digidestination avatar Jul 17 '22 08:07 digidestination

What does

which ffmpeg

say?

What does this print?

python3 -c 'import shutil; print(shutil.which("ffmpeg"))'

mre avatar Jul 17 '22 22:07 mre

Was wondering whether we should bundle ffmpeg with the app in order to avoid such scenarios. 🤔 Yes, that would be great!

With the new M1 chips we'd end up bundling two versions of ffmpeg I guess: one for Intel Macs and one for arm64. :/ So I don't think we want to bundle ffmpeg after all...

mre avatar Jul 17 '22 22:07 mre

Hello and thank you for your reply, Both commands say this: /usr/local/bin/ffmpeg

digidestination avatar Jul 17 '22 22:07 digidestination