SIPSorceryMedia.FFmpeg icon indicating copy to clipboard operation
SIPSorceryMedia.FFmpeg copied to clipboard

OnVideoSourceRawSampleFaster event is not firing on Linux (Ubuntu 22.04)

Open mail2mhossain opened this issue 1 year ago • 0 comments

ffmpeg -> ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers

v4l2-ctl --list-devices:

WebCam C170: WebCam C170 (usb-0000:00:14.0-10):

/dev/video0 /dev/video1 /dev/media0

FFmpegInit.Initialise(FfmpegLogLevelEnum.AV_LOG_VERBOSE, linux_path) is working fine. path is /usr/lib/x86_64-linux-gnu. There no error to initiaze ffmpeg

private FFmpegCameraSource _videoSource;

_videoSource = new FFmpegCameraSource(camPath); //here camPath is /dev/video1 _videoSource.OnVideoSourceRawSampleFaster += _videoSource_OnVideoSourceRawSampleFaster; _videoSource.OnVideoSourceError += _videoSource_OnVideoSourceError; _videoSource.StartVideo().Wait();

There is no error on above code execution.

BUT OnVideoSourceRawSampleFaster event is not firing. But it is working on Windows.

RawImageToAnyBitmap.zip

mail2mhossain avatar May 07 '23 06:05 mail2mhossain