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
  #1  
Old 03-24-2009, 07:04 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Arrow Utility: Web Radio and TV Encoder

Web Feed Encoder version 0.9.6

Introduction

The webfeedencoder is a means to get web based streaming TV and radio and device output available in SageTV and its extenders as if they were regular channels.

As far as SageTV is concerned the webfeedencoder behaves like another TV tuner.

The excellent VLC media player software is used to tune to the internet TV or radio station, add video to the radio, or audio to video where its missing, and dump to an MPEG2 file for SageTV.

The means of tuning and detuning is completely configurable so any source of video or audio could be fed to SageTV via the webfeedencoder.

The webfeedencoder also includes an EPG grabber to harvest schedules from the web pages and other sources and update SageTVs program guide without need for an XMLTV importer.

Feeds can also be added to online services menu in SageTV.

A configuration tool is provided which allows you to:
  • Find and configure new channels and online services.
  • Test the channels and EPG harvest.
  • Perform ad-hoc EPG updates.
  • Manage your SageTV channel lineup and online services.

Installation of the encoder requires installation of a single plugin jar file to your SageTV installation and updates to the Sage.properties file.

A comprehensive install wizard performs the whole installation task and provides options to downgrade to your previous version and uninstall.

Headline changes this release
  • Support for latest VLC.
  • Support for IP cameras.
  • Support for MPEG2 IP TV.
  • Support for Audio only devices.
  • New feature to ensure VLC sessions die.

Installation Prerequisites
  • The VLC media player. Use the latest version.
  • Version 6.4 of SageTV or later. Version 6.6 and the latest STV update if you wish to use online services. Also works with version 7.

Installation and upgrade from earlier versions

Download the file from here

Unzip the download file in a location of your choice.

The zip file contains a user guide and a jar file.

To install or upgrade run:

java -jar webfeedencoder_0_9_6.jar

On windows vista and windows 7 you should run this in an elevated command prompt or from your admistrator account.

Support and updates

Support is available on this thread.

Credits
Many thanks to all those who have given WebFeedEncoder a try and provided valuable feedback.

Special thanks to everybody who helped with pre-release testing.

Version History

0.9.6 - 7th release.
  • Accommodate the latest VLC release 1.0.5 removing the need to run the old 0.9.8 release.
  • New channel type: TV (silent) and tuning commands to cater for IP cameras.
  • New channel type: Device (audio), tuning commands and seed plugin to cater for audio input devices.
  • New channel type: TV (MPEG) and tuning commands to cater for IP TV channels that require no transcoding to MPEG2.
  • New radio tune/detune commands to allow use of later versions of VLC where input slave does not work.
  • To accommodate the above a tuning URL is expanded at encoder startup so that it is refers to a playlist then the playlist is converted to a list of streams. This is to get around a VLC bug where this is not done automatically.
  • Add feature where detuning automatically kills any spawned (VLC or other) processes that refuse to stop when asked.
  • New grabber type: None.
  • New grabber type: XMLTV file to allow EPG data to be sourced from an XMLTV file.
  • Added “lineupIsExternallyManaged” property which if set true allows the old style use of a separate XMLTV importer tool and disables the updating of SageTV EPG and lineup from the config tool and encoder. An XMLTV file is output instead.
  • The configtool arguments used to run remotely now must be prefixed with -host=, -port= and -sagePort=. A help message is output if incorrect arguments are used.
  • The configtool now accepts a -console argument which forces logging output to be output to the screen as well as to a file.
  • The configtool now correctly saves new user defined day URL suffix formats creating while specifying an EPG harvest and offers it as a choice for new channels.
  • The configtool now longer loads the channels twice.
  • The configtool now no longer blocks user actions while waiting for a timeout in circumstances where SageTV or the encoder are not available.
  • The configtool chanel dialog now has three seperate buttons for testing the channel, EPG and now playing.
  • The configtool now allows all types of EPG grab to be tested rather than just web based ones.
  • The configtool EPG grab test run will now perform programme merging like the actual EPG test run does where programmes that cross day boundaries are joined and stop times are added if they are not present in the source web page.
  • The configtool grabber test dialog now shows start and stop days separately from start and stop times.
  • The configtool channel test can now generate any number of log files visible in tabs as may be required by custom tuning commands
  • The configtool channel dialog now sorts many combo box lists for ease of locating required values.
  • The configtool channel dialog will now correctly set the id to be the same as the callsign for channel types with no seed plugin.
  • The configtool channel dialog now correctly saves the timezone no matter what the grabber type.
  • The configtool channel dialog now defaults the channel timezone to “Local” rather than the actual local timezone to allow portability of radiotime sample channel properties.
  • The configtool channel dialog now correctly defaults Grabber type to the default day long programme.
  • The configtool now allows actions on a channel can now be launched when a channel is selected in any tab.
  • The configtool now allows a single channel to be selected and reloaded from file.
  • The configtool now allows the user to view any seed channel properties and refresh them from the source web site.
  • The configtool now allows the channels tests to be launched from anywhere.
  • The configtool channel dialog now allows editing of the output video and audio stream parameters in an “Advanced” tab.
  • The configtool now displays an “about” box with version information.
  • The configtool now allows channel testing in standalone mode.
  • New channel types property: “type.name” which provides a user friendly name for the channel type.
  • Removed channel properties: nowplaying.command.text, nowplaying.command.position, nowplaying.command.color, nowplaying.command.size, nowplaying.prefix, nowplaying.suffix channel properties.
  • New channel properties: subtitle.text, subtitle.name, subtitle.pos, subtitle.color, subtitle.size channel properties..
  • New channel property: subtitle text allows reference to other channel properties within it.
  • New channel property to specify an XMLTV file to source EPG data has been added.
  • New channel property to specify a supplementary URL that will provide missing audio or video from the primary tuning URL.
  • New channel property to specify the type of supplementary URL.
  • Channel properties are now saved with unicode characters escaped to cater for channels of non-Latin origin.
  • Channel properties are now saved with improved processing of comments.
  • The grabber can now be run standalone to produce an XMLTV file.
  • The grabber will automatically create a “guide” directory will be created to contain EPG guide output as XMLTV if not already present.
  • The grabber now sets the timezone for XMLTV start and stop times as UTC.
  • The grabber now correctly formats of the start and stop times to include the timezone.
  • The grabber now correctly processes timezones of grabbed programmes.
  • The encoder will now longer log worrying “SageTV has possibly died” log messages.
  • The encoder will accept a new tuning command: “Vlc” to be used instead of Exec cmd /c “VLC” “%vlc%”.
  • The encoder will accept a new tuning command: “ExecAndWait” where the requirement is to launch an OS command but wait for it to finish.
  • The encoder will accept a new tuning command: “VlmConf” which allows a VLC VLM conf file to be created from a template substituting channel properties.
  • The encoder will now replace a reference to “%commands%” in a tuning command with the file path of the commands directory.
  • The installer now saves upgraded config files in the same format as the config tool.
  • The installer now processes custom properties added by user in an old installation correctly.
  • The installer now recommends the latest version of VLC be installed.

0.9.5 - 6th release (Beta).
  • Added management of extra services and their categories on SageTV online services menu.
  • Added a seed plugin for www.podcastdirectory.com to seed online services.
  • Made seed plugins data driven so more can be easily added and existing ones maintained.
  • Fixed issues with VLC processes not been killed on webfeedencoder shutdown.
  • Exceptions thrown on configtool/encoder start up are handled rather than causing silent death.
  • Bad channels found during configtool/encoder startup are skipped rather than causing silent death.
  • The EPG plugin no longer shares the same management port as the encoder. This caused the encoder or SageTV to appear down after either had been restarted.
  • The configtool and encoder will correctly reconnect to SageTV after it is restarted.
  • The configtool channel test log file names have been improved.
  • The configtool device seed plugin now uses the correct device name in the tuning URL.
  • The configtool now disables the webfeedencoder EPG plugin when remove lineup is selected to allow configuration of video sources with native EPG.
  • The configtool occasional failures in start and stop of webfeedencoder now fixed.
  • The configtool output from starting/stopping services is now recorded in the log file.
  • The configtool EPG grab test 'Run' button now works.
  • The configtool channel addition now defaults timezone to local time rather than GMT.
  • The configtool will now show the correct channel icon after addition of or editing of a channel.
  • The configtool will periodically check for presence of SageTV and the encoder.
  • The configtool now has a menu option to reload the channel database from disk.
  • The configtool on moving channels up and down the lineup will also move the channel selection so a continued move further up or down the lineup is possible with reselection.
  • The configtool will no longer allow deletion of a channel without it first being removed from the lineup.
  • The configtool will now terminate any channel test when the channel test dialog is dismissed.
  • The configtool now disallows edits rather than crashing if in remote mode and webfeedencoder not running.
  • The configtool can now start up webfeedencoder via SageTV in remote mode.
  • The configtool now indicates in the title bar if it is remote mode.
  • The configtool will now create a logs directory if one is not present and will not require presence of DLLs when working in remote mode.
  • The configtool the seed selection dialog now allows the external web site to be searched for feeds.
  • The configtool issue where EPG harvest test cached and incorrectly used downloaded content for both first day and weekly EPG harvests has been fixed.
  • The configtool issue where sending the lineup twice had the effect of removing knowledge of any existing EPG plugin has been fixed.
  • The configtool seed selection dialog branch children are now alphabetically sorted.
  • The configtool channel test now shows the video in a VLC window.
  • The configtool TV channel test now shows the VLC test log in “Stream to mpeg” rather than “Save as mp3” tab.
  • The encoder now tidies any channel test files on exit.
  • EPG grab will now push times to SageTV in GMT rather than local time.
  • EPG grab will now make program times have zero seconds if seconds.
  • EPG grab now assigns correct day to a days EPG within generic grabber.
  • Tune command files have been updated to be compliant with VLC 1.0.0 onward transcoding parameters - radio still does not work with these versions.
  • Windows detune commands now contain file paths in quotes to deal with files with spaces.
  • Sample station Kiss105108 grabber type has changed to use day-long programme for EPG.
  • Updated user guide to advise Vista/Win7 users to run installer with elevated command prompt.
  • The installer now tidies up EPG plugin log files on deinstall.
  • The installer will no longer try to delete files that are not there.
  • The installer will disable use of the EPG plugin on video sources where native SageTV EPG is users by the installer when configuring SageTV whereever native SageTV EPG sources are used.
  • The installer now takes a backup of Sage.properties as insurance.
  • The installer now has a "Repair" which refreshes non-config delivered components.
  • The installer now copes with file paths with spaces when setting file permissions.
  • The installation jar file can be run from a directory with spaces in.
  • The installer will check the version of Java being used to run it and report and error if its too old.
  • The installer will now catch and display any errors found in initialization.
  • The installer will not repeat configuration of the epg_import_plugin sage property once configured as this leads to infinite loop in SageTV.
  • The installer fixed so that windows file separators are not doubled in the encoder.props file.
  • The installer now removes extra backslashes that appear in windows pathnames when configuring webfeedencoder but take account of UNC pathnames.
  • The installer no longer prints out exception messages when operating system tasks complete.
  • The installer will correctly default installation directory and SageTV directory.
  • The installer now contains a better test of whether webfeedencoder is still in use prior to upgrade as uninstall and upgrade would fail.
  • The installer will now restore SageTV configuration for an earlier version in two phases separated by restoration of the previous webfeedencoder directory.
  • The installer now provides manual instructions and information prior to uninstall, restore and repair.
  • The installer now provides helpful next step instructions after install or upgrade.
  • The installer will now choose unique characters to choose buttons in headless mode.
  • The installer will allow key configuration parameters to be reviewed and edited in subsequent runs.
  • The installer no longer requires '\\' to be used as directory separators in paths.
  • The installer in headless mode no longer goes into an infinite loop of 'Does not exist' if the destination directory for the installation does now exist.
  • The installer now recommends the version of VLC to install and provides a URL that can be cut and paste.
  • The installer no longer overwrites encoder details added for other plugins e.g. slimplayer.

0.9.4 - 5th release (Beta).
  • Direct injection of EPG data and lineup to SageTV eliminating the need to go via XMLTV and XMLTV importers.
  • Installation wizard which performs all installation, deinstallation, upgrade, downgrade and setup tasks.
  • A configuration tool eliminating the need for manual configuration of lineup which allows direct injection of lineup and EPG to SageTV and provides test tools for channels and web harvests.
  • Inclusion of direct show devices as a type of channel.
  • Substantial cleanup of config files and some renaming of properties to be more consistent.
  • Introduced the concept of a seed plugin - which knows how to browse the channel listings of external websites and grab initial channel config from them. This "seed" channel config can then be further overridden to add missing information or correct web site mistakes.
  • Existing code for direct show devices and radiotime stations recast as seed plugins.
  • A new seed plugin for www.allinternettv.com added so internet TV channels can be configured.

0.9.3 - 4th release (Beta).
  • Ability to tune to internet TV channels.
  • Support for unix specific tuning commands - not fully tested yet - beta tester required.
  • To support the above sagetv.dir and vlc.dir become sagetv.logos.dir and vlc.exe to point to the required resource.
  • Made tuning and detuning script driven per channel to allow custom tuning instructions.
  • To support TV and custom tune commands the lineup channel ids need to be prefixed with a name that corresponds to a properties file that specifies properties common to a group of channels and other data e.g. radio/977HItz, tv/i3interactive
  • The generic grabber now allows stop times. This fixes problems where stations do not broadcast 24 hour.
  • The web-based now playing text processing now allows incremental advance to the beginning of track now playing data in the source html.
  • If web-based now playing text is not specified the encoder will look for ICY meta data or ID3v2 tags to get the track now playing.
  • Fixed paths for config and log files in unix.
  • Removed surplus file separators.
  • Provide a substitute image for the video if no channel logo is available.
  • Fix the issue where sometimes the logo image file name on www.radiotime.com was prefixed with the wrong channel id.
  • Fix sample WMNF channel properties where the EPG was configired to be a day behind.
  • Fix issue where radiotime day epg urls where being created only for the first seven days of after the channel first appears.
  • Set the now playing text size before presenting it rather than after.

0.9.2 - 3rd release (Beta).
  • Fixed bug where images did not get downloaded when a channel offset is in force.
  • Fixed bug where an empty channel properties file is always created when an unknown id is used in the channel lineup.
  • Changed sample channels callsigns to be in agreement with radio and hence also renamed them.
  • Added some debug and a possible fix to the properties file not found message in linux.

0.9.1 - 2nd release (Beta).
  • Integrated the webepggrabber release with webfeedencoder. While still useful separately I no longer which to manage it in a seperate distribution.
  • Correct port number in the instructions.
  • Fix various problems caching the channel logo and temporary video image. If you delete either they are now correctly reproduced.
  • Moved the channel configuration from tuning.props and lineup.props lineup.props which now simply maps channel number to channel id
  • The channel id can now be a RadioTime station id. If this is used no other channel configuration is necessary.
  • Created a channels directory where seperate per channel properties files serve the purpose of the old tuning.props and lineup.props
  • A separate cache directory now holds cached images and radio time properties files. The tmp directory now holds disposable files.
  • Improved the housekeeping of temporary files.
  • Improved the recording state machine to cope with odd behaviours resulting from the time it takes to tune.
  • Added a shutdown hook to stop recording if the process is shutdown.
  • Added a service wrapper so the encoder can be run as a windows service.
  • Remove HTML escape codes from titles, descriptions and now playing text.
  • Now playing html parsing now recognises that there may be a seperator between artist and title to be removed.
  • Fixed a bug in the default grabber which caused programmes to still be of 24 hour length when Daylight Savings occurred.
  • A channel timezone can now be specified for the generic grabber so programme times are correctly calculated for foreign stations can converted to UTC in the XMLTV.
  • The generic grabber can now handle the programme description being accessed via another URL.
  • The generic grabber now allows multiple time formats for schedule pages that mix and match time style e.g. 3pm-5.30pm.
  • The generic grabber can now handle a different order of items in the schedule. Sometimes they can appear time, title, desc and sometimes its a different order.
  • Add a category "Radio" to the radio programmes.

0.9.0 - Initial release (Beta)

Screenshots

The installer



The config tool







Adding a new channel - the essentials page will get you going



Even easier - grab the information you need from external directory sites







Optional extras: harvest the web for programme guides and now playing text





Extra tweaking if you need it



Test tools for all channel configuration

http://www.keepandshare.com/userpics...t-13315087.jpg




Last edited by Opus4; 02-21-2011 at 11:41 AM. Reason: image(s) too wide to post inline; changed to link
Reply With Quote
  #2  
Old 03-24-2009, 07:15 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Beta testers please...

My testing is very UK focused, I only have an MVP not an HD200, and I've not tried your favourite internet radio stream.

Post problems here and I will endeavour to turn around a fix soon as
Reply With Quote
  #3  
Old 03-24-2009, 08:38 AM
matt91's Avatar
matt91 matt91 is offline
Sage Icon
 
Join Date: Feb 2005
Location: Washington, DC
Posts: 1,185
wow...this will be a great addition.

So, if VLC can tune to the stream, this will play it?

BTW, what "video" is added to the stream? Just a black image, or is it actually something?

I'll try to try this out tonight :-)


Matt
__________________
Server: Ubuntu 16.04 running Sage for Linux v9
Reply With Quote
  #4  
Old 03-24-2009, 08:49 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
A scaled up channel logo, with a black border and potentially track now playing.

This is just what i had time to do - the possibilities are nearly endless...station webcams, further artist/track info and pictures....
Reply With Quote
  #5  
Old 03-24-2009, 02:40 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Thanks Michael, I've been hoping for something like this. I will give it a try in the next several days depending on what happens in "real life".
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #6  
Old 03-24-2009, 04:11 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Wow, that's pretty brilliant. Great work

I'll have to try this out over the weekend, I've been wanting a good webradio on extender solution for ages.
Reply With Quote
  #7  
Old 03-25-2009, 02:15 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Arrow

I notice that there are 18 downloads for the

webfeedencoder

and only 14 for the

webepggrabber

This is fine if you are happy tuning into a program called "No Data" on "channel x".

It is also fine if you just want to check the thing actually works first before spending any more time on it because you can switch to an XMLTV line up later.

But unless there is another way of getting some useful text into the program guide you will need the grabber too to give you
  1. A channel name and a day long program that describes what the channel generally does OR
  2. Actual schedules scraped off the station web pages OR
  3. BBC radio stations schedules.

It does require a bit of extra investment in time to set up the (free) XMLTV importer and a small donation to LM Gestion if you want it to automatically update the EPG daily but it works well.
Reply With Quote
  #8  
Old 03-25-2009, 04:00 AM
deanm deanm is offline
Sage Aficionado
 
Join Date: Apr 2005
Location: North East, UK
Posts: 309
Thank for your work on this plug-in I have been waiting for some sort of web/radio plug-in since I went all digital. (Still waiting on DVB-T Radio support)

I know its still beta and your first release but it took some time to set up (Late for work again should stop looking at this forum before I go to work).

I followed your install instructions and used the defaults but notice the following line needs to be changed in you instructions

mmc/encoders/123/encoding_host=localhost\:5001 < Should be 5000

Also when playing back the streams they are very choppy and my Quad Core is between 25% - 50% and that is also with a 10m download conection.

Will play around with it some more tonight when I have more time, but looking good so far.

Thanks,

Dean
Reply With Quote
  #9  
Old 03-25-2009, 04:13 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Thanks for noticing the port number.

If you attempt to listen on the server PC its very choppy - thats an issue I have not resolved yet.

If you listen on the extender all is sweet though sometimes there is a blip if your PC is being hammered.

This solution does require CPU - a stated disadvantage - but I have dual core pentium 4 at 3Ghz.

Its very busy (mostly with SageTVService - god knows what it doing) but I can still play a radio stream with good qualiity.

Have you tried listening on an extender?
Reply With Quote
  #10  
Old 03-25-2009, 04:47 AM
deanm deanm is offline
Sage Aficionado
 
Join Date: Apr 2005
Location: North East, UK
Posts: 309
Strange

Should have mentioned that this was on an HD100.

Just tried this on an MVP and its working fine but not prefect.

If I the play the same file on the HD100 then it choppy.
Reply With Quote
  #11  
Old 03-25-2009, 04:59 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
that is a great shame - I had high hopes the HD100 extender would just work.

Heres some things to play with:

1. video bandwidth

In encoder.props
Code:
streamAsVideoCommand=cmd /c start \"streamAsVideoCommand\" \"_VLCDIR_\\vlc.exe\" fake:// --fake-file=\"_CHANNEL_.jpg\" --fake-duration=9999999999 --input-slave=\"_SOURCE_\" --sout=\"#transcode{vcodec=mp2v,vb=4000,scale=1,acodec=mpga,ab=128,channels=2,sfilter=marq@nowplaying{marquee='.'}}:duplicate{dst=std{access=file,mux=ts,dst='_TARGET_'}}\" -I rc --rc-host=localhost:_PORT_ --rc-quiet
try making the 4000 something lower - even 1.

2.video size

In encoder.props

# Channel logo target size in video stream
#
icon.width=360
icon.height=288
#
# The video size - reducing can improve performance
#
video.width=720
video.height=576

try reducing the video width and height - but keep the aspect ratio. The icon width and height should be kept less than the video height and width.

3. Also - try and take a copy of the recording and see if you can play it back as a plain video file in windows media player or VLC - does it sound choppy now?
Reply With Quote
  #12  
Old 03-25-2009, 05:50 AM
matt91's Avatar
matt91 matt91 is offline
Sage Icon
 
Join Date: Feb 2005
Location: Washington, DC
Posts: 1,185
hmmm...

I can't even get VLC to launch. It's in the default location
C:\Program Files\VideoLAN\VLC\vlc.exe
so I didn't need to touch this:
vlc.dir=C:\\Program Files\\VideoLAN\\VLC


the logs report this, endlessly:
Code:
Mar 25, 2009 7:44:51 AM ClientThread-17105257 uk.co.mdjcox.webfeedencoder.ConnectionThread process INFO: File R:\tv\1170795203_1_0325_0743-0.mpg exists
Mar 25, 2009 7:44:51 AM ClientThread-17105257 uk.co.mdjcox.webfeedencoder.ConnectionThread answer INFO: Answer: 200
Mar 25, 2009 7:44:52 AM ClientThread-17105257 uk.co.mdjcox.webfeedencoder.ConnectionThread process INFO: Command: GET_FILE_SIZE R:\tv\1170795203_1_0325_0743-0.mpg
Mar 25, 2009 7:44:52 AM ClientThread-17105257 uk.co.mdjcox.webfeedencoder.ConnectionThread process INFO: File R:\tv\1170795203_1_0325_0743-0.mpg exists
Mar 25, 2009 7:44:52 AM ClientThread-17105257 uk.co.mdjcox.webfeedencoder.ConnectionThread answer INFO: Answer: 200
Mar 25, 2009 7:44:53 AM ClientThread-17105257 uk.co.mdjcox.webfeedencoder.ConnectionThread process INFO: Command: GET_FILE_SIZE R:\tv\1170795203_1_0325_0743-0.mpg
Mar 25, 2009 7:44:53 AM ClientThread-17105257 uk.co.mdjcox.webfeedencoder.ConnectionThread process INFO: File R:\tv\1170795203_1_0325_0743-0.mpg exists
Mar 25, 2009 7:44:53 AM ClientThread-17105257 uk.co.mdjcox.webfeedencoder.ConnectionThread answer INFO: Answer: 200
any thoughts?
thanks
Matt

edit: it's v 0.9.8a
__________________
Server: Ubuntu 16.04 running Sage for Linux v9

Last edited by matt91; 03-25-2009 at 05:53 AM.
Reply With Quote
  #13  
Old 03-25-2009, 06:15 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
can you see any vlc sessions running in Windows Task Manager?

There should be 2.

This sort of log often happens when nothing is streaming.

trying just running up VLC media player without sage, choose File->open network, and paste in your station URL. Click play.

Can you here anything?
Reply With Quote
  #14  
Old 03-25-2009, 01:03 PM
deanm deanm is offline
Sage Aficionado
 
Join Date: Apr 2005
Location: North East, UK
Posts: 309
Don’t get me wrong it plays in the HD100 but it just stutters/choppy.

After some testing the files play the same in Windows Player and notice this on the MVP but just not as bad for some reason.

I had already changed the Video Size before I posted the last time but this did nothing.

I think the problem is downloading the stream and not Sage/VLC.

Its like its running out of buffer space. Is there a buffer that can be increased?

Will play around with it some more only tried Radio 1, 1xtra , Radio 2 and Radio 3. For some reason Radio 3 played perfect this morning but not a big fan of there’s.

Which I why I think its more to do with the downloading of the stream.

Going to reboot my router and modem.

Last edited by deanm; 03-25-2009 at 01:10 PM.
Reply With Quote
  #15  
Old 03-25-2009, 01:06 PM
matt91's Avatar
matt91 matt91 is offline
Sage Icon
 
Join Date: Feb 2005
Location: Washington, DC
Posts: 1,185
Quote:
Originally Posted by michaeldjcox View Post
can you see any vlc sessions running in Windows Task Manager?

There should be 2.

This sort of log often happens when nothing is streaming.

trying just running up VLC media player without sage, choose File->open network, and paste in your station URL. Click play.

Can you here anything?
There were no instances of VLC started. I'll ensure that I have the correct link (via the method you mention - pasting it into VLC directly.)

I tried both a mms:// and a http:// link.

Is the mms:// link method supported?
__________________
Server: Ubuntu 16.04 running Sage for Linux v9
Reply With Quote
  #16  
Old 03-25-2009, 04:14 PM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Quote:
Originally Posted by matt91 View Post
There were no instances of VLC started. I'll ensure that I have the correct link (via the method you mention - pasting it into VLC directly.)

I tried both a mms:// and a http:// link.

Is the mms:// link method supported?
Both methods are supported. Its better to choose the playlist.

What link are you using?

Can you actually see the VLC GUI if you run vlc.exe directly?

With the encoder the VLC instances run in background with no GUI or DOS window when recording.

Can you send me your encoder.log please.

Also in the encoder.props add this to the end of the saveToMp3Command and to the streamAsVideoCommand:

Code:
 -vvv --extraintf=logger --logfile=\"_LOGFILE_\"
try to run again and send me the two additional log files that are produced

Hang in there - I had month of this sort of malarky before it all came good
Reply With Quote
  #17  
Old 03-25-2009, 05:31 PM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Quote:
Originally Posted by deanm View Post
Don’t get me wrong it plays in the HD100 but it just stutters/choppy.

After some testing the files play the same in Windows Player and notice this on the MVP but just not as bad for some reason.

I had already changed the Video Size before I posted the last time but this did nothing.

I think the problem is downloading the stream and not Sage/VLC.

Its like its running out of buffer space. Is there a buffer that can be increased?

Will play around with it some more only tried Radio 1, 1xtra , Radio 2 and Radio 3. For some reason Radio 3 played perfect this morning but not a big fan of there’s.

Which I why I think its more to do with the downloading of the stream.

Going to reboot my router and modem.
So to recap.

The mpeg in your recording dir is choppy when played in WMP (try VLC too please), when played over MVP is about the same, and when played over HD100 is worse.

Try running vlc.exe and do file->open network and paste in the URL of say radio one. Does this sound choppy?

Try tuning the encoder and listening on an extender. After some time take a copy of the mp3 file in the tmp directory. Does that mp3 sound as good as the stream when played directly in VLC?

The thing is its saves the stream to mp3, then transcodes to mpeg TS in a file of SageTVs choosing.

I would like to find out which point in the chain it goes bad - incoming stream, save to mp3, transcode to mpeg, stream to extender.

I had to do some tweaking of config to get things just right so hopefully we just need to do a bit of that for you.
Reply With Quote
  #18  
Old 03-26-2009, 01:50 PM
deanm deanm is offline
Sage Aficionado
 
Join Date: Apr 2005
Location: North East, UK
Posts: 309
Hi

Will try what you asked but its not going to be till next week.

The problem I will have is I run my server headless but will sort that out next week.

Dean
Reply With Quote
  #19  
Old 03-26-2009, 03:50 PM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Thanks for being a trailblazer.

Sorry it is not been instant but you are the first person other than me to have got this far.

Let me reassure that it can work. I been listening to radio on via my extender all day with comskip running in the background, both cores at 100% as a result and its been perfect.

It needs beta testers because I've run out of bugs to fix with it.

So when you feel ready for another crack at it let me know.

If you like we can skype or instant message to get it sorted.

Same offer to anybody else - total support.
Reply With Quote
  #20  
Old 03-26-2009, 04:43 PM
doc's Avatar
doc doc is offline
Sage Fanatic
 
Join Date: Jun 2006
Location: Leicester, England
Posts: 918
I installed this on my work pc today to test it out. Its a 3GHz P4, about 4 years old.

It installed and worked a treat.

I haven't tried it at home on an extender but there was no stuttering at all on the pc itself.

Thanks again for all your hard work
Reply With Quote
Reply

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


Currently Active Users Viewing This Thread: 3 (0 members and 3 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 01:06 AM.


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