Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - mysoogal

Pages: [1]
1
HFS ~ HTTP File Server / remote upload ?
« on: October 16, 2009, 08:39:27 PM »
hi, rejetto ! i've been wondering will hfs have remote uploading feature to get files from remote storage

2
Programmers corner / HFS Bittorrent support is here
« on: July 06, 2009, 03:42:48 AM »
after my long awaited news from bt inc  ;D they released the API , and the BT client so now you can let your users share their bandwidh so they don't over kill your monthly bandwidth, this is good if you have large amount of files to serve to users, with this i think its really unlimited usage as long as your internet provider doesnt have cap on monthly bandwidth  ;D could be giving out maybe TB of bandwidth between 1000 users downloading 700 mb videos all the time  ;)

what you can do with this

P2P streaming, you can use hfs to host the direct files and stream through any player wmv, flv player, vlc etc

you can enable your hfs to support large amount of users downloading a single file. its really a great thing right now im trying to integrate this with my vlc theme, i will later convert it into flash video support just in case it gets interesting and want million users visiting my hfs server  ;D

http://www.bittorrent.com/dna/guides/dna-integration-guide/getting-started-what-is-dna

3
HTML & templates / Thumbs Working but need more help
« on: July 04, 2009, 11:31:11 PM »
right now when i upload video it gets encoded with mencoder and ffmpeg gets jpg, so my hfs youtube theme is working :D but i have css problem im not sure how to style the thumbs and title i need to put them into order

title
thumb pic
info etc

this is my problem


how to make it look like this, this is mspaint skills copy past colour  ;D please somebody help me fix this css issue





this is the part that shows pic

Quote

[file]
<tr><td class=row>%new% <a href="%item-url%">

<script language="javascript">
var c='%item-name%';
switch (  c.substr(  c.lastIndexOf('.')  ) .toLowerCase()  )
   {
case '.jpg' : case '.jpeg' : case '.gif' : case '.png' :case '.ico' :case '.bmp' : document.write('<a href="%item-url%" target="_blank"><img align=middle width="286" height="160" src="%item-name%"> </a> ');break;
   default      : document.write('<img align=middle src="/~img_file"> ');
   }
</script>

 %item-name%</a>%comment%<td class="row right">%item-size%<td class="row right">%item-modified%<td class="row right">%item-dl-count%
</tr>

4
HTML & templates / Video Support in HFS using VLC ready
« on: July 04, 2009, 12:12:16 AM »
you will need HFS 2.3 build 242

here is the theme tpl and vlcControl.zip files which you need to drag into your root and new folders you create

http://www.megaupload.com/?d=XFDE8PKA

inside have readme check it out if you still not sure come here and ask me :)

5
HTML & templates / Video Gallery Template Idea !
« on: June 29, 2009, 10:35:28 PM »
do any of you coders that develop templates for hfs ever think about creating a video gallery theme based on hfs 2.3 ?

i see there is the RAWR templates but they really are not what a video gallery template is, i was wondering i have tried to develop something by my self but it simply was to hard for me, so i'm wondering here if anybody has done something with video gallery using only the HFS template system ?

this is something that i have in mind, the idea would be to have hfs display the thumbs jpg from images folder. where it says title : etc would be the output url to video.flv etc from videos folder. so when user clicks on title it will send the url into maybe flash player or some other player such as vlc.

well that is it, i really do hope some of you whom have experience in coding hfs templates create something as below it would be good for many users of hfs  :)


6
HTML & templates / i need help please !
« on: June 27, 2009, 10:44:56 PM »
alright let me explain what i've done and what my problem is,

i'm using lightyhttp server that runs on port 80, i have this script dynamic_flv_player_v2.2.zip

which reads flv video and jpg image and displays it to player.php

ok so far, it seems to work, now i'm using HFS 2.3 as the encoding engine, with mencoder and ffmpeg to get image and flv etc. through the events

so everything seem to be working fine you can see here my project, http://cdn.hopto.org/player.php?p=1

so when you upload a video on hfs it puts the jpg and video into the htdoc and image folder where this php script reads the needed info to display, it works so far but, i have gone even more deep into this by adding vlc media player to the html

so hope your still following, so far i have vlc displayed on top.

right now im looking into player.php file which, this is where im stuck and really can't figure why its not understanding this,



Quote
$result .= "<li><TABLE border=0 cellspacing=0 cellpadding=0 align=center width=440><TR><TD valign=\"top\" align=\"left\" width=\"35%\"><a href=\"javascript:fullwin('$file')\"><img src=\"images/$file.jpg\" border=\"0\" align=\"absmiddle\" alt=\"File Name $file\"></a></td><TD valign=\"top\" align=\"left\" width=\"65%\"><B>Video:</B>&nbsp;<a href=\"javascript:fullwin('$file')\">$file</a><BR><BR><B>File Size:</B> <FONT COLOR=\"#1185D0\">$fsize</FONT><BR><BR>".@file_get_contents($_SERVER["DOCUMENT_ROOT"]."/demos/feeds/text/$file.txt")."</td></tr></table><hr>\n";
         $cnt++;


<a href=\"javascript:fullwin('$file')\">$file</a>

as you can see, from my understanding the $file is the outout link to file,

so i tried to change it into this


<a href="#" onclick="vlc_controls.play('$file')">$file</a>

i tried to replace this but, it just doesnt seem to work, so that is my problem, i need to have the $file with onclick javascript so when i click title or image to fire the vlc command to play video to send url into vlc to play click.

i believe it should play but doesnt work  ???

this is a complete tiny video sharing script.

here is the full source of player.php please tell me why its not picking up the vlc command

Code: [Select]
<?php
//////////////////////////////////////////////
// Pagination object library,
// copyright www.flvhosting.com
// Please do not show source
//////////////////////////////////////////////

/**
* set $items_per_page to how many 
* lines of products must be shown on page
*/
$items_per_page ;

require 'abstract.php' ;
require 'paginate.php' ;

//if ($_POST["url"])
//   $url = $_POST["url"];
//else if ($_GET["url"])
//   $url = $_GET["url"];
//else 
//   $url = 'ad.flv';

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Video Player </TITLE>
<script language="javascript" src="http://www.revolunet.com/static/download/labo/VLCcontrols/ExternalLibLoader.js"></script>
 
<style>
 * {
 font-family:Trebuchet Ms, Arial;
 font-size:12px;
 }
 select, input {
border:1px solid silver;
 }
</style>
<script language="javascript" src="http://www.revolunet.com/static/download/labo/VLCcontrols/VLCobject.js"> </script>
<script language="javascript" src="http://www.revolunet.com/static/download/labo/VLCcontrols/VLCcontrols.js"> </script>
<script language="javascript">
var vlc_controls = null;

function init() {
// load plugin
myvlc = new VLCObject("mymovie", "600", "350");
// myvlc.addParam("MRL","http://code.revolunet.com/VLCjs/rambo.mpg");
myvlc.write("vlccontent");

// load controls
vlc_controls = new VLCcontrols(myvlc);

vlc_controls.onready = function () {
vlc_controls.play("http://images.apple.com/movies/wb/i_am_legend/i_am_legend-tlr1_h.480.mov");
}

}




</script>

<body onload="init()">

<style>
<!--
TD {
    FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif; COLOR: #000000; TEXT-DECORATION: none; FONT-WEIGHT: normal
}
P {
    FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif; COLOR: #000000; TEXT-DECORATION: none; FONT-WEIGHT: normal
}
DL {
    COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif; FONT-SIZE: 10pt; TEXT-DECORATION: none; FONT-WEIGHT: normal
}
LI {
    COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif; FONT-SIZE: 10pt; TEXT-DECORATION: none; FONT-WEIGHT: normal
}
UL {
    COLOR: #1185D0; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif; FONT-SIZE: 10pt; TEXT-DECORATION: none; FONT-WEIGHT: normal
}
H1 {
    COLOR: #1185D0; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif; FONT-SIZE: 14pt; FONT-WEIGHT: bolder
}
A:link {
    COLOR: #FF0D0D; FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif; TEXT-DECORATION: none; FONT-WEIGHT: bold
}
A:visited {
    COLOR: #FF0D0D; FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif; TEXT-DECORATION: none; FONT-WEIGHT: bold
}
A:active {
    COLOR: #FF0D0D; FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif; TEXT-DECORATION: none; FONT-WEIGHT: bold
}
A:hover {
    COLOR: #1185D0; FONT-SIZE: 10pt; TEXT-DECORATION: underline; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif; FONT-WEIGHT: bold
}
//-->
</style>
<script language="JavaScript">
<!--
function fullwin(targeturl){
window.open(targeturl,"", "scrollbars=no,resizable=yes,width=480,height=360")
}
//-->
</script>
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<TABLE border=0 cellspacing=0 cellpadding=0 align=center width="100%" HEIGHT="100%">
<TR>
<TD valign="top" align="center">
<div id="vlccontent">replaced by VLC controller</div>

<?   
static $exclude = array(
"." , "..", "player.php", "counter", "text", "index.php", "mwm_flmx_88_31.gif", "readme.txt", "abstract.php", "paginate.php", "ad.flv", " ", "320x240.swf", "listing_example.jpg", "flv.jpg", "popup.swf", "iframe.php", "flash_detection.swf", "alternate.html", "320x240.fla", "popup.fla", "alternate.gif", "mwm_flmx_88_31.gif", "images", "powered_by_php.jpg"
);

function dir_count() {
global $exclude ; $num = 0 ;
$handle=opendir(".");   
while ($file = readdir($handle)) {
if(in_array($file, $exclude)) continue;
else $num++;
}
closedir($handle);
return $num;
}

$props = array(
'itemsperpage'=> $items_per_page,
'file'=>basename($_SERVER[PHP_SELF]),
'delimiter'=>' <span style="font-size: 20pt; vertical-align: absmiddle;">&middot;</span> ',
'link_active' => 'font-weight: bold; font-family: Arial, Verdana; color: #1185D0; font-size: 12pt;',
'link_inactive' => 'font-weight: bold; font-family: Arial, Verdana; color: #FF0000; font-size: 12pt;'
);
$pm = paginate(dir_count(),'p',$props);
$range = $pm->get_range();

function directory(&$range) {

global $exclude; $cnt = 0;
$handle=opendir(".");   
     
while ($file = readdir($handle)) { 
$fsizebyte = filesize($file);
// Correctly parse the filesize
if ($fsizebyte > 1000) {
$fsizeraw = ($fsizebyte/1000);
$fsizefin = round($fsizeraw, 2);
$fsize = $fsizefin.' <FONT COLOR=#000000>kb</FONT>';
}
if ($fsizebyte > 1048576) {
$fsizeraw = ($fsizebyte/1048576);
$fsizefin = round($fsizeraw, 2);
$fsize = $fsizefin.' <B>mb</B>';
}
if ($fsizebyte < 1024) {
$fsize = $fsizebyte.' bytes';
}

if(in_array($file, $exclude)) {
continue;
}
else {
if(in_array($cnt, $range))
$result .= "<li><TABLE border=0 cellspacing=0 cellpadding=0 align=center width=440><TR><TD valign=\"top\" align=\"left\" width=\"35%\"><a href=\"javascript:fullwin('$file')\"><img src=\"images/$file.jpg\" border=\"0\" align=\"absmiddle\" alt=\"File Name $file\"></a></td><TD valign=\"top\" align=\"left\" width=\"65%\"><B>Video:</B>&nbsp;<a href=\"javascript:fullwin('$file')\">$file</a><BR><BR><B>File Size:</B> <FONT COLOR=\"#1185D0\">$fsize</FONT><BR><BR>".@file_get_contents($_SERVER["DOCUMENT_ROOT"]."/demos/feeds/text/$file.txt")."</td></tr></table><hr>\n";
$cnt++;

     }   
    closedir($handle); 
return $result;   
}   

//javascript:fullwin('"$file')
?>
<TABLE border=0 cellspacing=0 cellpadding=0 align=center width=448>
<TR>
<TD valign="top" align="center"><BR>
<h1>Select A Movie Below</h1>
</tr></td>
<tr>
<TD valign="top" align="center">
<ol start="<?=($range[0]+1)?>">
<?   
echo directory($range);
?>
</ol>
<?=$pm->show();?>
<BR>
 
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
<?php
//  echo '<pre>' ; 
//  print_r($range);
?>

the funny thing is, this fullwin allows the file to be downloaded like target url something like that i want to change this into vlc enabled onclick event  ???

please some php coder tell me why not working


thank you.

you can test hfs upload with this php script
http://cdn.hopto.org:8080/upload/

7
HTML & templates / ajax content theme
« on: June 21, 2009, 07:54:19 PM »
you can test the theme here http://removed-old-/  ;D please understand that my server is hosted on laptop and i use this laptop every single second for other things so it might go offline somtimes ! sorries  :D

while looking for a answer for my size stats issue, i messed around with mootools and integrated this interesting slid effect with the theme, you can check hfs version, files, and maybe add your own code etc experienced coder will find this interesting i think  ;D




the theme uses the default layout of HFS 2.3 beta and all the mootools etc are online, and css you can always save these into your folder and link them up,

anyways here it is

Quote
attached file

now added advanced stats shows graphical stats and connections :p

8
HTML & templates / refreshing page
« on: June 21, 2009, 06:35:18 PM »
hi all got some questions about refreshing a folder or part of the size function to get current encoding status  ;D

I'm wondering is it possible to use some javascript code to refresh lets say the Size table every 5 seconds ?

the reason I'm asking is, i found out just a while go, i can get the video encoding stats through the Size when i refresh browser so this is kind of a progress indicator for me, as i follow how far the encoded video is.



can i use this http://demos111.mootools.net/Ajax_Timed for the Size ?

9
HTML & templates / My Hyori Lee integration
« on: June 17, 2009, 09:32:04 PM »
i name this theme Lee hyori 1.0 this theme is about a south korean singer and actress babe i just love  ;D
Download Hyori theme http://www.megaupload.com/?d=0SPC9A3U


the template i used is here
http://www.freecsstemplates.org/preview/unembellished

issue, i really think i messed up something, when you go into folders, the theme doesnt stick right. only on front page, i think i messed up some <header things. or i just need to copy and past the header and css for every file,picture,upload,error etc something like that

can someone else please fix this for me,  ;D tanku tank u


oh also, the main content i simply cant find the width settings  :o

10
HFS ~ HTTP File Server / CLI video encoding through HFS uploader ?
« on: June 17, 2009, 07:31:58 AM »
i'm wondering is it possible for hfs to also encode a video when its uploading?

im thinking to use dr divx or ffmpeg or avidmux CLI

has anybody play'd with this ? 

 ;D just a idea

11
HTML & templates / mysoogal question
« on: April 30, 2009, 03:40:22 PM »
can you please help me !  ;D im stuck !

i added vlc web player to into the clean template   :o

i need to change the url so when user clicks it plays in VLC player, below is the code i tried many times but not work er

Code: [Select]
<a href="#" onClick="vlc_controls.play('http://127.0.0.1/video.avi ')"> Video </a>
i know i have to change something here, but im not sure where

Code: [Select]
[file]
<tr><td class="file" colspan="2"><a href=" %item-url% "%comment% style="background-image:url('/~img_file')"%new%>%item-name%</a></td><td class="right">%item-size%</td><td class="right">%item-modified%</td><td class="filehits">%item-dl-count%</td></tr>


oh good ur website is backup again ! i need to ghet that old template with divx support  ;D

12
HTML & templates / A Web Applications User Interface Library
« on: March 26, 2009, 11:43:06 PM »
http://mochaui.com/demo/

is there any way of using this interface for HFS  ? ;D

it looks very good i've tried to make it work but no luck !

what i done was, copy all the files into root of HFS, and copy index html and past into HFS template didnt work !

damit

if your more experienced coder on HFS can you please take a look into this it seems just to good to let it go

13
HTML & templates / HFS-Clean-EN video share and video encoding
« on: March 19, 2009, 10:58:06 PM »
 ;D hi all, I'm trying to add a divx web player into this theme called HFS-Clean-EN

i've changed few things to suit my needs, i'm using dr divx 2.0 to auto encode uploaded videos in upload folder when encode completes, video gets moved into encoded

now inside this encoded folder is the video.divx is there a way to popup maybe a highslide window with divx player inside linking the location of the video ?

this is my only problem right now. i can't figure how to use external themes i only the html.  :)

if i knew how to use external themes i will probably figure it out and extend this theme to be a video sharing website :D

right now this theme is able to let users upload video, video gets encoded automatically and gets moved to encoded folder. thats about it :d

shame about no progress bar for encoding with HFS. dr divx does provide CLI funtions but im not sure how to add this type of thing together with HFS.


anyway. if anybody wants to help me out, please do i really like to add divx web player with highslide script or lightview or lightbox script  ;D

14
HFS ~ HTTP File Server / Feature requests
« on: February 05, 2009, 04:18:50 PM »
i'm user of HFS great little video server,   ;D

i have one request, can you please add support for http user peering something like tiny CDN to cut the bandwidth and allow my users to share their bandwidth over http.

you already have HFS server, so next mission maybe should be small client which distributes the same file to all other connected peers connected to HFS server. i hope this can be done it will be really interesting to have this feature for everybody.

 :D

i've done little research for opensource code which maybe you can use for the client and little change in HFS for this to work together.


http://sourceforge.net/projects/distvidsys/
DVS (Distributed Video System) is an open source project with all necessary tools (servers, monitors, etc) for the creation of a Content Distribution Network (CDN) with live video and video on demand streaming


Distributed Videostreaming
Peer-to-Peer Videostreaming System. A normal p2p client can only download the file by using http or ftp. This System uses streaming (RTP) so that you can watch the video during the download.

something like Distributed Video System over http with |HFS  ;D

there is also this old cdn over http open source project called dijjer.org right now its dying maybe should be added to HFS ?

also bittorrent but no streamming support over http ? :O no idea

Pages: [1]