savonet / ocaml-ffmpeg

OCaml bindings to the FFmpeg library.
http://www.liquidsoap.info/ocaml-ffmpeg/
GNU Lesser General Public License v2.1
48 stars 12 forks source link

Output device write broken #32

Open gndl opened 5 years ago

gndl commented 5 years ago

The output device write is broken. Running the _audiodevice and player examples reproduces the problem.

lessp commented 4 years ago

Did you do any further digging here @gndl?

Trying the following for video:

input devices :
        avfoundation (AVFoundation input device)
        lavfi (Libavfilter virtual input device)

output devices :
        sdl,sdl2 (SDL2 output device)

Arguments (also tried hard coding e.g. "LG UltraFine Display Camera"):

avfoundation out2.mpg

Hitting the following:

[avfoundation @ 0x7fb1d001c000] No AV capture device found
[NULL @ 0x7fb1d0818c00] Opening 'avfoundation' for reading
[file @ 0x7fb1cfd14980] Setting default whitelist 'file,crypto'

EDIT:

Running ffmpeg by itself works fine, e.g. ffmpeg -framerate 30 -f avfoundation -i "LG UltraFine Display Camera" out2.mpg

gndl commented 4 years ago

No, i have never tested video capture.