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

Windows Issues #25

Closed
3 tasks
kmsquire opened this issue Aug 27, 2014 · 7 comments
Closed
3 tasks

Windows Issues #25

kmsquire opened this issue Aug 27, 2014 · 7 comments

Comments

@kmsquire
Copy link
Collaborator

From https://groups.google.com/d/msg/julia-dev/we55cgrenl0/d5IOUh7fBp8J:

  • without video="ThinkVantage Virtual Camera" I only got "malformed dshow input string". for folks who are not familiar with ffmpeg, this command will list the available devices:

    shell> ffmpeg -list_devices true -f dshow -i dummy

  • there are continuous "frame full"-related error messages that make the REPL unusable, as soon as opencamera is called. ctrl^C doesn't work.

  • the ImageView window gets stuck from time to time, and starts updating again as soon as I move the window. Probably a Tk thing, haven't tried Gtk version lately.

Cc: @ihnorton

@ihnorton
Copy link
Member

... I'll see if I can get any more info on 2 and 3. The first one is (probably?) just documentation.

@kmsquire
Copy link
Collaborator Author

This wasn't meant to shame you!

For 1, I'm planning to make a call to ffmpeg for now. If it's installed through BinDeps, can you give me the install path of the program? It's installed with the zip, but I don't know exactly where that's unpacked.

Not sure the best route if someone already has the libraries installed elsewhere. How likely is that, and do you have any suggestions?

@ihnorton
Copy link
Member

For me it is in %HOME%\.julia\v0.3\VideoIO\deps\ffmpeg-2.2.3-win64-shared\bin.

I tried using an API function like this:

using VideoIO
ctx = [AVFormat.avformat_alloc_context()]
infolist = [convert(Ptr{Ptr{AVDevice.AVDeviceInfo}}, C_NULL)]
AVDevice.avdevice_list_devices(pointer(ctx),pointer(infolist))

but ended up segfaulting (again and again..and then got distracted by backtrace issues on Windows).

Am I doing something obviously wrong there?

@ihnorton
Copy link
Member

Not sure the best route if someone already has the libraries installed elsewhere. How likely is that, and do you have any suggestions?

If it's in the PATH then calling it should just work. Otherwise the user probably has to set a config variable anyway, and the bin/ path should be inferrable.

@kmsquire
Copy link
Collaborator Author

Thanks Isaiah.

Regarding AVDevice.avdevice_list_devices, from the source, it looks like the iformat field of the AVFormatContext needs to be set first, although I don't know to what. I'll try to look into it when I have the time.

In the mean time, I'll check in something which shells out to the binary.

@kmsquire
Copy link
Collaborator Author

#26 should address the first issue, although I haven't tested it. Actually, I merged that pretty quickly, and probably should make more of an effort to find the binary if it isn't installed by WinRPM.

Regarding the call to AVDevice.avdevice_list_devices (which in theory is nicer than #26), I think that will be dependent on #27 for proper implementation.

@kmsquire
Copy link
Collaborator Author

kmsquire commented May 9, 2019

Covered by more recent issues (#146, #152)

@kmsquire kmsquire closed this as completed May 9, 2019
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

2 participants