Lars_MQ Posted July 24, 2008 Share Posted July 24, 2008 (edited) How to install the lttle helper. First of all you need to create a share on the windows PC and add it to the Mediasources of the popcorn hour. Important: do not use notepad to edit these files, use an editor capable of handling the linux compatible format (proton - a editor in german http://www.qhaut.de/forums/index.php?autom...tail&f_id=5 or editPad lite http://www.editpadpro.com/editpadlite.html). 1. Download and unzip the attached archive into your previously created share on your windows PC. 2. Open DVBViewer.html and replace {your server} and {your windows share name} with the data from your windows PC (examples: 192.168.1.7:DVBViewer or myPC:myShare). 3. Open script.cgi and replace {your server} and {your sharename} with the apropriate names. On Vista you may have to replace username=guest with username=root and if your share is read/write you may also need to replace ",ro" with ",rw". 4. Open the DVBViewer.html on your Popi and press enter. You should see a message "Lircbeamer started on your popi...". Now you can select a channel in the DVBViewer pages and switch up and down with the up/down keys. You have to repeat Point 4 everytime you start your Popi new. Know limitations: - You will see the warning sign if you press up/down. This can not be influenced for now. Background The tool captures all remote key presses (from lirc) and sends them via tcp to connected clients. When the Popi requests streaming from the service it automatcally connects to the tool and processes the keypresses. On streaming stop the service disconnects from the tool so it doesn't interfere with the handling in gaya. The original Popcornhour thread popi.zip Edited February 22, 2009 by Lars_MQ Updated Link to comment
buttonsNI. Posted July 25, 2008 Share Posted July 25, 2008 (edited) lars could you give a bit more detail in how to set this up and what it means ( i am a novice) and have never used the recording service can you explain is this . how do the recording service and this " little helper"interact with eachother........and how do i access the webinterface or is that another plugin needed i have an internal harddrive on the popcorn and use the netstreamer sucessfully. i have been able to copy files into the popcorn by detecting it on my nework,transfering the file over to network by copy and paste from my pc to the popi ie\\PCH-A100\share\.... you say to create a share on windows .The share that i am using is on the the network ie \\PCH-A100\share\..... is this what you mean? also on my popcorn it says at media source "Hard-Drive" where i then go into its contents i am confused when you say "replace {your share as displayed on the popi} with the name exactly as it is displayed on the Popi Media Source screen" i have used "editpad pro" to enter the html but an not sure what i name i should be using to change <a href="http://localhost.drives:8883/[sMB]%20{Hard-Drive}/script.cgi">lircbeamer</a> i have change it to "Hard-Drive" but this is the area where im confused...... also in the script i have change to this "mount -t cifs //{Butler-Home-PC}/{PCH-A100} /etc/DVBViewer/ -o username=ROOT,rW;" (im using vista) where "butler-home" is the name on my pc/server you say to create a share on windows .The address of the share that i am using is on the the network is \\PCH-A100\share\..... at the script should i change {PCH-A100} to {\\PCH-A100\share} also when this has been correctly setup do i stop using netstreamer ie. deactivate it i am definately confused so your help to define with more detail in what to do would be greatly appreciated many thanks Edited July 25, 2008 by buttonsNI. Link to comment
Lars_MQ Posted July 25, 2008 Author Share Posted July 25, 2008 No I mean a share on the WindowsPC. You got to get access from the Popcorn hour to the WindowsPC. You know how to create a share on a WindowsPC and then import it on the Popcorn hour via settings -> Network Share? This procedure is only for smb shares (means windows based network shares), it will not work for the local HD, the scripts and the html must be changed for it (and no, I don't know what to do there ). Link to comment
buttonsNI. Posted July 25, 2008 Share Posted July 25, 2008 (edited) No I mean a share on the WindowsPC. You got to get access from the Popcorn hour to the WindowsPC. You know how to create a share on a WindowsPC and then import it on the Popcorn hour via settings -> Network Share? This procedure is only for smb shares (means windows based network shares), it will not work for the local HD, the scripts and the html must be changed for it (and no, I don't know what to do there ). ok nearly there but can you explain this " On Vista you may have to replace username=guest with username=root and if your share is read/write you may also need to replace ",ro" with ",rw". Edited July 25, 2008 by buttonsNI. Link to comment
Lars_MQ Posted July 25, 2008 Author Share Posted July 25, 2008 well first try it the way it is, and if this doesn't work, you may have to change the mentioned stuff in the script.cgi file.just change one at a time and test it. Link to comment
buttonsNI. Posted July 25, 2008 Share Posted July 25, 2008 well first try it the way it is, and if this doesn't work, you may have to change the mentioned stuff in the script.cgi file.just change one at a time and test it. when you say username = root/guest what do you mean what other plugins do i need ......i have webserver and recording service and what is the ip address of these other plugins. i have them all at 0.0.0.0. Link to comment
Lars_MQ Posted July 25, 2008 Author Share Posted July 25, 2008 you only need the recording service. You should see it in the sources section of the popcorn hour. Everything is integrated in the service. when you say username = root/guest what do you mean in the script.cgi mount -t cifs //192.168.0.4/capture /etc/DVBViewer/ -o username=guest,ro; Note the "//192.168.0.4/capture" is ONLY for demo purposes. Only the bold part is of interesst. Link to comment
buttonsNI. Posted July 25, 2008 Share Posted July 25, 2008 you only need the recording service. You should see it in the sources section of the popcorn hour. Everything is integrated in the service.in the script.cgi Note the "//192.168.0.4/capture" is ONLY for demo purposes. Only the bold part is of interesst. ive tried everything seriously .but i havnt got a step closer to getting this working a step by step guide for dummies is what i need . ill leave it with you thanks but im giving up Link to comment
Lars_MQ Posted July 26, 2008 Author Share Posted July 26, 2008 Well to be honest, there is not much more to do. We'll try for the easy part: Download the current recordingservice and install it. make sure it works especially the web interface part. rightclick on traysymbol -> webinterface. This should open the webbrowser (for username and passwort see the svcreadme in the DVBViewer programmgroup). If it shows up, it is working and you can close the webbrowser again. add the "DVBVservice.exe" to your firewall accesslist and allow at least access to the internal network for it. Turn on your popcorn hour and go to sources and wait a bit. you should see DVBViewer in the list of sources. This way zapping is not supported. For zapping you have to follow the steps in the first post. Zapping means: changing channels with the up/down remote key while watching liveTV. No zapping supported means: you have to press the stop key to exit LiveTV and select another channel to start LiveTV again. Link to comment
Kurben Posted July 26, 2008 Share Posted July 26, 2008 (edited) Great work, I have it working now and it looks very promising! [Deleted] Also a very small cosmetic detail, the background is tiled when viewed on a widescreen tv. Edited July 26, 2008 by Griga Violation of forum rules Link to comment
Kurben Posted July 26, 2008 Share Posted July 26, 2008 Great work, I have it working now and it looks very promising! [Deleted] Also a very small cosmetic detail, the background is tiled when viewed on a widescreen tv. Oopps, didn't think about those rules, then how should I put it, some plugins do not work when streaming? Also noticed that when using the configuation page it does not work after saving, had to go back to the PC and restore the settings. Link to comment
Lars_MQ Posted July 26, 2008 Author Share Posted July 26, 2008 Please respect our forum rules. And DO read the service readme. you understand the workings and handling of the service much better by reading the changelog . As for display or handling problems, we have to work together on it (at least the display stuff) because i can not test some things with my setup. And remember it's just the first step Link to comment
Kurben Posted July 26, 2008 Share Posted July 26, 2008 Thank you! It works flawless now! I will write a much more detailed guide with screenshots on how I did the whole installation process and post it on the Networkmedia tank forum later. One more bug noticed, when changing audio track to AC3 (on a channel with both) I get a very "Choppy" audio playback and the audio is not in sync with the video. My reciver switches between mpeg and AC3 on and off every second. I have set the "Patch AC3 for popcornhour" in the Netstreaming plugin. Also the popcorn say it recives a DTS stream?? Eventhou it is AC3. I also tried a workaround on the tiled background and changed the size of the xp.jpg picture from 720x576 to 1280x720 but to no avail. Still the same. Also looked at the code in the ..SVCweb\popi and tried to find any hints on the background but found nada.. Link to comment
Kurben Posted July 26, 2008 Share Posted July 26, 2008 Hey the AC3 works if I disable the "Patch AC3 for popcorn" in the netstreaming plugin! Link to comment
bosse Posted July 26, 2008 Share Posted July 26, 2008 Well to be honest, there is not much more to do. We'll try for the easy part: Download the current recordingservice and install it. make sure it works especially the web interface part. rightclick on traysymbol -> webinterface. This should open the webbrowser (for username and passwort see the svcreadme in the DVBViewer programmgroup). If it shows up, it is working and you can close the webbrowser again. add the "DVBVservice.exe" to your firewall accesslist and allow at least access to the internal network for it. Turn on your popcorn hour and go to sources and wait a bit. you should see DVBViewer in the list of sources. This way zapping is not supported. For zapping you have to follow the steps in the first post. Zapping means: changing channels with the up/down remote key while watching liveTV. No zapping supported means: you have to press the stop key to exit LiveTV and select another channel to start LiveTV again. Perhaps I have missed something? The popcorn does list DVBViewer as a source but nothing happends when I try to run it (request cannot be processed). I have installed the rec service and also the netstreaming plugin files in the different plugins1 folders. Can I use any port I like for this (i used port 1234)? Am I supposed to get a web GUI when running DVBViewer from the popcorn and from there choose a channel? Apparently I can watch Live TV from another Vista computer through this web GUI. Have disabled UAC and also tried without usr/pwd for the web GUI... I´m sure this excellent zapping feature will work when I do get this web GUI working (says Lircbeamer started on your popi...) /Regs Anders Link to comment
Lars_MQ Posted July 26, 2008 Author Share Posted July 26, 2008 You don't need the netstreaming plugin. Everything is done inside the recording service, there are no additional plugins needed. The internal version of the "netstreaming plugin" does automatically detect a popi connection and applies everything needed. The next firmware update of the popi will detect AC3 correctly, so this workaround is not needed anymore then. Link to comment
Lars_MQ Posted July 26, 2008 Author Share Posted July 26, 2008 The popcorn does list DVBViewer as a source but nothing happends when I try to run it (request cannot be processed). Please check your firewall on the windowsPC. The service must have free access on the local network (subnet) where the popi also resides. Link to comment
bosse Posted July 26, 2008 Share Posted July 26, 2008 Please check your firewall on the windowsPC. The service must have free access on the local network (subnet) where the popi also resides. Doesn´t seem to be a FW issue. I got i working now when i manually open http://serverip/popi/index.html from popi. Zapping working great, thanks a bunch, keep up the good work Link to comment
Lars_MQ Posted July 26, 2008 Author Share Posted July 26, 2008 Doesn´t seem to be a FW issue. ohoh. How many network cards are there in your windowsPC? Link to comment
bosse Posted July 26, 2008 Share Posted July 26, 2008 ohoh. How many network cards are there in your windowsPC? hehe too many 2 NIC+some VMware + some loopback interfaces. Tried to set specific IP instead of 0.0.0.0 in ordinary web GUI config but that didn´t help Link to comment
Lars_MQ Posted July 26, 2008 Author Share Posted July 26, 2008 No the ssdp is hidden from access. But the multiple nics are the problem. I'm on it. Link to comment
buttonsNI. Posted July 26, 2008 Share Posted July 26, 2008 (edited) lars hi thanks for the step by step guide it helped alot and can now see and access viewer on popi but when i go to select a channel there is no picture "couldnot play" appears do you know what i am doing wrong? sorry i think having the viewer open on pc was stopping the video upstairs on the popi ...working now Edited July 26, 2008 by buttonsNI. Link to comment
buttonsNI. Posted July 26, 2008 Share Posted July 26, 2008 so ok this is working is this a basic set up at present lars ...features like favourite channels ,,,will these be added sometime .at the minute i have to browse a thousand channels to get the one im looking for .......or have i missed something? also the zapping if i do get to work out how to do it ,will i have to go into the share//popi file everytime to use this zapping feature . at the minute the DVBViewer is visable at the media source if the zapper works do i open the viewer up from the share//popi/viewer.html Link to comment
Lars_MQ Posted July 26, 2008 Author Share Posted July 26, 2008 You have to start the zapping helper once after every starting/restarting of the popcorn hour. is this a basic set up at present lars Yes it is. As I said several times, it's just the first step. Link to comment
buttonsNI. Posted July 26, 2008 Share Posted July 26, 2008 You have to start the zapping helper once after every starting/restarting of the popcorn hour. Yes it is. As I said several times, it's just the first step. ok mate thats cool enough for me ..i shall look forward to this progressing Link to comment
buttonsNI. Posted July 26, 2008 Share Posted July 26, 2008 (edited) can anyone give example of their settings to enable the zapper to work .......ie what they have edited using edit pro inside to DVBViewer.html and the script also how do reset the script to open with the orginal shell command thanks Edited July 26, 2008 by buttonsNI. Link to comment
buttonsNI. Posted July 27, 2008 Share Posted July 27, 2008 im experiencing a problem using the dvbservice on popi........it works for a while then it stops ,,,it views a few channels for a short time perfect .able to switch from one to another . then it stops .it cant open any more channels .even the channels it was able to view are now enabled ..i have to reset any ideas is it a port or router problem? Link to comment
converge Posted July 28, 2008 Share Posted July 28, 2008 can anyone give example of their settings to enable the zapper to work .......ie what they have edited using edit pro inside to DVBViewer.html and the scriptalso how do reset the script to open with the orginal shell command thanks this works for me: DVBViewer.html <a href="http://localhost.drives:8883/[sMB]%20192.168.1.66:PCH/script.cgi">lircbeamer</a> 192.168.1.66:PCH needs to be adjusted according to your settings displayed in the PCH's source menu. script.cgi #!/bin/sh echo "Content-Length: 30"; echo "Content-type: text/html"; echo ""; cd ~ mkdir /etc/DVBViewer 2>/dev/null mount -t cifs //192.168.1.66/PCH /etc/DVBViewer/ -o username=guest,ro; cp /etc/DVBViewer/lircbeamer /usr/bin; sh -c /etc/DVBViewer/startlb 2>/dev/null & echo "Lircbeamer started on your popi..........."; exit 0;[/code] Just insert the share you want to mount like you would in any other Linux environment. Link to comment
converge Posted July 28, 2008 Share Posted July 28, 2008 is it possible to only display the favorites in the channel menu yet? when I try to activate this options in the settings menu the recording service crashes. Link to comment
Lars_MQ Posted July 28, 2008 Author Share Posted July 28, 2008 no, not possible, the service first has to learn what favorites are Link to comment
buttonsNI. Posted July 28, 2008 Share Posted July 28, 2008 this works for me: DVBViewer.html <a href="http://localhost.drives:8883/[sMB]%20192.168.1.66:PCH/script.cgi">lircbeamer</a> 192.168.1.66:PCH needs to be adjusted according to your settings displayed in the PCH's source menu. script.cgi #!/bin/sh echo "Content-Length: 30"; echo "Content-type: text/html"; echo ""; cd ~ mkdir /etc/DVBViewer 2>/dev/null mount -t cifs //192.168.1.66/PCH /etc/DVBViewer/ -o username=guest,ro; cp /etc/DVBViewer/lircbeamer /usr/bin; sh -c /etc/DVBViewer/startlb 2>/dev/null & echo "Lircbeamer started on your popi..........."; exit 0;[/code] Just insert the share you want to mount like you would in any other Linux environment. I am having no luck whats so ever this is my text ,im using vistax64 <a href="http://localhost.drives:8883/[sMB]%20NMT@smb://PCH-100/share/script.cgi">lircbeamer</a> mount -t cifs //192.168.1.64/PCH-A100/etc/DVBViewer/ -o username=root,rw; the name on my mapped network connection is " share (//PCH-A100) (N.) " with 'N' being the letter i assigned to the new network drive should i replace mount -t cifs //192.168.1.64/PCH-A100/etc/DVBViewer/ -o username=root,rw; with this mount -t cifs //192.168.1.64/share (//PCH-A100)/etc/DVBViewer/ -o username=root,rw; i am getting stuck somewhere and i think its the above mentioned... Link to comment
Lars_MQ Posted July 28, 2008 Author Share Posted July 28, 2008 You MUST mount (connect) the WINDOWS PC to the popcorn hour not the popcorn hour to the pc. Have a look here and read "Sharing a Folder or Printer in Windows Vista". Link to comment
converge Posted July 28, 2008 Share Posted July 28, 2008 (edited) @buttonsNI. there must be a space between share and mount point in the mount command, i.e. mount -t cifs //192.168.1.64/PCH-A100 /etc/DVBViewer/ -o username=root,rw Edited July 28, 2008 by converge Link to comment
Lars_MQ Posted July 28, 2008 Author Share Posted July 28, 2008 It just doesn't add up <a href="http://localhost.drives:8883/[sMB]%20NMT@smb://PCH-100/share/script.cgi">lircbeamer</a> why do you change around everything? 20NMT@smb: what's that for? Authentification? cann it, you want to get it up'n'running and not fiddle around with mysterious vista authentfication why don't you simply stick to one naming concept: //PCH-100/share <-> //192.168.1.64/PCH-A100/ It really just that simple as described 2 or 3 times now. don't try to outsmart the system, just do as been told. it works for everybody else. Even for me on second try I take the //192.168.1.64/PCH-A100/ is the path to your share on the windows pc. Make sure NO authentfication (username/password) is needed to access this share. on the popcorn hour network setup page just connect it this way (only IP no server name). In the media sources you should see it like this: //192.168.1.64:PCH-A100 and now you put it into the html file <a href="http://localhost.drives:8883/[SMB]%20192.168.1.64:PCH-A100/script.cgi">lircbeamer</a> Link to comment
buttonsNI. Posted July 29, 2008 Share Posted July 29, 2008 You MUST mount (connect) the WINDOWS PC to the popcorn hour not the popcorn hour to the pc. Have a look here and read "Sharing a Folder or Printer in Windows Vista". first of all the created share is in the 'pch-a100' not the 'pc-home' in the network connection page....................i have mapped this 'share folder'...........is this correct? or should it be a 'share'in the 'pc-home'? if its in the 'pc-home' the shared folder does not appear up on the popi...(no contents on server) if it should be in the 'pc-home' do i have to create a guest account because the popi is not on the list of people to share to or do i share with 'everyone'? second these connections are mapped arnt they? thirdly have i got this correct all along but just have the wrong setting in for the zapper LARS?? at the minute i can see the popi from the pc but cannot see the pc from the popi.... Link to comment
buttonsNI. Posted July 29, 2008 Share Posted July 29, 2008 first of all the created share is in the 'pch-a100' not the 'pc-home' in the network connection page....................i have mapped this 'share folder'...........is this correct? or should it be a 'share'in the 'pc-home'? if its in the 'pc-home' the shared folder does not appear up on the popi...(no contents on server) if it should be in the 'pc-home' do i have to create a guest account because the popi is not on the list of people to share to or do i share with 'everyone'? second these connections are mapped arnt they? thirdly have i got this correct all along but just have the wrong setting in for the zapper LARS?? at the minute i can see the popi from the pc but cannot see the pc from the popi.... ok i got the pc connected to the popi by use of public sharing for some reason sharing a single file/folder was not being recognised by the popi. i will try all you suggested with zapping now and see how it goes>>>> Link to comment
buttonsNI. Posted July 29, 2008 Share Posted July 29, 2008 Open DVBViewer.html and replace {your share as displayed on the popi} with the name exactly as it is displayed on the Popi Media Source screen to conclude on previous posts...i have successfully set up a share folder on "home-pc" and mapped this so that the popi can see it the name shown on the popi media source menu is "home-pc:share" so is this correct <a href="http://localhost.drives:8883/[sMB]%20home-pc:share/script.cgi">lircbeamer</a> also this mount -t cifs //192.168.1.64/home-pc:share /etc/DVBViewer/ -o username=root,rw; Link to comment
buttonsNI. Posted July 30, 2008 Share Posted July 30, 2008 ok all is working with zapper just to let all know my problems were coming from the allowed users of the shared folder .thats why the popi was not getting access to the lircbeamer.html..i should been allowing access to the administrater (which was not in the list of allowed users) these are my settings administrater ..owner everyone...reader me.... contributor i dont know if i need to use all of these or not but its working so ill leave it be. the zapper settings were quite straight forward when i realized the access to the share folder so there is thanks everyone and lars Link to comment
renzz Posted August 3, 2008 Share Posted August 3, 2008 One thing about this new service that Lars has only briefly mentioned above, it uses SSDP discovery to make it appear on the list of media services on the PCH. This means it takes over listening on UDP port 1900, which other Upnp media servers use (like TVersity). Would this make them stop working, or does the spec allow for multiple media servers running on the same machine? Link to comment
ecefrm Posted August 3, 2008 Share Posted August 3, 2008 One thing about this new service that Lars has only briefly mentioned above, it uses SSDP discovery to make it appear on the list of media services on the PCH. This means it takes over listening on UDP port 1900, which other Upnp media servers use (like TVersity). Would this make them stop working, or does the spec allow for multiple media servers running on the same machine? I don't know the exact answer to your question, but I have both TVersity (latest version) and DVBViewer recording service working in the same machine and they do not seem to disturb each other. From the PCH I am able to see and work with both media servers with no problem. My Home is also working simultaneously. Link to comment
Recommended Posts