sipsorcery-org / SIPSorceryMedia.FFmpeg

GNU Lesser General Public License v2.1
33 stars 24 forks source link

Exception "No such file or directory" while initializing(FFmpegVideoDecoder->InitialiseSource) #25

Closed TonyZhu2015 closed 2 years ago

TonyZhu2015 commented 2 years ago

Thanks for all your effort and contribution to this open-source project. That I am able to build my project on top of your hard work. I try to use FFmpegCameraSource winVideoEP = new FFmpegCameraSource(FFmpegCameraManager.GetCameraDevices().First().Path); to get camera video stream. the it will report exception "No such file or directory". While WindowsVideoEndPoint winVideoEP = new(new FFmpegVideoEncoder()) works.

TonyZhu2015 commented 2 years ago

const string LIB_PATH = @"C:\ffmpeg-4.4.1-full_build-shared\bin"; // On Windows FFmpegInit.Initialise(logLevel: FfmpegLogLevelEnum.AV_LOG_TRACE, libPath: LIB_PATH); this will fix the above issue