I needed a way to get the show images from the server in a Win 8 metro app on a client machine. Nothing I tried worked (seriously walled garden) so I looked into using public/Download.ashx but I would get a E_NETWORK_ERROR in my app because of the way the response/content-type was being written from the web service.
I changed "case FanArt:" to work the way I needed it. Images are now displayed inline in IE instead of being downloaded and displayed in a separate app.
Code:
case (int)InternalFiles.FanArt:
/*
Can be used to download any image.
Supports the following variables (trailing backslash not required):
[[DataDir]] = NPVR data directory.
[[MediaDir]] = NPVR data directory + "Media\\"
[[MediaShowsDir]] = NPVR data directory + "Media\\Shows\\"
Notes:
DO NOT INCLUDE FILE EXTENSIONS... the request will automatically check for ".png" then for ".jpg".
Filenames should already be parsed to remove invalid filename characters and trimmed.
If no image is found, it will return "no_album_art.jpg".
Example:
// Download the image for the show "2 Broke Girls *" from Media\Shows:
{
string showName = "2 Broke Girls *";
string url = @"http://localhost:8866/public/download.ashx/-11,1?[[MediaShowsDir]]" + string.Join(string.Empty, rName.Split(System.IO.Path.GetInvalidFileNameChars())).Trim();
// Download the image from "url"
}
*/
fileName = path.Replace("[[DataDir]]", SettingsHelper.GetInstance().GetDataDirectory());
fileName = fileName.Replace("[[MediaDir]]", SettingsHelper.GetInstance().GetDataDirectory() + "Media\\");
fileName = fileName.Replace("[[MediaShowsDir]]", SettingsHelper.GetInstance().GetDataDirectory() + "Media\\Shows\\");
if (File.Exists(fileName + ".png"))
{
fileName += ".png";
Response.ContentType = "image/png";
}
else
{
if (File.Exists(fileName + ".jpg"))
fileName += ".jpg";
else
fileName = SettingsHelper.GetInstance().GetDataDirectory() + "web\\themes2\\common\\graphics\\no_album_art.jpg";
Response.ContentType = "image/jpeg";
}
Image fanArtImg = new Bitmap(fileName);
ImageConverter fanArtConverter = new ImageConverter();
Response.BinaryWrite((byte[])fanArtConverter.ConvertTo(fanArtImg, typeof(byte[])));
Response.End();
fanArtImg.Dispose();
seekable = false;
break;
I have a fine picture, but cannot get sound.
I am an utter newbie â despite being an âolderâ gentleman.
Can someone help? I tried searching in the forums â could not come up with an answer. Thanks!
⢠Tuner â Avermedia / AverTV Hybrid TV Volar Max. I bought this a long time ago, and have been using it with MediaCenter with no problems. So I assume I have all the drivers / etc. on this machine. I want to move to Windows 8, and thought NextPVR looked like a better bet than MediaCenter.
⢠PC â Windows 7.
⢠TV Signal â over the air digital.
⢠Next DVR â latest version: 3.2.9.
Problem. I get a fine picture â after finally figuring out to set the Video Decoder to AVerMedia!
But I cannot get sound, no matter what option I choose. It also records fine, but no sound on live TV.
And I really do not understand the sound options on over the air digital. What am I doing wrong? And a pointer to a tutorial on all of this would be nice too.
Getting exception after upgrade to 3.2.9. I've rebooted the machine and still have a problem. Is 8968 a new port? I have not touched the FW in months. I do however have HDHomeRun, not sure if that is a factor.
LOG:
Code:
2014-03-29 10:54:46.770 [DEBUG][4] OnStart()
2014-03-29 10:54:46.786 [INFO][4] Using local in-process recording service
2014-03-29 10:54:46.786 [DEBUG][6] Starting MVP server 1
2014-03-29 10:55:01.427 [DEBUG][4] RecordingServiceProxy@exit
2014-03-29 10:55:01.833 [INFO][4] RecordingService.Startup()
2014-03-29 10:55:01.833 [INFO][4] Starting remoting service (on port 8968)
....
2014-03-29 10:55:51.134 [DEBUG][16] checking: HDHomeRun Device 1318E35A
2014-03-29 10:55:51.134 [DEBUG][16] enabled and present
2014-03-29 10:55:51.134 [DEBUG][16] has channel
2014-03-29 10:55:51.134 [DEBUG][16] live tv is possible
2014-03-29 10:55:51.138 [DEBUG][16] [email=HDHomeRunRecorder@1]HDHomeRunRecorder@1[/email]
2014-03-29 10:55:51.138 [DEBUG][16] [email=HDHomeRunRecorder@2.0]HDHomeRunRecorder@2.0[/email]
2014-03-29 10:55:51.138 [DEBUG][16] [email=HDHomeRunRecorder@2.1]HDHomeRunRecorder@2.1[/email]
2014-03-29 10:55:51.138 [DEBUG][16] [email=HDHomeRunRecorder@2.2]HDHomeRunRecorder@2.2[/email] nextPort=36312
2014-03-29 10:55:51.138 [DEBUG][16] [email=HDHomeRunRecorder@2.2.0]HDHomeRunRecorder@2.2.0[/email]
2014-03-29 10:55:51.138 [DEBUG][16] HDHomeRunRecorder@2.2.0@allocated
2014-03-29 10:55:51.138 [DEBUG][16] [email=HDHomeRunRecorder@2.3]HDHomeRunRecorder@2.3[/email]
2014-03-29 10:55:51.138 [DEBUG][16] Allocated port: 36312
2014-03-29 10:55:51.138 [DEBUG][16] [email=HDHomeRunRecorder@3]HDHomeRunRecorder@3[/email]
2014-03-29 10:55:51.138 [DEBUG][16] About to start HDHR device. Checking status for information sake... (could tell if it's already in use elsewhere)
2014-03-29 10:55:51.138 [DEBUG][16] Executing: C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe 1318E35A get /tuner0/status
2014-03-29 10:55:51.211 [DEBUG][16] Status: ch=none lock=none ss=0 snq=0 seq=0 bps=0 pps=0
2014-03-29 10:55:52.311 [DEBUG][16] [email=SetTarget@2]SetTarget@2[/email]
2014-03-29 10:55:52.311 [DEBUG][16] Executing: C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe 1318E35A set /tuner0/vchannel 2
2014-03-29 10:55:52.885 [DEBUG][16] ForcedIP.xml does not exists
2014-03-29 10:55:52.912 [DEBUG][16] 1318E35A can be found via adapter with ip address: 192.168.1.30
2014-03-29 10:55:52.912 [DEBUG][16] Executing: C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe 1318E35A set /tuner0/target rtp://192.168.1.30:36312
2014-03-29 10:55:52.913 [DEBUG][16] [email=SetTarget@2]SetTarget@2[/email]
2014-03-29 10:55:52.914 [DEBUG][16] Allocated Handle: 1
2014-03-29 10:55:52.915 [DEBUG][16] Live TV handle: 0x250001
EXCEPTION:
Code:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.************** Exception Text **************
System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it 127.0.0.1:8968
Server stack trace:
at System.Net.Sockets.Socket.Connect(IPAddress[] addresses, Int32 port)
at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket(AddressFamily family)
at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket()
at System.Runtime.Remoting.Channels.RemoteConnection.GetSocket()
at System.Runtime.Remoting.Channels.SocketCache.GetSocket(String machinePortAndSid, Boolean openNew)
at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream)
at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at NShared.IRecordingService.RenewStream(Int32 handle)
at NextPVR.Players.LiveTvPlayer.RefeshOSD()
at NextPVR.ControllerForm.timer1_Tick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
....
I have installed Haup Wintv v3.2 and can see the satellite channel in WinTV
I see the card in NPVR device settings
I added the channels via xmltv file and had s-video selected
However, when I try liveTV, I just get blank screen. Read about SoftTV but not sure if anything needed beyond running Haup install?
I also tried to play some GBPVR recordings (mpg) and they do not play (acts like empty file)
I've been using NPVR for over a year now and love it. One thing that has been nagging me is that I have erratic results with the nightly OTA EPG update. I'll usually only see 2-3 channels populated. Yet, if I use the manual update button it consistently grabs all channels' data.
I notice when I perform the manual update that it counts down 60secs for each station -- not sure if that is relevant to my issue. I only have 8 stations mapped so I do not think this is a time-out/sleep issue since hibernate is set to 30mins. Also under 'Misc' I have checked the box to permit updates during live tv -- although at that scheduled time it should not matter.
I changed my BBC Freesat channel EPG options from XMLTV using Digiguide to the new Freesat option as per the release notes "added a new 'Freesat (UK)' EPG option, which tells that app to use the existing DVB EPG functionality, but only from the Freesat EPG transponder (cutting down the time to fetch the EPG)" but failed to download the EPG information after running an update.
Can somebody please explain how to make this option work.
I am having an intermittent issue with EPG data getting corrupted or something. When I wake up in the morning and check the status on my computer running NextPVR, I will see that the EPG data will have the correct blocking of shows but wont have any descriptions of shows see my image. I have attached the Logs, I have read them and see there is some sort of error but don't understand it. As a remedy I would go in to the settings and update EPG manually and that resolves it until the next time. This time the problem happened again Friday so I thought lets let it set for another day and see if it updates and it did not. So Please help if you can I am evaluating Next PVR to see if it is a good fit for my very casual TV viewing as I download most of my shows.
This is not exactly specific to 3.2.9, but also happens to some extent with 3.1.1, but here is the problem thus far:
Using Bitdefender Free anti-virus (a cloud-based service) causes NPVR to not record any show the next day. Apparently this is due to the overnight scan that Bitdefender performs, which seems to lock up NPVR. When it happened on 3.1.1, I simply uninstalled Bitdefender and the problem went away. I also run BOINC for distributed computing, and I thought that might be a part of the problem.
With a new installation of Win7 64-bit and a different version of BOINC I tried again with Bitdefender and NPVR 3.1.1. Initially, everything worked fine. But then Bitdefender flagged a file as suspicious (I suspect a false positive, as it was just a file on SourceForge.net), and then this morning I upgraded to NPVR 3.2.9. Now nothing will record, and un-installing Bitdefender does not fix it. A show folder and title will be created, but I get only 0 bit recordings. I have tried going back to 3.1.1 and various registry cleanings and re-installations, but that does not fix it. The tuner (HDHomeRun Prime) seems to be working fine, and seems to be detected properly by NPVR insofar as I can see.
Also, the NPVR recording service stops, usually as soon as the recording starts; restarting it does not help, and it just stops again.
I haven't seen 0 bit recordings in a while and forget the tricks to fix it. Any ideas?
EDIT: The problem has been fixed by uninstalling 3.2.9, re-installing Microsoft Visual C++ 2008 (vcredist_x86.exe) and also DirectX. But the DirectX was installed from the full redistributable this time; I had tried the web installer already, and that did not fix it. Finally, I re-installed 3.1.1 and it is working again. Whether there is a problem with 3.2.9 or not I don't know at this point, but will stick with what works.
1. Decoder
x264 HD live-tv will not play video with LAV decoder (works fine in mpc-hc) I get a black screen and and only audio. NPVR is still somewhat responsive, but the popup miniepg (up key) does not show up either. Same channel plays and behave fine with microsoft codec. Also mpg2 (sd) plays and behave fine with LAV.
2. Renderer (LIVE-TV)
Madvr has some issues, even though NPVR is in window mode it draws fullres content, so only part of the video is visible. So there is a missmatch NPVR is only showing part of the tv content, this allso apply to miniepg that is rendered mostly outside the window. If I scale window size with mouse video is also scaled to fit inside npvr window, but miniepg is not scaled and stay mostly outside of view. Actually Madvr playback is not smooth at all so it seems it's not a good match for NPVR.