SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Reply
 
Thread Tools Search this Thread Display Modes
  #461  
Old 01-20-2010, 05:47 PM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
The installer is trying to update Sage.properties and deliver wfesageplugin.jar to JARs directory.

Something must have those files.

Quote:
Originally Posted by SteveW View Post
Michael,

Trying to install your new version, but every time I get to the point where it wants to update Sage.Properties, it fails saying that Sage is still running. I can guarantee it isn't. I tried starting up and shutting down Sage a few times, but the installer keeps insisting that Sage is still running.

Any ideas?

-S
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #462  
Old 01-20-2010, 07:14 PM
SteveW's Avatar
SteveW SteveW is offline
Sage Aficionado
 
Join Date: Oct 2008
Location: Fall River, Nova Scotia, Canada
Posts: 389
Hmmm.. Well, I guess I'll give the server a reboot then, cuz it ain't Sage holding them open....

Tnx!
__________________
Server: Win 10 Pro 64 Bit, Intel i5, 8 GB, Samsung EVO 850 500 GB for OS, WD Black 4 TB + WD Black 1 TB for Recordings, 36TB Synology 1019+ for DVD/Bluray Rips, Music, Home Movies, etc., SageTV Server 64 Bit Ver 9.2.6.976, HDPVR x 2, Bell TV 6131 Receiver x 2, USB-UIRT with 56 KHz Receiver

Clients: PC Client x 2, HD-300 x 2 (1 Using Netgear MoCA Coax Bridges), SageTV Miniclient on NVidia Shield x 3
Reply With Quote
  #463  
Old 01-20-2010, 10:29 PM
Jabroni's Avatar
Jabroni Jabroni is offline
Sage Aficionado
 
Join Date: Mar 2006
Posts: 251
Thanks for this plugin!

Right now im trying to setup a directshow filter that connects to a IP cam, however i need to configure the filter for ip and port. I can build up the graph and it plays fine using graphedit, but it wont play thru the plugin. The dshow filter im using is one that is bundled with webcam7 (previously named webcamXP). Any idea how could I set these parameters on your plugin??


Quote:
Originally Posted by SteveW
#1) I'm trying to make the web feed from my Axis IP camera available. I have set it up as follows:

webfeed.JPG

I can use the RTSP url as you see in the attachment directly in VLC (vers .99) itself, and it plays fine. When I try to view it as a channel in Sage, I don't get a picture. Any thoughts?
Actually I tried the rtsp route too, and i experienced the same issue as you, and i checked the.mpg on my sagetv recording dir and it is saving the video correctly
__________________
SageTV 7.1.9 / Phoenix
Captures: 1x Genpix Skywalker DVB4Sage / 1x 7500 Prof DVBS2 Tunner DVB4Sage / 1x HD HomeRun / 1x Slingbox M1 / 1x Colossus HD
Extender: 2x HD200 / 1x HD300


Last edited by Jabroni; 01-20-2010 at 11:07 PM.
Reply With Quote
  #464  
Old 01-21-2010, 01:13 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Quote:
Originally Posted by SteveW View Post
Hmmm.. Well, I guess I'll give the server a reboot then, cuz it ain't Sage holding them open....
In my experience sometimes windows explorer and outlook and keep file handles open long after you have finished with a file.

I use a beefed up, free, and wildly used alternative to windows task manager called Process Explorer:

http://technet.microsoft.com/en-us/s.../bb896653.aspx

With it you can type in a file and it will tell you which process has the file handle open.

My other thought on this issue is that its a file permissioning issue. Do make sure you are installing as administrator or with an elevated command prompt. Otherwise all manner of strange things happen.

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #465  
Old 01-21-2010, 01:41 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Quote:
Originally Posted by Jabroni View Post
Thanks for this plugin!

Right now im trying to setup a directshow filter that connects to a IP cam, however i need to configure the filter for ip and port. I can build up the graph and it plays fine using graphedit, but it wont play thru the plugin. The dshow filter im using is one that is bundled with webcam7 (previously named webcamXP). Any idea how could I set these parameters on your plugin??

Actually I tried the rtsp route too, and i experienced the same issue as you, and i checked the.mpg on my sagetv recording dir and it is saving the video correctly
Can you explain a bit more what you are doing.

VLC can open directshow devices directly and transcode to mpeg. When you add the channel in the config tool are you selecting type of "Device" and then pressing the "Find" button. Do you then see your device listed. It should produce a URL like this:

dshow:// --dshow-vdev="Logitech QuickCam Communicate STX"

Does this technique produce a working mpeg file in the recording directory but just not one that SageTV will play?

It is possible to configure webfeedencoder to use a different tuning command scripts and this can reference any property you invent in your channel properties file and call out to anything. For example the existing device tuning command script is:

Code:
Exec cmd /c start "streamAsVideoCommand" "%vlc.exe%" %url% --sout="#transcode{vcodec=mp2v,vb=4000,fps=30,scale=1,width=720,height=576,acodec=mpga,ab=128,channels=2}:duplicate{dst=std{access=file,mux=ts,dst='%recording%'}}" --sout-transcode-audio-sync -I rc --rc-host=localhost:%streamAsVideoCommandPort% --rc-quiet %vlclogging%
where the %blah% bits are refering to properties defined in the encoder.props, channel type props and channel props.

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #466  
Old 01-21-2010, 10:59 AM
Jabroni's Avatar
Jabroni Jabroni is offline
Sage Aficionado
 
Join Date: Mar 2006
Posts: 251
Quote:
Originally Posted by michaeldjcox View Post
Can you explain a bit more what you are doing.

VLC can open directshow devices directly and transcode to mpeg. When you add the channel in the config tool are you selecting type of "Device" and then pressing the "Find" button. Do you then see your device listed. It should produce a URL like this:

dshow:// --dshow-vdev="Logitech QuickCam Communicate STX"

Does this technique produce a working mpeg file in the recording directory but just not one that SageTV will play?

It is possible to configure webfeedencoder to use a different tuning command scripts and this can reference any property you invent in your channel properties file and call out to anything. For example the existing device tuning command script is:

Code:
Exec cmd /c start "streamAsVideoCommand" "%vlc.exe%" %url% --sout="#transcode{vcodec=mp2v,vb=4000,fps=30,scale=1,width=720,height=576,acodec=mpga,ab=128,channels=2}:duplicate{dst=std{access=file,mux=ts,dst='%recording%'}}" --sout-transcode-audio-sync -I rc --rc-host=localhost:%streamAsVideoCommandPort% --rc-quiet %vlclogging%
where the %blah% bits are refering to properties defined in the encoder.props, channel type props and channel props.

Michael

Ok for the RTSP, on vlc first i tested if I could connect, and it worked rtps://iport/code (on a linksys camera) video showed up on vlc with no probs. Then i tried configuring it on the webfeed encoder. I tuned to the channel on the sagetv, video doesnt load, however if I check my sagetv recording a .mpg file is being written. I can play that fine and it does contain the video of the camera, however in the sage interface it doesnt never show the video and it gets stuck on a black screen.

For the directshow, I tried the same thing, on vlc load the directshow device, clicked the setup filter option, configured the ip of the camera. If i check the advanced options on vlc, i can see what dshow:// its invoking. Video plays fine on vlc. Now for the webfeeder, i selected the device, copy pasted the dshow:// path I had on vlc. On the sagetv interface when I try to tune in, same as with rtsp, video doesnt play. but there is another issue using this method, if I check the mpg it creates it tries to connect to http://127.0.0.1 for the ip camera, with no way to configure an ip for it. Or is there an alternative for me to configure the ip on the filter properties?
__________________
SageTV 7.1.9 / Phoenix
Captures: 1x Genpix Skywalker DVB4Sage / 1x 7500 Prof DVBS2 Tunner DVB4Sage / 1x HD HomeRun / 1x Slingbox M1 / 1x Colossus HD
Extender: 2x HD200 / 1x HD300

Reply With Quote
  #467  
Old 01-22-2010, 11:48 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Quote:
Originally Posted by Jabroni View Post
Ok for the RTSP, on vlc first i tested if I could connect, and it worked rtps://iport/code (on a linksys camera) video showed up on vlc with no probs. Then i tried configuring it on the webfeed encoder. I tuned to the channel on the sagetv, video doesnt load, however if I check my sagetv recording a .mpg file is being written. I can play that fine and it does contain the video of the camera, however in the sage interface it doesnt never show the video and it gets stuck on a black screen.
This technique does sound most promising. The fact that it is actually creating a usable video is nice. Why SageTV cannot play it. Really need to turn on some logging in SageTV and find out why. Is it possible to make you camera available on the internet so I can have a go? Not ready to buy my own yet but I am getting readier everytime I get a WFE post about the subject.

Quote:
For the directshow, I tried the same thing, on vlc load the directshow device, clicked the setup filter option, configured the ip of the camera. If i check the advanced options on vlc, i can see what dshow:// its invoking. Video plays fine on vlc. Now for the webfeeder, i selected the device, copy pasted the dshow:// path I had on vlc.
I'm not totally familar with directshow. The camera is an ip camera - has its own address. But you are able to view it as a direct show device on the PC.

Is this the same PC has web feed encoder runs on?

Quote:
On the sagetv interface when I try to tune in, same as with rtsp, video doesnt play. but there is another issue using this method, if I check the mpg it creates it tries to connect to http://127.0.0.1 for the ip camera, with no way to configure an ip for it. Or is there an alternative for me to configure the ip on the filter properties?
When you check the mpg is tries to connect? Confused what do you mean by check?

Can you paste me the tuning URL you use with this method please.

It would be great to work out the formula to get this right. I love this to be another thing that WFE can do.

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #468  
Old 01-22-2010, 09:14 PM
SteveW's Avatar
SteveW SteveW is offline
Sage Aficionado
 
Join Date: Oct 2008
Location: Fall River, Nova Scotia, Canada
Posts: 389
Quote:
Originally Posted by michaeldjcox View Post
This technique does sound most promising. The fact that it is actually creating a usable video is nice. Why SageTV cannot play it. Really need to turn on some logging in SageTV and find out why. Is it possible to make you camera available on the internet so I can have a go? Not ready to buy my own yet but I am getting readier everytime I get a WFE post about the subject.



I'm not totally familar with directshow. The camera is an ip camera - has its own address. But you are able to view it as a direct show device on the PC.

Is this the same PC has web feed encoder runs on?



When you check the mpg is tries to connect? Confused what do you mean by check?

Can you paste me the tuning URL you use with this method please.

It would be great to work out the formula to get this right. I love this to be another thing that WFE can do.

Michael
This is basically the same thing I had happen with my Axis web camera.... Using RTSP, but just a blank picture when I connect thru WFE, but can view it fine as RTSP in VLC...
__________________
Server: Win 10 Pro 64 Bit, Intel i5, 8 GB, Samsung EVO 850 500 GB for OS, WD Black 4 TB + WD Black 1 TB for Recordings, 36TB Synology 1019+ for DVD/Bluray Rips, Music, Home Movies, etc., SageTV Server 64 Bit Ver 9.2.6.976, HDPVR x 2, Bell TV 6131 Receiver x 2, USB-UIRT with 56 KHz Receiver

Clients: PC Client x 2, HD-300 x 2 (1 Using Netgear MoCA Coax Bridges), SageTV Miniclient on NVidia Shield x 3
Reply With Quote
  #469  
Old 01-25-2010, 02:13 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Quote:
Originally Posted by SteveW View Post
This is basically the same thing I had happen with my Axis web camera.... Using RTSP, but just a blank picture when I connect thru WFE, but can view it fine as RTSP in VLC...
I had a go connecting to Jabronis camera using RTSP at the weekend - nice view of a sofa and TV :-)

I notice that it is mpeg4 underneath.

I have noticed that VLC transcoding mpeg4 into mpeg2 in web feed encoder produces a file that can only be played when the streaming is finished. You cannot start playing it while it is still recording.

Not sure why that is - I'm sure somebody out there knows why...

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #470  
Old 01-27-2010, 08:29 PM
SteveW's Avatar
SteveW SteveW is offline
Sage Aficionado
 
Join Date: Oct 2008
Location: Fall River, Nova Scotia, Canada
Posts: 389
Quote:
Originally Posted by michaeldjcox View Post
I had a go connecting to Jabronis camera using RTSP at the weekend - nice view of a sofa and TV :-)

I notice that it is mpeg4 underneath.

I have noticed that VLC transcoding mpeg4 into mpeg2 in web feed encoder produces a file that can only be played when the streaming is finished. You cannot start playing it while it is still recording.

Not sure why that is - I'm sure somebody out there knows why...

Michael

So... Anyone out there know why?
__________________
Server: Win 10 Pro 64 Bit, Intel i5, 8 GB, Samsung EVO 850 500 GB for OS, WD Black 4 TB + WD Black 1 TB for Recordings, 36TB Synology 1019+ for DVD/Bluray Rips, Music, Home Movies, etc., SageTV Server 64 Bit Ver 9.2.6.976, HDPVR x 2, Bell TV 6131 Receiver x 2, USB-UIRT with 56 KHz Receiver

Clients: PC Client x 2, HD-300 x 2 (1 Using Netgear MoCA Coax Bridges), SageTV Miniclient on NVidia Shield x 3
Reply With Quote
  #471  
Old 01-28-2010, 01:27 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Quote:
Originally Posted by SteveW View Post
So... Anyone out there know why?
Well I've tried asking on the VLC forums.

The hint I got there was that mp4 video is not "progressive".

You have to download and transcode the whole file. You cannot start playing while you are downloading.

Think of SageTV online services where most things it insists on downloading the whole file before playing while some other things seem to start playing straight away.

So currently I'm searching the internet for any magic formula for converting mjpeg to mpeg progressively and investigating other options like directshow filters.

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #472  
Old 02-03-2010, 03:52 PM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Fixed the stutter when watching on the server PC

Hi,

I've sussed the stutter issue when viewing on the server PC.

In the command files for example on windows:

tune.tv.windows.commands

and

tune.radio.windows.commands

change the text:

vb=4000

to

vb=800

A fix for the other issue of not supporting the latest VLC is also not long away....

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #473  
Old 02-08-2010, 06:42 PM
mlldrl mlldrl is offline
Sage User
 
Join Date: Aug 2008
Location: Indiana, USA
Posts: 15
Remote Configtool - What I'm I Doing Wrong?

  • Copied the configtool.jar file to the remote pc - check.
  • Opened ports 1099 and 1100 on the pc running SageTV - check
  • Launch the configtool by typing java -jar configtool.jar <host name> - check
  • Screen comes up with a green indicator for Sage but a red indicator for Webfeedencoder
  • Configtool will run on the local machine
  • See screen shot from remote pc
What am I doing wrong?
Attached Images
File Type: jpg screen shot.jpg (34.7 KB, 248 views)
Reply With Quote
  #474  
Old 02-09-2010, 01:15 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Quote:
Originally Posted by mlldrl View Post
  • Copied the configtool.jar file to the remote pc - check.
  • Opened ports 1099 and 1100 on the pc running SageTV - check
  • Launch the configtool by typing java -jar configtool.jar <host name> - check
  • Screen comes up with a green indicator for Sage but a red indicator for Webfeedencoder
  • Configtool will run on the local machine
  • See screen shot from remote pc
What am I doing wrong?
Hi,

Sounds like you have done everything - perhaps the webfeedencoder is dying shortly after startup or is not managing to set itself up as a server on port 1099.

Can you send me logs/encoder.log from the server PC and logs/configtool.log from the client PC and I will investigate.

Regards,

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #475  
Old 02-09-2010, 02:02 PM
mlldrl mlldrl is offline
Sage User
 
Join Date: Aug 2008
Location: Indiana, USA
Posts: 15
Remote Configtool

Michael,

I tried the configtool with the firewall turned off and it worked fine so it has something to do with the firewall. Are there any other Windows firewall settings I need besides ports 1099 and 1100? I have the log files if you still need them.

M
Reply With Quote
  #476  
Old 02-10-2010, 11:59 AM
mlldrl mlldrl is offline
Sage User
 
Join Date: Aug 2008
Location: Indiana, USA
Posts: 15
Remote Configtool - Got it working

Followed your suggestion about firewall logs and discovered that it was trying to use tcp ports 1028 and 1038 in addition to 1099 and 1100. However, after a reboot it wouldn't connect and the logs then showed two other ports (1032 and 1040) so there must be a range of ports that it's looking for. So yes, it's working but I'm sure I'll have to open more ports as I discover them.

M
Reply With Quote
  #477  
Old 02-11-2010, 06:32 PM
SteveW's Avatar
SteveW SteveW is offline
Sage Aficionado
 
Join Date: Oct 2008
Location: Fall River, Nova Scotia, Canada
Posts: 389
Quote:
Originally Posted by michaeldjcox View Post
Well I've tried asking on the VLC forums.

The hint I got there was that mp4 video is not "progressive".

You have to download and transcode the whole file. You cannot start playing while you are downloading.

Think of SageTV online services where most things it insists on downloading the whole file before playing while some other things seem to start playing straight away.

So currently I'm searching the internet for any magic formula for converting mjpeg to mpeg progressively and investigating other options like directshow filters.

Michael
Hmm, I don't understand that. If I can watch it live as an MPEG-4 in quicktime in a browser, why not in VLC in Webfeedencoder? I can load it up in VLC by itself and watch it just fine. I must be missing something....

I know you were talking about moving away from using VLC in WFE. Maybe I'll try it again then.

Tnx.
__________________
Server: Win 10 Pro 64 Bit, Intel i5, 8 GB, Samsung EVO 850 500 GB for OS, WD Black 4 TB + WD Black 1 TB for Recordings, 36TB Synology 1019+ for DVD/Bluray Rips, Music, Home Movies, etc., SageTV Server 64 Bit Ver 9.2.6.976, HDPVR x 2, Bell TV 6131 Receiver x 2, USB-UIRT with 56 KHz Receiver

Clients: PC Client x 2, HD-300 x 2 (1 Using Netgear MoCA Coax Bridges), SageTV Miniclient on NVidia Shield x 3
Reply With Quote
  #478  
Old 02-12-2010, 01:39 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
VLC can play a live mpeg-4 stream also.

The problem is that SageTV will not play the live stream.

As for a replacement for VLC - not getting very far with that - all the candidates are missing something. VLC seems to add so much value.

I'm considering now actually getting involved in the VLC development and fixing the bug thats preventing me moving to later versions.

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #479  
Old 02-12-2010, 10:50 AM
SteveW's Avatar
SteveW SteveW is offline
Sage Aficionado
 
Join Date: Oct 2008
Location: Fall River, Nova Scotia, Canada
Posts: 389
Quote:
Originally Posted by michaeldjcox View Post
VLC can play a live mpeg-4 stream also.

The problem is that SageTV will not play the live stream.

As for a replacement for VLC - not getting very far with that - all the candidates are missing something. VLC seems to add so much value.

I'm considering now actually getting involved in the VLC development and fixing the bug thats preventing me moving to later versions.

Michael
I hear you now. Not so much a VLC issue as a SageTVplayer issue. Righton. Maybe I'll poke support about that question...

As for joining VLC Dev group, I guess maybe the term "if you want it done right, you gotta do it yourself" may end up applying there, eh?

Thanks again Michael. I'm sure you'd be an asset if you did join the development crew on that!

-S
__________________
Server: Win 10 Pro 64 Bit, Intel i5, 8 GB, Samsung EVO 850 500 GB for OS, WD Black 4 TB + WD Black 1 TB for Recordings, 36TB Synology 1019+ for DVD/Bluray Rips, Music, Home Movies, etc., SageTV Server 64 Bit Ver 9.2.6.976, HDPVR x 2, Bell TV 6131 Receiver x 2, USB-UIRT with 56 KHz Receiver

Clients: PC Client x 2, HD-300 x 2 (1 Using Netgear MoCA Coax Bridges), SageTV Miniclient on NVidia Shield x 3
Reply With Quote
  #480  
Old 02-12-2010, 10:53 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Snowboarding for a week now so you probably won't get support for a while...
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
Reply

Tags
extender, internet video streaming, mvp, online videos, radio


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SageTV and web radio michaeldjcox SageTV Customizations 3 12-01-2008 11:09 AM
STV Import: Simple Web Radio V1.2 koelec SageTV Customizations 294 02-29-2008 12:53 PM
Recording Volume vs. Web Radio / Music FidgetyRat SageTV Software 0 11-29-2006 08:33 AM


All times are GMT -6. The time now is 02:18 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.