ftp settings (1 Viewer)

KGL

Member
August 12, 2015
5
5
Home Country
Australia Australia
I want to play videos from my Topfield PVR on my computer. The Topfield doesn't have a Media Server (eg DNLA) facility but it does have an ftp server. I can connect to the PVR using Filezilla and on my Android phone and tablet using an app called Dice Player which plays the files using ftp.

I am hoping to do the same with MediaPortal but so far have not been able to get the connection. The IP address is a static IP address set in my router.

In the configuration dialogue box I have the following settings:
Visual Name: Topfield
Media Folder: 192.168.1.105
Default layout: List
This is a remote ftp folder is ticked
ftp server: 192.168.1.108
Port is 21
Login and passwords are correct.
Folder on the remote ftp server: /Datafiles

When I open MP and go to Videos, I see Topfield listed but it does not connect. It is listed in red. Does this indicate it can't be found?

I am using Windows 10

Thanks

Greg
 

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,578
    8,228
    Home Country
    New Zealand New Zealand
    Hello and welcome Greg! :)

    Well done for grabbing the log files - that's really helpful. (y)

    I've never tried to set up an FTP share before, but here's what the log files say:
    [2015-08-12 15:34:23,670] [Log ] [MPMain ] [INFO ] - FTPConnection: Connect to ftp://192.168.1.108:21 with user admin
    [2015-08-12 15:34:28,220] [Log ] [MPMain ] [INFO ] - VirtualDirectory:unable to chdir to remote folder:/Datafiles reason:/Datafiles: No such file or directory (code=550) at EnterpriseDT.Net.Ftp.FTPControlSocket.ValidateReply(FTPReply reply, String expectedReplyCode)
    at EnterpriseDT.Net.Ftp.FTPClient.ChDir(String dir)
    at MediaPortal.Util.VirtualDirectory.GetDirectoryExt(String strDir, Boolean loadHidden)

    That would make me wonder if the spelling or casing of "Datafiles" is correct.
     

    KGL

    Member
    August 12, 2015
    5
    5
    Home Country
    Australia Australia
    Thanks for the suggestion. It resolved the problem. Looking more closely I found it was actually DataFiles.

    Cheers
     

    KGL

    Member
    August 12, 2015
    5
    5
    Home Country
    Australia Australia
    Okay. I have discovered MP will not play the file over ftp like Dice Player does on the Android OS. It would only play when I downloaded the file.We record everything on the PVR and sometimes I need to lie in bed when I have back problems and I was hoping to access the recordings on the PC rather than the Tablet. It does not seem to be any alternative other than down loading the files to watch.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,578
    8,228
    Home Country
    New Zealand New Zealand
    To be honest I'm not really surprised. FTP is a file transfer protocol, not a streaming protocol. Therefore by definition you have to download the file to be able to play it. The fact that the Dice Player you've mentioned is able to do this is probably particular to their player and certain file formats. Having said that, I'd be interested to see the log files. I'd have expected MP would download the file to a temp folder and play it from there. That may take awhile for long recordings... but it should work.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,578
    8,228
    Home Country
    New Zealand New Zealand
    Thanks :)

    The log shows that MP is trying to download at least one of the files:
    [collapse]
    [2015-08-12 18:51:55,664] [Log ] [MPMain ] [INFO ] - FTPConnection: Connect to ftp://192.168.1.108:21 with user admin
    [2015-08-12 18:52:28,414] [Log ] [FtpConnection] [INFO ] - FTPConnection: Start download: Gardening Australia.mpg->192.168.1.108\Gardening Australia.mpg
    [2015-08-12 18:52:28,429] [Log ] [SubtitleLoader] [INFO ] - FTPConnection: Connect to ftp://192.168.1.108:21 with user admin
    [2015-08-12 18:52:28,476] [Log ] [FtpConnection] [WARN ] - FTPConnection: Download of 192.168.1.108\Gardening Australia.mpg stopped
    [2015-08-12 18:52:28,523] [Log ] [FtpConnection] [ERROR] - Exception: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files (x86)\Team MediaPortal\MediaPortal\192.168.1.108\Gardening Australia.mpg'.
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
    at System.IO.FileStream..ctor(String path, FileMode mode)
    at EnterpriseDT.Net.Ftp.FTPClient.GetBinary(String localPath, String remoteFile)
    at EnterpriseDT.Net.Ftp.FTPClient.Get(String localPath, String remoteFile)
    at MediaPortal.Util.FtpConnectionCache.FtpConnection.StartDownLoad(Object sender, DoWorkEventArgs e) Message: Could not find a part of the path 'C:\Program Files (x86)\Team MediaPortal\MediaPortal\192.168.1.108\Gardening Australia.mpg'. Site : Void WinIOError(Int32, System.String) Source : mscorlib Stack Trace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
    at System.IO.FileStream..ctor(String path, FileMode mode)
    at EnterpriseDT.Net.Ftp.FTPClient.GetBinary(String localPath, String remoteFile)
    at EnterpriseDT.Net.Ftp.FTPClient.Get(String localPath, String remoteFile)
    at MediaPortal.Util.FtpConnectionCache.FtpConnection.StartDownLoad(Object sender, DoWorkEventArgs e)[/collapse]

    I suspect the 192.168.1.108 folder does not exist in c:\Program Files (x86)\Team MediaPortal\MediaPortal, and that if you created it then it would start to work.
     

    KGL

    Member
    August 12, 2015
    5
    5
    Home Country
    Australia Australia
    I now understand more of what the fields relate to in the config screen.

    Visual Name: Topfield
    Media Folder: 192.168.1.108 - I used the navigation button to create a new folder called Topfield7170 under This PC->Videos and it works.
    Default layout: List

    I obviously thought this related to the source media location!

    It does not "stream" as you said but it downloads the file before it can be played. I can live with that.

    Thanks for your help.

    Greg
     

    Users who are viewing this thread


    Write your reply...
    Top Bottom