Replies: 2 comments 10 replies
-
Should be able to use something like |
Beta Was this translation helpful? Give feedback.
1 reply
-
“FFmpeg process creation failed: spawn ffmpeg ENOENT” Somehow the plugin isn’t finding your copy of ffmpeg. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to add a USB Camera (Logitech C615) and found some code that allows me to view the video in Terminal however I can't figure out how to use this information to configure the Homebridge ffmpeg plugin. Can anyone help me with the next steps?
In Terminal I can list the audio and video input devices with the command: ffmpeg -f avfoundation -list_devices true -i ""
The first video device (index 0) is HD Webcam C615 and the second audio device (index 1) is HD Webcam C615. Other devices (iPhone) and streams are also listed.
The code below is sending an MPEG transport stream over UDP to the loopback address 127.0.0.1:9988
ffmpeg
-f avfoundation
-pix_fmt yuyv422
-video_size 320x240
-framerate 15
-i "0:1" -ac 2
-vf format=yuyv422
-vcodec libx264 -maxrate 2000k
-bufsize 2000k -acodec aac -ar 44100 -b:a 128k
-f rtp_mpegts udp://127.0.0.1:9988
When this code is executed, Terminal opens a window on my M1 MacMini running Sequoia 15.2 that shows the image and provides some options to change the background etc. (features found on FaceTime, Zoom, etc.)
This is some of the screen output displayed before the video stream is displayed...
Input #0, avfoundation, from '0:1':
Duration: N/A, start: 868857.695367, bitrate: N/A
Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 320x240, 15 fps, 15 tbr, 1000k tbn
Stream #0:1: Audio: pcm_f32le, 48000 Hz, stereo, flt, 3072 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (pcm_f32le (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x14667e400] using cpu capabilities: ARMv8 NEON
[libx264 @ 0x14667e400] profile High 4:2:2, level 1.3, 4:2:2, 8-bit
Output #0, rtp_mpegts, to 'udp://127.0.0.1:9988':
Metadata:
encoder : Lavf61.7.100
Stream #0:0: Video: h264, yuv422p(tv, progressive), 320x240, q=2-31, 15 fps, 90k tbn
Metadata:
encoder : Lavc61.19.100 libx264
Side data:
cpb: bitrate max/min/avg: 2000000/0/0 buffer size: 2000000 vbv_delay: N/A
Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp, 128 kb/s
Metadata:
encoder : Lavc61.19.100 aac
Beta Was this translation helpful? Give feedback.
All reactions