|
||||||||
FTP upload to Humax |
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Forum Member
Join Date: May 2009
Posts: 103
|
FTP upload to Humax
If you've uploaded a file to your HDR and found it didn't appear in the Media menu, you'll have not updated the .hmt file to tell the system where the other files are...
Here's an upload tool for Linux users (needs perl and curl): Code:
#!/usr/bin/perl
use Fcntl;
my $filename = shift;
my $server = shift;
my $folder = shift;
if (!$filename || !$server) {
print STDERR "$0 filename server [destination folder]\n";
exit 1;
}
my ($name) = $filename =~ /^([^.]+)\./;
my $path = "Video/". ($folder ? "$folder/" : "");
my $dest = "/mnt/hd3/$path$name";
open HMT, "+<$name.hmt";
sysseek(HMT, 33, SEEK_SET);
syswrite(HMT,"$dest\0");
close HMT;
system "curl -u HumaxFTP:0000 --ftp-create-dirs -P - ".
"-T '$name.{ts,nts,hmt}' 'ftp://$server/$path/'";
Last edited by nowster : 16-01-2011 at 20:23. Reason: typo |
|
|
|
|
Please sign in or register to remove this advertisement.
|
|
|
#2 |
|
Forum Member
Join Date: Jun 2010
Location: Perchede, France
Posts: 1,936
|
Quote:
If you've uploaded a file to your HDR and found it didn't appear in the Media menu, you'll have not updated the .hmt file to tell the system where the other files are...
Here's an upload tool for Linux users (needs perl and curl): Code:
#!/usr/bin/perl
use Fcntl;
my $filename = shift;
my $server = shift;
my $folder = shift;
if (!$filename || !$server) {
print STDERR "$0 filename server [destination folder]\n";
exit 1;
}
my ($name) = $filename =~ /^([^.]+)\./;
my $path = "Video/". ($folder ? "$folder/" : "");
my $dest = "/mnt/hd3/$path$name";
open HMT, "+<$name.hmt";
sysseek(HMT, 33, SEEK_SET);
syswrite(HMT,"$dest\0");
close HMT;
system "curl -u HumaxFTP:0000 --ftp-create-dirs -P - ".
"-T '$name.{ts,nts,hmt}' 'ftp://$server/$path/'";
|
|
|
|
|
|
#3 |
|
Forum Member
Join Date: May 2009
Posts: 103
|
Quote:
Perhaps you need to do ths yourself.
|
|
|
|
|
|
#4 |
|
Forum Member
Join Date: Aug 2004
Location: North West UK
Posts: 292
|
Have I missed something? Is there now a FTP server running (or available) for the HDR?
|
|
|
|
|
|
#5 |
|
Forum Member
Join Date: May 2005
Location: Redditch Worcs
Posts: 17,289
|
Quote:
Have I missed something? Is there now a FTP server running (or available) for the HDR?
. It's in the Foxsat-hdr threads on AV forums. Extremely clever poster figured it out based on the work done to crack the icord.
|
|
|
|
|
|
#6 |
|
Forum Member
Join Date: Oct 2008
Location: Worcester
Posts: 4,185
|
Quote:
Have I missed something? Is there now a FTP server running (or available) for the HDR?
|
|
|
|
|
|
#7 |
|
Forum Member
Join Date: Jan 2011
Location: North East England
Posts: 54
|
Quote:
If you've uploaded a file to your HDR and found it didn't appear in the Media menu, you'll have not updated the .hmt file to tell the system where the other files are...
|
|
|
|
|
|
#8 |
|
Forum Member
Join Date: Oct 2004
Location: Buckingham
Posts: 28,537
|
Quote:
Where have you been
. It's in the Foxsat-hdr threads on AV forums. |
|
|
|
|
|
#9 |
|
Forum Member
Join Date: Jun 2010
Location: Perchede, France
Posts: 1,936
|
Quote:
Would you prefer I keep my findings to myself and not share? What if the people who had worked out how to get FTP working on the HDR or who wrote AV2HDR had kept their knowledge to themselves?
|
|
|
|
|
|
#10 |
|
Forum Member
Join Date: Dec 2008
Posts: 67
|
Quote:
You've raised a good point there nowster. The file path stored in the HMT file wasn't a problem when the only means to copy was via USB, as the path could be hard coded. The box took care of the rest when you copied it over to HDD. Now with FTP you can copy, or move, a file from one sub-directory to another and there is no automatic mechanism to update the path.
Just thought it was strange, the folder I had created on the HDR disappeared from the media list when I loaded files created with AV2HDR, always worked with USB! |
|
|
|
|
|
#11 |
|
Forum Member
Join Date: May 2009
Posts: 103
|
The bit of perl code posted above fixes the location information in the .hmt file, then uploads the trio of files (.ts, .nts, and .hmt) to that locaion on the box via FTP (using the curl program).
perl and curl are available for Windows. They're command line only. |
|
|
|
|
|
#12 |
|
Forum Member
Join Date: May 2005
Location: Redditch Worcs
Posts: 17,289
|
Quote:
You've raised a good point there nowster. The file path stored in the HMT file wasn't a problem when the only means to copy was via USB, as the path could be hard coded. The box took care of the rest when you copied it over to HDD. Now with FTP you can copy, or move, a file from one sub-directory to another and there is no automatic mechanism to update the path.
Not tried this but if you set the destination folder as the internal HDD video folder and sub folder and write the 3 files using AV2HDR, won't AV2HDR sort that out automatically ? Regards Graham |
|
|
|
|
|
#13 |
|
Forum Member
Join Date: May 2009
Posts: 103
|
Quote:
Hi Ray-don
...won't AV2HDR sort that out automatically ? The path stored in the .hmt file needs to be of the form: /mnt/hd3/Video/<folder>/<filename_before_full_stop> eg. /mnt/hd3/Video/Pages from Ceefax_20110117_0415 or /mnt/hd3/VIdeo/QI XL/QI XL_20110115_2100 Note that they're "/" not "\". |
|
|
|
|
|
#14 |
|
Forum Member
Join Date: Jan 2011
Location: North East England
Posts: 54
|
Quote:
Hi Ray-don
Not tried this but if you set the destination folder as the internal HDD video folder and sub folder and write the 3 files using AV2HDR, won't AV2HDR sort that out automatically ? Regards Graham |
|
|
|
|
|
#15 |
|
Forum Member
Join Date: May 2005
Location: Redditch Worcs
Posts: 17,289
|
Quote:
Sorry Graham but that won't work. Selection of the destination folder is for the P.C.only. When I can get round to it I intend to modify AV2HDR to allow selection of transfer via USB or FTP. The latter with the option to specify a sub-directory path if required.
|
|
|
|
|
|
#16 |
|
Forum Member
Join Date: May 2005
Location: Brightlingsea, Essex
Posts: 105
|
Quote:
The bit of perl code posted above fixes the location information in the .hmt file, then uploads the trio of files (.ts, .nts, and .hmt) to that locaion on the box via FTP (using the curl program).
perl and curl are available for Windows. They're command line only. Have downloaded strawberry Perl for Windows what Curl version do I need, there seems to be lots of different types, I little cheeky, but, any chance of a how to document? Thanks |
|
|
|
|
|
#17 |
|
Forum Member
Join Date: May 2009
Posts: 103
|
Quote:
I little cheeky, but, any chance of a how to document?
Thanks perl humaxout.pl "Name of Programme_20110102_1925.hmt" 192.168.1.9 where 192.168.1.9 is replaced with the IP address of your box. It should then upload it to the main area of the media list. perl humaxout.pl "Name of Programme_20110102_1925.hmt" 192.168.1.9 "Folder Name" would put it in a folder called "Folder Name" on the HDR. The quotes are important. As for getting curl, I'd suggest the first one from here: http://www.paehl.com/open_source/?CURL_7.21.3 Put it in your path. |
|
|
|
|
|
#18 |
|
Forum Member
Join Date: Jan 2011
Location: North East England
Posts: 54
|
Quote:
No good fitting a network cable and trying Netdrive then
![]() |
|
|
|
|
|
#19 |
|
Forum Member
Join Date: Oct 2004
Posts: 821
|
Quote:
Network cable ?, I thought you had Homeplugs. As to Netdrive, it will connect to the the HDR O.K. if you uncheck "FTP Passsive Mode" in the "Advanced" menu but transfer speed is ridiculously slow compared to FTP with Filezilla. Don't even bother installing it.
|
|
|
|
|
|
#20 |
|
Forum Member
Join Date: May 2005
Location: Redditch Worcs
Posts: 17,289
|
Quote:
Network cable ?, I thought you had Homeplugs. As to Netdrive, it will connect to the the HDR O.K. if you uncheck "FTP Passsive Mode" in the "Advanced" menu but transfer speed is ridiculously slow compared to FTP with Filezilla. Don't even bother installing it.
|
|
|
|
|
|
#21 |
|
Forum Member
Join Date: Dec 2008
Posts: 148
|
Quote:
Agree on Netdrive - I installed Netdrive to see if it would allow seemless playback with vlc without downloading first, didn't work, seemed slow, vlc got upset, little feedback on progress of transfer - quickly removed. Filezilla seems a much better option, fast, drag and drop, good progress reporting and vlc seems quite happy to start playback whilst the transfer is in progress.
|
|
|
|
|
|
#22 |
|
Forum Member
Join Date: May 2005
Location: Redditch Worcs
Posts: 17,289
|
Quote:
Strange... I get exactly the same transfer speed through NetDrive and FileZilla (40-50mbps), once the download has started - it sometimes takes 10 seconds to start with NetDrive, but is fast after that.
|
|
|
|
|
|
#23 |
|
Forum Member
Join Date: May 2009
Posts: 103
|
The problem with the ARM processor in the HDR (I've been told by someone who works with ARM processors) is that the hard drive interface probably doesn't use DMA. (The network port probably doesn't, either.) This is a major slow down in transferring.
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
All times are GMT. The time now is 09:29.


. It's in the Foxsat-hdr threads on AV forums. Extremely clever poster figured it out based on the work done to crack the icord.