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

*nix specific usage questions
tand
Blank Cone
Blank Cone
Posts: 13
Joined: 20 Feb 2012 16:18

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

Postby tand » 24 Feb 2012 17:38

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>

tand
Blank Cone
Blank Cone
Posts: 13
Joined: 20 Feb 2012 16:18

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

Postby tand » 05 Mar 2012 15:22

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"; + +

Rémi Denis-Courmont
Developer
Developer
Posts: 15229
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 06 Mar 2012 08:32

Adding the same option to the media object, probably.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

tand
Blank Cone
Blank Cone
Posts: 13
Joined: 20 Feb 2012 16:18

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

Postby tand » 07 Mar 2012 16:31

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...)?

tand
Blank Cone
Blank Cone
Posts: 13
Joined: 20 Feb 2012 16:18

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

Postby tand » 12 Mar 2012 13:42

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 :)


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 6 guests