Git Product home page Git Product logo

Comments (5)

brutella avatar brutella commented on May 23, 2024

Does it work when you explicitly set the frame rate to 25 in stream.go like this?

fmt.Sprintf(" -framerate 25") +

from hkcam.

MRvH88 avatar MRvH88 commented on May 23, 2024

No still getting the same message:

[avfoundation @ 0x7fadd8000000] Selected framerate (30.000000) is not supported by the device
[avfoundation @ 0x7fadd8000000] Supported modes:
[avfoundation @ 0x7fadd8000000] 160x120@[29.970000 29.970000]fps
[avfoundation @ 0x7fadd8000000] 160x120@[25.000000 25.000000]fps
[avfoundation @ 0x7fadd8000000] 160x120@[23.999981 23.999981]fps
[avfoundation @ 0x7fadd8000000] 160x120@[14.999993 14.999993]fps
[avfoundation @ 0x7fadd8000000] 176x144@[29.970000 29.970000]fps
[avfoundation @ 0x7fadd8000000] 176x144@[25.000000 25.000000]fps
[avfoundation @ 0x7fadd8000000] 176x144@[23.999981 23.999981]fps
[avfoundation @ 0x7fadd8000000] 176x144@[14.999993 14.999993]fps
[avfoundation @ 0x7fadd8000000] 320x240@[29.970000 29.970000]fps
[avfoundation @ 0x7fadd8000000] 320x240@[25.000000 25.000000]fps
[avfoundation @ 0x7fadd8000000] 320x240@[23.999981 23.999981]fps
[avfoundation @ 0x7fadd8000000] 320x240@[14.999993 14.999993]fps
[avfoundation @ 0x7fadd8000000] 352x288@[29.970000 29.970000]fps
[avfoundation @ 0x7fadd8000000] 352x288@[25.000000 25.000000]fps
[avfoundation @ 0x7fadd8000000] 352x288@[23.999981 23.999981]fps
[avfoundation @ 0x7fadd8000000] 352x288@[14.999993 14.999993]fps
[avfoundation @ 0x7fadd8000000] 640x480@[29.970000 29.970000]fps
[avfoundation @ 0x7fadd8000000] 640x480@[25.000000 25.000000]fps
[avfoundation @ 0x7fadd8000000] 640x480@[23.999981 23.999981]fps
[avfoundation @ 0x7fadd8000000] 640x480@[14.999993 14.999993]fps
[avfoundation @ 0x7fadd8000000] 960x540@[29.970000 29.970000]fps
[avfoundation @ 0x7fadd8000000] 960x540@[25.000000 25.000000]fps
[avfoundation @ 0x7fadd8000000] 960x540@[23.999981 23.999981]fps
[avfoundation @ 0x7fadd8000000] 960x540@[14.999993 14.999993]fps
[avfoundation @ 0x7fadd8000000] 1024x576@[29.970000 29.970000]fps
[avfoundation @ 0x7fadd8000000] 1024x576@[25.000000 25.000000]fps
[avfoundation @ 0x7fadd8000000] 1024x576@[23.999981 23.999981]fps
[avfoundation @ 0x7fadd8000000] 1024x576@[14.999993 14.999993]fps
[avfoundation @ 0x7fadd8000000] 1280x720@[29.970000 29.970000]fps
[avfoundation @ 0x7fadd8000000] 1280x720@[25.000000 25.000000]fps
[avfoundation @ 0x7fadd8000000] 1280x720@[23.999981 23.999981]fps
[avfoundation @ 0x7fadd8000000] 1280x720@[14.999993 14.999993]fps
default: Input/output error

I receive this message when opening the Home app and looking at the camera component.

from hkcam.

MRvH88 avatar MRvH88 commented on May 23, 2024

Had a second look at it and got it working (still get the above messages though). I changed the following to stream.go:

Added the line you mentioned:
fmt.Sprintf(" -framerate 25") +

Slashed out:
//fmt.Sprintf(" -framerate %d", s.framerate(video.Attributes)) +
//fmt.Sprintf(" -framerate %d", video.Attributes.Framerate) +

from hkcam.

brutella avatar brutella commented on May 23, 2024

FYI https://github.com/brutella/hkcam/blob/master/ffmpeg/stream.go#L153-L154

from hkcam.

MRvH88 avatar MRvH88 commented on May 23, 2024

Yes I also saw this, I tried changing it to 25 but did nothing so left it at 30.
Can confirm that it is working on a MacBook Pro 13" early 2011, however I do not have sound.
But if I read it correctly it is not yet implemented?

from hkcam.

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.