Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks
LazyCuteLion opened this issue Sep 19, 2024 · 6 comments
Open
2 tasks

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

LazyCuteLion opened this issue Sep 19, 2024 · 6 comments

Comments

@LazyCuteLion
Copy link

LazyCuteLion commented Sep 19, 2024

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

Issue Categories

  • Bug

Version Information

  • NuGet Package 7.0.361-beta.1

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
Copy link

Axel82 commented Oct 1, 2024

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?

@LazyCuteLion
Copy link
Author

@Axel82 i think ,it is "device://" ,not "avdevice://" .

@Axel82
Copy link

Axel82 commented Oct 15, 2024

I tried both, and nothing works fine

@LazyCuteLion
Copy link
Author

yes,7.x has this issues.
No way has been found yet

@MrBean2016
Copy link
Contributor

I do not know about your specific issues but this is from FFmpeg main repo.

"A new major release, FFmpeg 7.0 "Dijkstra", is now available for download.

...
This release is not backwards compatible, removing APIs deprecated before 6.0.
"

@LazyCuteLion
Copy link
Author

LazyCuteLion commented Nov 18, 2024

@Axel82 @MrBean2016
i got it. must call the method:FFmpeg.AutoGen.ffmpeg.avdevice_register_all()
i dot know what diffrence with old version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants