patriciogonzalezvivo/glslViewer

Webcam input fails with "Failed to decode packet: End of file"

Opened this issue · 0 comments

My specs:
Macbook Pro M3, OSX Sonoma 14.4.1, glslViewer 3.30 (built from source)

Task:
Testing webcam input with shader example:
glslViewer -l test_video.frag --video 0

Issue:
Webcam input is shown inside of glslViewer for 1-2 frames but then immediately stops with following error:
Failed to decode packet: End of file

FFMPEG:

[AVFoundation indev @ 0x138005ea0] AVFoundation video devices:
**[AVFoundation indev @ 0x138005ea0] [0] FaceTime HD-Kamera
[AVFoundation indev @ 0x138005ea0] [1] Capture screen 0
[AVFoundation indev @ 0x138005ea0] [2] Capture screen 1**
[AVFoundation indev @ 0x138005ea0] AVFoundation audio devices:
[AVFoundation indev @ 0x138005ea0] [0] MacBook Pro-Mikrofon

Testing if webcam works: