Giter VIP home page Giter VIP logo

Comments (27)

arkarkark avatar arkarkark commented on August 18, 2024 7

an alternative until this is fixed is

ffmpeg -f avfoundation -video_size 1280x720 -i "0" -vframes 1 "snapshot-$(date +%F-%T | tr : -).jpg"

from imagesnap.

nkirsch avatar nkirsch commented on August 18, 2024 4

+1 :(

Capturing image from device "<AVCaptureDALDevice: 0x7fe87ec16b50 [FaceTime HD Camera (Display)][0x4015000005ac1112]>"...%

10.13.1 (17B1003)
Mac mini (Late 2014)
Apple Thunderbolt Display (Intel Iris 1536 MB graphics)
imagesnap Version: 0.2.5

Light blinks, but no data saved. Works fine on my iMac, same build.

from imagesnap.

friedrichweise avatar friedrichweise commented on August 18, 2024 4

Version 2.6 is still broken. I just figured out, that Version 2.5 ist still working under macOS 10.13. You can download the executable via SourceForge:
https://netix.dl.sourceforge.net/project/iharder/imagesnap/ImageSnap-v0.2.5.tgz

from imagesnap.

Sangdol avatar Sangdol commented on August 18, 2024 4

Until it's fixed, this could be a quick and dirty solution:

imagesnap -t 10 -w 1 & sleep 3 && killall imagesnap

from imagesnap.

pocketrocket avatar pocketrocket commented on August 18, 2024 3

@arkarkark you had a typo missing the closing quote in the end... based on your solution + silencing the STDOUT and STDERR:
ffmpeg -f avfoundation -video_size 1280x720 -i "0" -vframes 1 "snapshot-$(date +%F-%T | tr : -).jpg" 1>/dev/null 2>&1

cc @manico

from imagesnap.

EdgarJeremy avatar EdgarJeremy commented on August 18, 2024 2

Same here on High Sierra (10.13.1) with FaceTime HD Camera.

Trying to capture on 1 sec interval it generates the output files very well.
imagesnap -t 1

But still don't work with one-time capture

from imagesnap.

memming avatar memming commented on August 18, 2024 2

Temporary solution if you're using homebrew: brew switch imagesnap 0.2.5

from imagesnap.

toshibochan avatar toshibochan commented on August 18, 2024 2

I was able to download from @friedrichweise link:
https://netix.dl.sourceforge.net/project/iharder/imagesnap/ImageSnap-v0.2.5.tgz

And I made 0.2.5 folder inside imagesnap folde and make bin folder in 0.2.5 folder and copy and paste imagesnap to the bin folder and run “brew switch imagesnap 0.2.5. And now work good

from imagesnap.

danodea avatar danodea commented on August 18, 2024

I'm on Sierra (10.12.6) and am seeing this same issue. From the docs it seems like it should be outputting a filename after the ellipsis, but that isn't happening. I installed an Xcode update today so I wonder if a new version of Xcode is the underlying issue.

from imagesnap.

juax335 avatar juax335 commented on August 18, 2024

I run into the same problem as peterhellberg (similar terminal output and no output file). I'm running on macOS High Sierra 10.13.1 on a MacBook Air (Early 2014). I recently reinstalled macOS and also XCode (Version 9.1). I installed (and uninstalled and reinstalled and uninstalled and reinstalled) imagesnap with brew I would be happy for every hint on solving this problem :).

from imagesnap.

akaped avatar akaped commented on August 18, 2024

Hello, I would like to join the "image now saved" group!
Same problem here MacBook Air 2012 and High Sierra.
When I open imagesnap I see the green light of my iSight blinking, but no file was generated.

from imagesnap.

lp74 avatar lp74 commented on August 18, 2024

The same happens here with both the FaceTime and the HD Pro C920 Web Cam;

imagenap 0.2.5 on macOS High SIerra 10.13.1

the command imagesnap -t 1 works with both the cameras.

from imagesnap.

manico avatar manico commented on August 18, 2024

@arkarkark Alternative how? Where do you run this?

from imagesnap.

arkarkark avatar arkarkark commented on August 18, 2024

@manico where I would previously type imagesnap I type in the command above.
you might need to brew install ffmpeg (just like you had to brew install imagesnap)

from imagesnap.

BarcoMasile avatar BarcoMasile commented on August 18, 2024
  • 1

from imagesnap.

mpk99 avatar mpk99 commented on August 18, 2024

that temporary solution didn't work for me. Is there any other way to make this work? How are those using ffmpeg to take a screenshot every 1 second for example?

imagesnap -t 1

i would normally use this, what's the equivalent for ffmpeg?

from imagesnap.

jonlorusso avatar jonlorusso commented on August 18, 2024

fwiw, I've got a fix for this:

Edit: Just noticed this is already addressed in this pull request.

from imagesnap.

Sangdol avatar Sangdol commented on August 18, 2024

@pocketrocket May I ask why you don't like my solution?

By the way, the ffmpeg command doesn't work for me for some reason. It makes this error, that's why I came up with that solution.

[avfoundation @ 0x7f8136802e00] Selected framerate (29.970030) is not supported by the device
[avfoundation @ 0x7f8136802e00] Supported modes:
[avfoundation @ 0x7f8136802e00]   1280x720@[1.000000 30.000000]fps
    Last message repeated 2 times
[avfoundation @ 0x7f8136802e00]   640x480@[1.000000 30.000000]fps
    Last message repeated 2 times
[avfoundation @ 0x7f8136802e00]   320x240@[1.000000 30.000000]fps
    Last message repeated 2 times
0: Input/output error

from imagesnap.

pocketrocket avatar pocketrocket commented on August 18, 2024

@Sangdol because it didn't work (as of a typo? as well... now as it's working I'll change my reaction to 👍 )

from imagesnap.

toshibochan avatar toshibochan commented on August 18, 2024

@friedrichweise how to install 0.2.5?

from imagesnap.

friedrichweise avatar friedrichweise commented on August 18, 2024

as @memming mentioned, use brew switch imagesnap 0.2.5

from imagesnap.

toshibochan avatar toshibochan commented on August 18, 2024

@friedrichweise thanks for replay.
When in run “brew switch imagesnap 0.2.5” give me:
Error: imagesnap does not have a version “0.2.5” in the Cellar

from imagesnap.

memming avatar memming commented on August 18, 2024

@toshibochan yeah, my trick only works if you have installed 0.2.5 in the past via homebrew. Perhaps just install 0.2.5 manually?

from imagesnap.

Wandmalfarbe avatar Wandmalfarbe commented on August 18, 2024

@toshibochan brew switch only switches to a version that was installed previously and is still on your drive. This Stack Overflow post discusses how to install old versions of homebrew formulas. Unfortunately the old formula is not available (and would point to a nonexistent download location).

It seems the only option is to install imagesnap manually then.

from imagesnap.

erickga avatar erickga commented on August 18, 2024

I brew uninstalled imagesnap(2.6) and copy paste /usr/local/bin imagesnap v2.5 file and it works now!

from imagesnap.

JayBrown avatar JayBrown commented on August 18, 2024

I always had 0.2.5 installed—v0.2.6 was never available via Homebrew—, and it still doesn't work. Didn't work on El Capitan 10.11.6, and now doesn't work on High Sierra 10.13.5.

EDIT: no, I actually have 0.2.6 installed, but imagesnap itself with imagesnap -h prints 0.2.5 as the version number.

from imagesnap.

dllahr avatar dllahr commented on August 18, 2024

👍 I'm having the same issue

edit: I found I had to add the -r 30 option to ffmpeg to get it to work - to set the framerate to 30. I think this is the problem @Sangdol (and possibly others) were having.

Here's the script I used to take images once per second using ffmpeg:

#!/bin/bash

for i in $(seq -f "%04g" 1 3600)
do
	fn=photo_$i.jpg
	echo $i $fn

	ffmpeg -f avfoundation -video_size 1280x720 -r 30 -i "0" -vframes 1 $fn
done

from imagesnap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.