GithubHelp home page GithubHelp logo

Comments (6)

robin-siegl avatar robin-siegl commented on August 17, 2024

I got the same issue. Video not showing in the home app from apple.
The commands you wrote doesn't work for me as workaround.

from hkcam.

PvdGulik avatar PvdGulik commented on August 17, 2024

Do you get errors when you give the command ffmpeg -f v4l2 -i /dev/video0 -vf format=yuv420p -f v4l2 /dev/video1

With a other Webcam I don't need to give the specific command with -vf format=yuv420p, but the standard command works ffmpeg -f v4l2 -i /dev/video0 -codec:v copy -f v4l2 /dev/video1

But at the end, I always have to start the FFmpeg-command to get it working. Don't no why?

from hkcam.

robin-siegl avatar robin-siegl commented on August 17, 2024

No, didn't get any errors. I don't know if this is issue on my side, i already tried different homekit camera solutions. I always get the issue where the camera can't get a connection.

from hkcam.

PvdGulik avatar PvdGulik commented on August 17, 2024

I found a better solution: use in front of FFmpeg the following LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/libv4l/v4l1compat.so

So resulting in LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/libv4l/v4l1compat.so ffmpeg -f v4l2 -i /dev/video0 -codec:v copy -f v4l2 /dev/video1

Now only, how do I tell HKCAM to start with this?

from hkcam.

PvdGulik avatar PvdGulik commented on August 17, 2024

I’m sure there must be something wrong with the ffmpeg command which HKCam generates:

When I start the command as I mentioned before, ffmpeg -f v4l2 -i /dev/video0 -codec:v copy -f v4l2 /dev/video1 , I don’t get errors.

When HKCam is running and I open in the Homekit-app the camera, I get these logging errors.

But when HKCam is running and I give the command, ffmpeg -f v4l2 -i /dev/video0 -codec:v copy -f v4l2 /dev/video1, the streaming starts in the Homekit App.

So I’m searching where the command is build. What I see in the logging is: /usr/bin/ffmpeg [ffmpeg -f v4l2 -i /dev/video0 -codec:v copy -f v4l2 /dev/video1]
I think it should be: /usr/bin/ffmpeg [-f v4l2 -i /dev/video0 -codec:v copy -f v4l2 /dev/video1], so without the second ffmeg

What do you think?

from hkcam.

PvdGulik avatar PvdGulik commented on August 17, 2024

Solved, I'll publish a install instruction for Buster

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.