Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You need to do two _very basic_ things: 1) Make your code, often its main function, accept as command line argument the video's filename and place that into a variable that you pass to videoCapture, instead of a hardcoded filename 2) Use your operating system's tools to pass the selected file's path to the program. Depending on the OS and file browser, the options may include: configuring your app as default app for the video's file type, selecting Open with in the file browser's context menu, dragging the file into the app's icon, configuring a Send To link