[Qt-interest] QFtp uses different commands to log-in / Streaming videos with Phonon from FTP

Martin Engelmann murphi.oss at googlemail.com
Thu May 27 22:11:09 CEST 2010


Hi,

I'm writing an application to download tv recordings from a Humax i-Cord HD 
sattelite receiver (http://gitorious.org/icord-viewer). It has a builtin FTP 
server to access the recordings.

The access to the receiver using the Windows Explorer works fine, in KDE 4.4.2 
I get an error about unrecognized commands on login. The same is true when I 
try to stream a recording using Phonon::MediaSource(QUrl(...)).

Here is the FTP conversation using KDE and Phonon:

220 Welcome to i-CORD HD FTP Connection.
USER HumaxFtp
331 Password required for humaxftp.
pass 0000
500 Syntax error, command unrecognized.


Using QFtp directly in my application I get the following successful dialog:

220 Welcome to i-CORD HD FTP Connection.
USER HumaxFtp
331 Password required for humaxftp.
PASS 0000
230 User logged in, proceed.


Using Wireshark I saw  that the packets sending the PASS 0000 and pass 0000 
commands are identical except from the case sensitivity.

Is there any possibility to influence the case sensitivity of the PASS command? 


When I change the code for the Phonon streaming to use a QNetworkReply 
(obtained from QNetworkAccessManager) then there is the following FTP 
communication, but no start of the playback:

220 Welcome to i-CORD HD FTP Connection.
USER HumaxFtp
331 Password required for humaxftp.
PASS 0000
230 User logged in, proceed.
HELP
214 FTP Server Help.
  i-CORD HD FTP Server. 
214 End
SIZE /Video/.xXx - Triple X_20100430_2015.ts
500 Syntax error, command unrecognized.
TYPE I
200 Port command successful

Has anybody an example how to implement video streaming with Phonon from a FTP 
site?

Cheers, Martin

-- 
Martin Engelmann
murphi.oss at googlemail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100527/0b602235/attachment.bin 


More information about the Qt-interest-old mailing list