Page 1 of 1

New npapi-vlc plugin, html and video/audio capture problem

Posted: 24 Feb 2012 17:38
by tand
When trying to display a video/audio capture device through npapi-vlc plugin in a chromium-browser only the video is displayed. The following html code is used. Any suggestions on how to get the alsa device into play would be appreciated (tested with vlc 1.1.12 and vlc 2.0.1). Arguments have been found OK when running vlc standalone (v. 1.1.12).
input-slave have been tested both with -- and : argument prefix.
Any suggestions would be appreciated!

Code: Select all

<!DOCTYPE HTML> <html lang="en"> <head> <meta charset=utf-8> <title>VLC video capture test with Chromoium browser</title> </head> <body> <embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2" width="720" height="576" id="vlc" mute="false" allowfullscreen="false" toolbar="false" target="v4l2:///dev/video0:width=720:height=576 --input-slave=alsa://hw:2,0"> </embed> <script language="Javascript"> <!-- var vlc = document.getElementById("vlc"); vlc.video.deinterlace.enable("blend"): //!--> </script> </body> </html>

Re: New npapi-vlc plugin, html and video/audio capture probl

Posted: 05 Mar 2012 15:22
by tand
I actually made a small tweak to check if I could fool the plugin to accept my alsa input. It worked, but there must be a better way to do it! :)

Code: Select all

--- a/npapi/vlcplugin_base.cpp +++ b/npapi/vlcplugin_base.cpp @@ -438,10 +438,14 @@ NPError VlcPluginBase::init(int argc, char* const argn[], char* const argv[]) ppsz_argv[ppsz_argc++] = "--no-video-title-show"; ppsz_argv[ppsz_argc++] = "--no-xlib"; + /* Just a quick and dirty test to check if I could get ALSA audio together with /dev/video0 (it seems to work) */ + ppsz_argv[ppsz_argc++] = "--input-slave=alsa://hw:2,0"; + +

Re: New npapi-vlc plugin, html and video/audio capture probl

Posted: 06 Mar 2012 08:32
by RĂ©mi Denis-Courmont
Adding the same option to the media object, probably.

Re: New npapi-vlc plugin, html and video/audio capture probl

Posted: 07 Mar 2012 16:31
by tand
Adding the same option to the media object, probably.
Have been trying to figure this out :)
Do you mean adding support for input-slave="alsa://hw:2,0" in the embedded object or just add it to the target line (didn't succeed so far...)?

Re: New npapi-vlc plugin, html and video/audio capture probl

Posted: 12 Mar 2012 13:42
by tand
Did a new patch but moved this to:
viewtopic.php?f=16&t=99075, as it now seems to move away a little bit from troubleshooting :)