unosquare / ffmediaelement

FFME: The Advanced WPF MediaElement (based on FFmpeg)
https://unosquare.github.io/ffmediaelement/
Other
1.17k stars 241 forks source link

7.x can not open device:// #675

Open LazyCuteLion opened 2 weeks ago

LazyCuteLion commented 2 weeks ago

i try this: device://dshow/?video=camera name device://gdigrab?desktop it does not work,but local file path is well.

Issue Categories

Version Information

Error

Direct Command 'Close' not accepted. Open media before closing or changing media. Direct Command 'Open' accepted. Perparing execution. Direct Command 'Open' entered Library.LoadFFmpeg: FFmpeg v7.0.1-full_build-www.gyan.dev Media URI will be updated. Input Format: gdigrab, Input Argument: desktop Format 'gdigrab' not found. Will use automatic format detection. “Unosquare.FFME.Common.MediaContainerException”( ffme.win.dll ) “Unosquare.FFME.Common.MediaContainerException”( ffme.win.dll ) Fatal error initializing MediaContainer instance. MediaContainerException: Could not open 'desktop'. Error -2: No such file or directory Stack Trace: Unosquare.FFME.Container.MediaContainer.StreamInitialize() “Unosquare.FFME.Common.MediaContainerException”(ffme.win.dll) Direct Command 'Open' execution error MediaContainerException: Could not open 'desktop'. Error -2: No such file or directory Stack Trace: 在 Unosquare.FFME.Container.MediaContainer.StreamInitialize() 在 Unosquare.FFME.Container.MediaContainer.Initialize() 在 Unosquare.FFME.Commands.CommandManager.CommandOpenMedia(IMediaInputStream inputStream, Uri streamUri) 在 Unosquare.FFME.Commands.CommandManager.<>c__DisplayClass47_0.b__0() EVENT START: MediaFailed EVENT START: MediaClosed Direct Command 'Open' completed. Result: False EVENT DONE : MediaFailed EVENT DONE : MediaClosed

Axel82 commented 5 days ago

I have the same problem with “Unosquare.FFME.Windows.Sample”. The open video is available, but if I want to get the webcam images, the following error appears: Error -2 : No such file or directory.

I've tried : avdevice://dshow/?video=0 and got the following error: 'Could not open 'avdevice://dshow/?video=0'. Error -1330794744 : Protocol not found'

Any ideas?