WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] Vlc.tcz Web Interface (http)  (Read 8209 times)

Offline fodder

  • Newbie
  • *
  • Posts: 45
[SOLVED] Vlc.tcz Web Interface (http)
« on: January 11, 2013, 06:32:29 PM »
Problem: I cannot find or get the VLC http interface to work.
Questions:
  • Has that capability been stripped from this extension?
  • If so, is there anywhere I can get info on adding it back in?
  • If not, am I just doing something wrong?  :o

Details:
  • Clean USB thumbdrive install of TC 4.7.3 (created using a CorePlus CD)
  • Download and Load vlc.tcz (Only other extension installed is Firefox, for testing the http interface.)
  • Tools > Preferences > All > Main Interfaces, no "http" or "Web" listed. When I try to manually add http and save, then open prefs back up, http is no longer there.
  • I can see both libaccess_http_plugin.la and libaccess_http_plugin.so in /usr/local/lib/vlc/plugins/access/
  • No response from localhost:8080

Result of: vlc --intf dummy --extraintf http -v
Quote
VLC media player 2.0.4 Twoflower (revision 2.0.3-289-g6e6100a)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/access/libaccess_jack_plugin.so' (libjack.so.0: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/access/libdtv_plugin.so' (libdvbpsi.so.7: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/access/liblibbluray_plugin.so' (libbluray.so.1: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/access/liblinsys_sdi_plugin.so' (libzvbi.so.0: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/access/libpulsesrc_plugin.so' (libpulse.so.0: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/access/libv4l2_plugin.so' (libv4l2.so.0: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/audio_filter/libsamplerate_plugin.so' (libsamplerate.so.0: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/audio_output/libjack_plugin.so' (libjack.so.0: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/audio_output/libpulse_plugin.so' (libpulse.so.0: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/codec/libfluidsynth_plugin.so' (libfluidsynth.so.1: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/codec/libzvbi_plugin.so' (libzvbi.so.0: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/demux/libmod_plugin.so' (libmodplug.so.1: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/demux/libts_plugin.so' (libdvbpsi.so.7: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/misc/libgnutls_plugin.so' (libgnutls.so.28: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/mux/libmux_ts_plugin.so' (libdvbpsi.so.7: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/services_discovery/libpulselist_plugin.so' (libpulse.so.0: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/text_renderer/libsvg_plugin.so' (librsvg-2.so.2: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/video_output/libxcb_glx_plugin.so' (libGL.so.1: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/visualization/libgoom_plugin.so' (libgoom2.so.0: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot create /tmp/tcloop/vlc/usr/local/lib/vlc/plugins/plugins.dat.8593 (Read-only file system)
[0x9649128] main interface error: no suitable interface module
[0x95ce948] dummy interface: using the dummy interface module...

Any help and or suggestions would be greatly appreciated!

fodder
« Last Edit: January 22, 2013, 11:09:28 AM by fodder »

Offline AmatCoder

  • Full Member
  • ***
  • Posts: 179
    • AmatCoder Projects
Re: Vlc.tcz Web Interface (http)
« Reply #1 on: January 12, 2013, 03:32:16 PM »
As far as I know, web interface needs lua module and vlc extension was compiled without it, as you can see:

Code: [Select]
tc@box:~$ vlc -vv
VLC media player 2.0.4 Twoflower (revision 2.0.3-289-g6e6100a)
[0x81270c8] main libvlc debug: VLC media player - 2.0.4 Twoflower
[0x81270c8] main libvlc debug: Copyright © 1996-2012 VLC authors and VideoLAN
[0x81270c8] main libvlc debug: revision 2.0.3-289-g6e6100a
[0x81270c8] main libvlc debug: configured with ./configure  '--prefix=/usr/local' [...] '--disable-lua' [...]

Offline fodder

  • Newbie
  • *
  • Posts: 45
Re: Vlc.tcz Web Interface (http)
« Reply #2 on: January 14, 2013, 01:14:16 PM »
As far as I know, web interface needs lua module and vlc extension was compiled without it, as you can see:

Thanks so much for the reply.  You are correct that it requires the lua module - that is precisely what I was afraid of.

So the only way to get it to work would be to recreate the extension with a version compiled without "--disable-lua", correct? (I.e. there is no way to enable it in the existing extension?)

fodder

Offline AmatCoder

  • Full Member
  • ***
  • Posts: 179
    • AmatCoder Projects
Re: Vlc.tcz Web Interface (http)
« Reply #3 on: January 14, 2013, 03:26:49 PM »
So the only way to get it to work would be to recreate the extension with a version compiled without "--disable-lua", correct? (I.e. there is no way to enable it in the existing extension?)
No, recompilation is mandatory... :(

Offline fodder

  • Newbie
  • *
  • Posts: 45
Re: Vlc.tcz Web Interface (http)
« Reply #4 on: January 14, 2013, 03:38:13 PM »
It looks like the components for a full version have already been created, even though the completed extension is not available in the repo: http://tc-ext-tools.googlecode.com/svn/packages/vlc-full/

I'm reading up on how to use tc-ext-tools for the first time, any tips would be greatly appreciated!  :)
« Last Edit: January 14, 2013, 06:30:20 PM by fodder »

Offline AmatCoder

  • Full Member
  • ***
  • Posts: 179
    • AmatCoder Projects
Re: Vlc.tcz Web Interface (http)
« Reply #5 on: January 14, 2013, 03:53:50 PM »
Quick tutorial (step by step):

Code: [Select]
tce-load -i svn
svn checkout http://tc-ext-tools.googlecode.com/svn/trunk tc-ext-tools
cd tc-ext-tools
cp config.sample .config
./install.sh
svn checkout http://tc-ext-tools.googlecode.com/svn/packages/vlc-full
cd vlc-full
buildit

This should create a vlc-full.tcz extension.
« Last Edit: January 14, 2013, 03:58:23 PM by AmatCoder »

Offline fodder

  • Newbie
  • *
  • Posts: 45
Re: Vlc.tcz Web Interface (http)
« Reply #6 on: January 14, 2013, 06:28:57 PM »
AmatCoder, you have been very helpful, thanks so much for your time.

I'll be looking more into this tomorrow morning, but in case the error is something obvious to you, the creation process successfully got through configuration but failed compiling with these as the last few lines:

Code: [Select]
/usr/local/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make[5]: *** [libxcb_glx_plugin.la] Error 1
make[5]: Leaving directory `/home/tc/tc-ext-tools/storage/vlc-full/src/temp/vlc-2.0.4/modules/video_output'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/tc/tc-ext-tools/storage/vlc-full/src/temp/vlc-2.0.4/modules/video_output'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/tc/tc-ext-tools/storage/vlc-full/src/temp/vlc-2.0.4/modules/video_output'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/tc/tc-ext-tools/storage/vlc-full/src/temp/vlc-2.0.4/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tc/tc-ext-tools/storage/vlc-full/src/temp/vlc-2.0.4'
make: *** [all] Error 2

fodder
« Last Edit: January 18, 2013, 10:19:12 AM by fodder »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline fodder

  • Newbie
  • *
  • Posts: 45
Re: Vlc.tcz Web Interface (http)
« Reply #8 on: January 17, 2013, 07:07:13 PM »
Success!

Thanks again, AmatCoder, for all your help and tinypoodle for the tip. (Note: I ended up having to install both nvidia-glx-dev.tcz and nvidia-glx.tcz. Without nvidia-glx.tcz I got this error "/usr/bin/ld: cannot find -lGL".)

To help any others reading this, after the compilation process is complete the extension files are placed into /home/tc/tc-ext-tools/storage/.

To save your compiled extension for later use (without having to rebuild it), copy the .tcz, .tcz.dep, and .tcz.md5.txt files.  Then for future installs you can copy those files into your /tce/optional/ directory and install the extension using the "Load App Locally" option.

I do have one resulting question about dependencies: When installing locally, is there any way to have the dependencies download automatically?

In my searching I was unable to find much info on installing locally at all. For example, is there a tce-load command for local extensions?

Again, thanks for any help and/or points in the right direction.

fodder
 

« Last Edit: January 31, 2013, 03:39:23 PM by fodder »

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
Re: Vlc.tcz Web Interface (http)
« Reply #9 on: January 18, 2013, 03:10:30 AM »
why don't you submit it if you have a working full build of vlc

just add a note to changelog stating what you have done with your name included in paranthesis

Offline fodder

  • Newbie
  • *
  • Posts: 45
Re: Vlc.tcz Web Interface (http)
« Reply #10 on: January 22, 2013, 11:08:30 AM »
why don't you submit it if you have a working full build of vlc

just add a note to changelog stating what you have done with your name included in paranthesis

Sure, I was hesitant to consider that option because I didn't put the source files together myself - you did all the hard work and all I did was build the extension from your files.  :)  Actually, I also wondered if there was a reason that it was not already built and in the repo (like maybe it is not complete?) and I don't have the time to completely test it.

But since you recommend it I will certainly do so as soon as I get some time to research the submission process.

Thanks!
fodder



Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: [SOLVED] Vlc.tcz Web Interface (http)
« Reply #11 on: January 22, 2013, 11:19:40 AM »
Hi fodder
Quote
as soon as I get some time to research the submission process.
See:
http://wiki.tinycorelinux.net/wiki:creating_extensions
Go to the  Send to  section at the bottom of the page.

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: [SOLVED] Vlc.tcz Web Interface (http)
« Reply #12 on: January 25, 2013, 03:09:21 PM »
great, when it is ready I will test too to hear the midi through fluidsynth (currently it seems that it is not supported)

Offline fodder

  • Newbie
  • *
  • Posts: 45
Re: [SOLVED] Vlc.tcz Web Interface (http)
« Reply #13 on: January 31, 2013, 03:37:25 PM »
Alright, it has been submitted - hopefully I did everything correctly.  :)

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: [SOLVED] Vlc.tcz Web Interface (http)
« Reply #14 on: February 01, 2013, 06:18:26 PM »
when it is possible I will try and let you know how it went