|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#21
|
|||
|
|||
Quick Update.
The MP3 files play perfect on the HD100 and MVP. (not tried VLC) So its looking like the covertion to MPEG is causing the problem. Is there a command I can use to stop the encoder.jar file once started. Dean |
#22
|
|||
|
|||
Quote:
Also there is a property: mp3BufferSize=3000 this states how big the mp3 file should be before combing with video. Try making that bigger. As for stopping. If you mean just stop the encoder running. Just ctrl C in the DOS window you started it in. I usually wait until Sage finishes sending "NOOP" messages as you can usually start it up and Sage can still talk to it. Sometime though you have to go to source setup and select the encoder. Then Sage magically starts talking to the encoder again. If you mean stop recording then that should be just stop watching in SageTV. VLC processes should be killed. Now playing updates should stop. |
#23
|
|||
|
|||
Web Radio Encoder - no audio
Hi
Firstly - thanks for creating this. The absence of audio only streams in SageTV is a real disappointment for me. I've set everything up (hopefully) as per the instructions. I can see the default UK stations appear in the guide but when I tune to a radio station there's a hang in the SageTV UI and no audio comes through (sometimes accompanied by an error message relating to unplayable video). I can see that the mp3 and mpg files are being generated. They are both playable but the mpg doesn't seem to have video content. I've switched on debug and there seems to be a problem with the channel logos: Code:
access_directory error: C:\Program Files\webfeed\webfeedencoder\tmp\BBCWrld.jpg: No such file or directory access_file debug: opening file `C:\Program Files\webfeed\webfeedencoder\tmp\BBCWrld.jpg' access_file error: cannot open file C:\Program Files\webfeed\webfeedencoder\tmp\BBCWrld.jpg (No such file or directory) cdda debug: trying .cue file: C:\Program Files\webfeed\webfeedencoder\tmp\BBCWrld.cue Apologies if I'm doing something daft - but any ideas? Many thanks! |
#24
|
|||
|
|||
Hi,
Firstly, thanks for being a beta tester! What should happen is that 1. in your tuning.props the channels should specify a URL where a logo image file can be found for the channel. 2. When the encoder first starts it downloads that image to the SageTV channelLogos directory (useful for the channel guide). 3. Then it creates a new version with a black border in the webfeedencoder tmp directory. 4. Then it starts listening for connection and uses the images in the tmp directory for the video. I guess the tmp image is not there. There are some bugs with the image download process fixed in the next version (probably two weeks away). I would: 1. Check that the icon URL for the channel can be reached and returns an image. 2. Stop the encoder. 3. Clear out any radio channel images from SageTV/ChannelLogos (careful not to deleted your TV ones) 4. Clear out any images in the webfeedencoder tmp directory. 5. Run the encoder. In the first few lines of the encoder.log file there should be lots of stuff about downloading images and creating new ones in the tmp directory. Check the tmp directory to see if the files have been created. If any are missing you can try stop and starting the encoder to see if it fills in the gaps. Good luck. Michael |
#25
|
||||
|
||||
Weird problem unzipping it...
When I open the zip archive (built-in unzipper in Vista x32), there's a 0-length file in addition to every directory name, and I'm having issues getting it to unzip at all because of the identical filenames. Anyody else having this issue? It doesn't happen with several other random samples of zip files I have.
__________________
SageTV V7 (WHS), Diamond UI Server: WHS with Xeon X3350, 4GB ECC, ASUS P5BV-C/4L, recording into a 6.6TB Drive pool Tuners: 4 (2x HDHR) Clients: 2x HD300, 1x HD200 Extenders, 1x Placeshifter 2x Roku XD |
#26
|
|||
|
|||
Quote:
I unzip with winrar and it does the right thing but now having tried it with vista I do notice the the built-in vista extractor does create these wierd files. Ho-hum. Lesson learned. Will zip it properly next time. Will repackage soon as life, wife and kids let me -might be later today or tomorow morning. In the meantime if you have another extractor available to you that you could use to unzip that would also solve the issue. Michael |
#27
|
|||
|
|||
Progress...
Hi
In relation to the unzip problem - I also had to change the permissions of the folder I was using to get this problem to go away. Vista seems to interfere with anything you try to put in directories such as Program Files. After changing the permissions I successfully used WinRar to extract. Michael - thanks very much for your reply. There doesn't seem to be any sign of an attempt to download the logo in the logs. To test the mechanism I've manually downloaded the Radio 1 logo using the URL in the config file and saved it to the tmp directory in jpeg format. Success - Radio 1 works perfectly! Any ideas on why this might be happening? In the short term I can manually download all of the logos I require. Thanks again for your work on this! One more issue - I've noticed in the vlc logs that the messages: Code:
main warning: feeding synchro with a new reference point trying to recover from clock gap main warning: clock gap, unexpected stream discontinuity main warning: feeding synchro with a new reference point trying to recover from clock gap mux_ts warning: packet with too strange dts (dts=256619623000,old=256619645123,pcr=256619645123) main warning: clock gap, unexpected stream discontinuity Cheers Ian |
#28
|
|||
|
|||
Quote:
On the permissions... hmmmmm well... you can unzip the encoder to anywhere so maybe program files is not the best choice after all - though would have made sense. On the logos - yeah thats a way of getting it working - possibly won't look as pretty. But I'm surprised my fix didn't work for you cause I've had to do that one a few times. Perhaps (in the encoder.props the sagetv.dir property doesn't point to where SageTV is installed? The encoder adds to the contents of that property to end up (usually) here: C:\Program Files\SageTV\SageTV\ChannelLogos. This is where it downloads images from the internet to and then processes then a bit for video purposes and puts them here: webfeedencoder\tmp. It may be worth deleting the downloaded (radio images from the ChannelLogos directory and deleting them from the tmp directory and stopping and starting the encoder. The logs\encoder.log file should show lines talking about downloading, scaling and overlaying images. If it just does this: Code:
27-Mar-2009 17:10:45 main uk.co.mdjcox.webfeedencoder.Encoder main INFO: Web feed network encoder starting 27-Mar-2009 17:10:45 ServerThread uk.co.mdjcox.webfeedencoder.ServerThread listenForConnections INFO: Listening on port 5000 for connections from sageTV On the vlc logs files - it is better just to turn that logging off. VLC moans a lot on -vvv (which means verbose logging). The important thing is: does it sound all right. Does it show the track now playing? Thanks for persevering. Michael |
#29
|
|||
|
|||
Almost there!
Hi
Thanks for the info. I found out what was causing the encoder to fail to download the logos. I had sagetv.dir set to the default, which is where my installation of SageTV is. However... Vista uses a Virtual Store to 'protect' certain files and directories. Apps that try to write to the SageTV directory (apparently including SageTV itself) actually save data to a Virtual Store, so the Channel Logos are in C:\Users\Ian\AppData\Local\VirtualStore\Program Files\SageTV\SageTV\ChannelLogos. I assume that I've done something wrong when I installed SageTV. In any case once I changed sagev.dir and deleted the existing radio icons I could see the encoder downloading files.The only problems I now have are (using your example config) HeartFM and 977 Hitz. From the logs I'm guessing that any logos that are already jpeg don't get imported properly (the working logos are png or gif). Does this make sense to you? A relevant part of the log file is: Code:
29-Mar-2009 21:27:26 main uk.co.mdjcox.webfeedencoder.ServerThread cacheImage INFO: Downloading http://img.mediaspanonline.com/5899/3351686.jpg content type image/jpeg of len=13026 29-Mar-2009 21:27:26 main uk.co.mdjcox.webfeedencoder.ServerThread cacheImage INFO: Scaling image C:\Users\Ian\AppData\Local\VirtualStore\Program Files\SageTV\SageTV\ChannelLogos\\HeartFM.jpg 29-Mar-2009 21:27:26 main uk.co.mdjcox.webfeedencoder.ServerThread cacheImage INFO: Scaling image: Failed to rename C:\Users\Ian\AppData\Local\VirtualStore\Program Files\SageTV\SageTV\ChannelLogos\HeartFM.jpg to C:\Users\Ian\AppData\Local\VirtualStore\Program Files\SageTV\SageTV\ChannelLogos\HeartFM.jpg.old trying again 29-Mar-2009 21:27:27 main uk.co.mdjcox.webfeedencoder.ServerThread cacheImage INFO: Scaling image: Failed to rename C:\Users\Ian\AppData\Local\VirtualStore\Program Files\SageTV\SageTV\ChannelLogos\HeartFM.jpg to C:\Users\Ian\AppData\Local\VirtualStore\Program Files\SageTV\SageTV\ChannelLogos\HeartFM.jpg.old trying again 29-Mar-2009 21:27:27 main uk.co.mdjcox.webfeedencoder.ServerThread cacheImage INFO: Scaling image: Failed to rename C:\Users\Ian\AppData\Local\VirtualStore\Program Files\SageTV\SageTV\ChannelLogos\HeartFM.jpg to C:\Users\Ian\AppData\Local\VirtualStore\Program Files\SageTV\SageTV\ChannelLogos\HeartFM.jpg.old trying again 29-Mar-2009 21:27:27 main uk.co.mdjcox.webfeedencoder.ServerThread cacheImage INFO: Scaling image: Failed to rename C:\Users\Ian\AppData\Local\VirtualStore\Program Files\SageTV\SageTV\ChannelLogos\HeartFM.jpg to C:\Users\Ian\AppData\Local\VirtualStore\Program Files\SageTV\SageTV\ChannelLogos\HeartFM.jpg.old trying again 29-Mar-2009 21:27:27 main uk.co.mdjcox.webfeedencoder.ServerThread cacheImage INFO: Scaling image: Failed to rename C:\Users\Ian\AppData\Local\VirtualStore\Program Files\SageTV\SageTV\ChannelLogos\HeartFM.jpg to C:\Users\Ian\AppData\Local\VirtualStore\Program Files\SageTV\SageTV\ChannelLogos\HeartFM.jpg.old trying again 29-Mar-2009 21:27:27 main uk.co.mdjcox.webfeedencoder.ServerThread cacheImage WARNING: Exception scaling image java.io.IOException: Failed to rename C:\Users\Ian\AppData\Local\VirtualStore\Program Files\SageTV\SageTV\ChannelLogos\HeartFM.jpg to C:\Users\Ian\AppData\Local\VirtualStore\Program Files\SageTV\SageTV\ChannelLogos\HeartFM.jpg.old at uk.co.mdjcox.webfeedencoder.ServerThread.cacheImage(ServerThread.java:158) at uk.co.mdjcox.webfeedencoder.ServerThread.initialise(ServerThread.java:54) at uk.co.mdjcox.webfeedencoder.ServerThread.<init>(ServerThread.java:34) at uk.co.mdjcox.webfeedencoder.Encoder.main(Encoder.java:45) 29-Mar-2009 21:27:27 main uk.co.mdjcox.webfeedencoder.ServerThread cacheImage INFO: Overlaying image C:\Users\Ian\AppData\Local\VirtualStore\Program Files\SageTV\SageTV\ChannelLogos\\HeartFM.jpg 29-Mar-2009 21:27:27 main uk.co.mdjcox.webfeedencoder.ServerThread cacheImage WARNING: Exception overlaying image javax.imageio.IIOException: Can't read input file! at javax.imageio.ImageIO.read(Unknown Source) at uk.co.mdjcox.webfeedencoder.ServerThread.overlay(ServerThread.java:244) at uk.co.mdjcox.webfeedencoder.ServerThread.cacheImage(ServerThread.java:177) at uk.co.mdjcox.webfeedencoder.ServerThread.initialise(ServerThread.java:54) at uk.co.mdjcox.webfeedencoder.ServerThread.<init>(ServerThread.java:34) at uk.co.mdjcox.webfeedencoder.Encoder.main(Encoder.java:45) |
#30
|
|||
|
|||
Hi,
Thanks for your investigations. My Vista SageTV has channelLogos in the regular place - but some of SageTV properties are in the virtual store which has caught me out before. I'll add a note to the properties file and installation instructions for this one. On the exceptions - this i the bug I believe I have fixed now. The work around I used on my 0.9.0 installation was to clear out the icons from tmp and ChannelLogos and re run. It took several repeats of this process but eventually it all images worked. Michael |
#31
|
|||
|
|||
Another Update
Quote:
If I play the MP3 in VLC it plays fine. If I play the video in VLC then it’s the same as the HD100 choppy. I have noticed that the time line in VLC seems to jump around and I think that is the problem. If you play this back on the MVP then the play back slows down and speeds up. I should add the problem seems to be with Radio 1, 1xtra and Radio 2 On a good note I have added Absolute Radio (http://network.absoluteradio.co.uk/c...x?service=vrbb) and it works perfect with vb set to 2000. I can send you samples of both files if you would like. The reason I was asking about how to stop this from running is because I noticed if I closed the DOS window then the MP3 file was still growing. It looks like the VLC process is still running if you don’t stop play back in sage first. Its just a shame you cant just stream the MP3 to the extender. If I play the MP3 you can see the file growing on the info screen (SageMC) but it only plays to the time of when you started the play back. So if the length is 1min then it will play 1 min even if the file is then grown to 2 mins. (Can this be done via online services I'm sure some of them are audio only. Come on Sage pull you finger out and get this sorted) One more point you mentioned in your OP that you may be able to change the video to something different. The reason I ask is because I’m sure I will have screen burn-in if I just have a static logo. Not sure how all this works but could it be possible to stream BBC iPlayer into VLC using the new iPhone steams. Dean. |
#32
|
|||||
|
|||||
Quote:
They may be something else going on here though because I do not share your unfortunate listening experience for BBC channels now - although I did have in the past. Out of ideas at the moment on this one - need to try and reproduce and fix. Quote:
Quote:
Quote:
Quote:
Regards, Michael |
#33
|
|||
|
|||
BETA test status report
Issues so far:
Thanks for the feedback so far. Will be releasing 0.9.1 at the weekend or shortly after. There have been over 40 downloads but only 4 users chatting in this thread so if there is any more feedback good or bad please let me know. Thanks, Michael Last edited by michaeldjcox; 04-03-2009 at 01:44 AM. |
#34
|
|||
|
|||
help
I am sorry but i don't know what i am doing wrong but is no working for me.
thanks for your help |
#35
|
|||
|
|||
Hi,
Where is it going wrong please? Have you been able to install? Is it a problem with audio or video? If you can attach the file: logs/encoder.log Michael |
#36
|
|||
|
|||
I have no "Add source" option in "setup video sources" menu, as I don't have any input source card in my configuration. Is there any solution for me like copying the properties of Webradio in appropriate files directly instead of configuring the radio source via control panel?
|
#37
|
|||
|
|||
Quote:
Unless you using a really old version of SageTV I'm guessing whats happened is that you missed the step in the instructions entitled: Edit Sage.properties Shutdown sage, follow the instructions in the section above, then restart SageTV. You should be allowed to add WebRadio as a new source. Let me know how you get on.. Michael |
#38
|
|||
|
|||
Later today or tomorrow morning for the next version...
|
#39
|
|||
|
|||
Quote:
__________________
Running SageTV on unRAID via Docker Tuning handled by HDHR3-6CC-3X2 using OpenDCT |
#40
|
|||
|
|||
Cant wait.
Just to let everyone know I have been working with Michael to iron out my issues. I was advised to add the following line to the end of streamAsVideoCommand with in the encoder.props --rc-quiet --sout-transcode-audio-sync I’m please to report that it has been working for over a week now without and problems. Was wondering has anyone else been having the same problem or is it just my set up? |
Tags |
extender, internet video streaming, mvp, online videos, radio |
Currently Active Users Viewing This Thread: 10 (0 members and 10 guests) | |
|
|
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 |