4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Topic started by: tisi on November 09, 2006, 08:38:13 PM

Title: [MOD] FLV-Integration für 4images
Post by: tisi on November 09, 2006, 08:38:13 PM
Ich habe den FLASH VIDEO PLAYER von http://jeroenwijering.com/?item=Flash_Video_Player in 4images integriert.

So funktioniert's :

Schritt 1
Im Adminbereich von 4images die erlaubten Datei-Typen ergänzen mit flv

Schritt 2
Download FLV-Player und fvl.html unter http://www.mediaxp.be/4images/tutorial/flv.zip

Schritt 3
Die in der Zip enthaltenene Datei flvplayer.swf in folgendes Verzeichnis laden :
/4images/data/

Schritt 4
Die flv.html editieren und den Pfad zur flvplayer.swf anpassen, ggf. die anderen Parameter ändern
Diesbezügliche Anleitungen findest du auf der Seite des Programmierers (siehe Link in Zeile 1)

und anschliessend in folgendes Verzeichnis laden :
/4images/templates/default/media/

Wenn ich jetzt nichts vergessen habe, müsste es dann laufen, funktionierendes Beispiel unter http://www.mediaxp.be/?MediaXP

 :!:  Damit der FLV-Player richtig laufen kann, muss der Macromedia Flash Player ab Version 8 auf dem PC installiert sein

Title: Re: [MOD] FLV-Integration für 4images
Post by: excitex2 on November 09, 2006, 11:13:33 PM
Saludos,,,

http://www.4homepages.de/forum/index.php?topic=13013.msg70013#msg70013

excitex2
Title: Re: [MOD] FLV-Integration für 4images
Post by: Nicky on November 10, 2006, 01:16:41 AM
excitex2: and now translate all the posts ;)

==EDITED==
i'm so stupid ;)

above post is ín german too ^^
like yours in spanish..

solly  :twisted:
Title: Re: [MOD] FLV-Integration für 4images
Post by: excitex2 on November 10, 2006, 11:02:52 PM
Greetings,,,

 Pardon I do not speak English, use a translator of the network.

There are many users of Hispanic speech who as much look for many solutions in the forums in English as in German, I have only put the direction of post that has been made already for some time in case there is some Hispanic loudspeaker that the German does not understand and he wants it to solve in Spanish.

excitex2
Title: Re: [MOD] FLV-Integration für 4images
Post by: Foto-Portal on February 14, 2007, 02:02:01 PM
Hallo,

ich habe die Installation nun durchgeführt,
allerdings beim Upload einer FLV-Datei kommt
folgende Felhlermeldung:

Fehler beim Upload der Bild-Datei:
video.flv: Die Datei hat ein ungültiges Format (flv, application/octet-stream)

Nun habe ich dieses ausprobiert und es geht wunderbar!
Danke
Saludos,,

Los ficheros FLV,, no se visualizan por si solos en la web,,, necesitaras un reproductor tanto para los FLV como para los FLA,,, que es el que estas intentando subir,,, y el que te da el error.

Primero,,, da de alta el nuevo tipo de fichero en el panel de control,, en la sección  : OPCIONES => CONFIGURACION DE IMAGENES Y ENVIO DE IMAGENES .

Segundo,,, abre : includes/upload_definitions.php

Localiza :

Quote
$mime_type_match['swf'] = array("application/x-shockwave-flash");

Añade debajo :

Quote
$mime_type_match['flv'] = array("application/x-shockwave-flash", "application/octet-stream");

Cerrar y guardar cambios.

Tercero,,,, crea una nueva plantilla con el siguiente código,, la nombras como flv.html,,,  y la subes a : templates/tus_plantillas/media/ :

Code: [Select]
<!-- Template file for FLV files -->

<object type="application/x-shockwave-flash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="345" height="300">
<param name="movie" value="./data/player.swf?video=./.{media_src}&buffer=6">
<param name="quality" value="high">
<embed src="./data/player.swf?video=./.{media_src}&buffer=6" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="345" height="300">
</embed></object>

Cuarto,,, descarga este ZIP,, << (http://personal.telefonica.terra.es/web/excitex3/downloads.gif) >> (http://personal.telefonica.terra.es/web/excitex3/reproductor_flv.zip)  lo descomprimes,,, en el encontraras dos ficheros PLAYER.SWF y PLAYER.FLA y una imagen FLV.GIF que es el icono para suplir la falta de thumbnails.

Sube la imagen flv.gif templates/tus_plantillas/icons.

Sube los dos ficheros,, player.swf y player.fla dentro del directorio data

Para los ficheros tipo FLA es lo mismo pero cambiando la extensión

Creo que eso es todo,, espero que te sirva.

excitex2





Title: Re: [MOD] FLV-Integration für 4images
Post by: gifwav on April 12, 2007, 03:39:58 PM
After uploading a flv file I get the error: invalid file type.
I've changed in includes/upload_definitions.php the line:
Code: [Select]
$mime_type_match['flv'] = array("application/x-shockwave-flash", "application/octet-stream");in:
Code: [Select]
$mime_type_match['flv'] = array("video/flv");and everythings working fine!
Title: Re: [MOD] FLV-Integration für 4images
Post by: medo007 on April 12, 2007, 09:53:26 PM
It works fine for me!  8)
Title: Re: [MOD] FLV-Integration für 4images
Post by: tippy on May 20, 2007, 07:34:44 AM
Hi :)

Ive just installed this MOD to be able to play FLV files but the player itself is kinda ugly, is there a way to change the look and features, like autostart etc...?

Thanks for any help you can provide,

Mike

PROBLEM SOLVED, I used a different player...
Title: Re: [MOD] FLV-Integration für 4images
Post by: hyde101 on June 15, 2007, 03:38:19 PM
how do you use a different player?
Title: Re: [MOD] FLV-Integration für 4images
Post by: tippy on June 30, 2007, 04:48:06 AM
I just uploaded a different player and changed the name in the <!-- Template file for FLV files --> frpm player.swf to the new one FLVPlayer.swf

I scrapped the whole idea of using FLV cause it seemed to slow my site down for some reason like when your watching a clip and hit the back button it seems to stall.  Plus I find the quality of these small FLV files very poor.

Perhaps its my setup, I dont know...
Title: Re: [MOD] FLV-Integration für 4images
Post by: mato72 on August 01, 2007, 01:02:37 AM
Got a question
if a user uplaod a movie, and you will validate it in ACP, so you can click on pre-view. but the movie will open in _blank-window, without player....
has some one a idea/fix for it????
Title: Re: [MOD] FLV-Integration für 4images
Post by: mato72 on August 22, 2007, 01:47:09 PM
I have tried this and other Script´s/Mod´s for installing flash-videos
But the reason is, that mostly only the IE will play those Videos, and sometimes some Upload-Errors by Users...

I have found out a way to make it round with the most browsers and plattforms like Mac and Microsoft.

1. Like in the start-Post you need an Player.
Take the newest from:
http://www.jeroenwijering.com/?item=JW_FLV_Player (http://www.jeroenwijering.com/?item=JW_FLV_Player)

2. Copy the player.swf to 4images/data
In this folder you have to copy the swfobject.js too!

3. Now you have to create the flv.html , which display your Video.
Simple Copy the jpg.html in templates/default/media/jpg.html and name it to flv.html
Open it and replace all lines with this code:

Code: [Select]
<script type="text/javascript" src="http://www.homepage.com/data/swfobject.js"></script>

<p id="player1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/javascript">
 var s1 = new SWFObject("http://www.homepage.com/data/player.swf","single","320","255","7");
 s1.addParam("allowfullscreen","true");
 s1.addVariable("file","./.{media_src}&bufferlength=4&showdigits=true&autostart=false");
 s1.addVariable("width","320");
 s1.addVariable("height","255");
 s1.addVariable("image","http://www.homepage.com/data/logo.jpg");
 s1.write("player1");
</script>
(Be shure to rename the adress in this script to your own!!!
4. Like you see you can add an own Logo-Image which will be shown before the video is starting. Just create one and copy this Image to the folder /4images/data

If you would like to play the video automatic, so change
autostart=false"
to
autostart=true"

Working example for an Video-gallery:
http://www.brick-cinema.com (http://www.brick-cinema.com)

It is possible to change the Player-Controlls with javascript, but for this check the author´s Website
Title: Re: [MOD] FLV-Integration für 4images
Post by: htpzc on February 27, 2008, 10:02:48 AM
I have tried this and other Script´s/Mod´s for installing flash-videos
But the reason is, that mostly only the IE will play those Videos, and sometimes some Upload-Errors by Users...

I have found out a way to make it round with the most browsers and plattforms like Mac and Microsoft.

1. Like in the start-Post you need an Player.
Take the newest from:
http://www.jeroenwijering.com/?item=JW_FLV_Player (http://www.jeroenwijering.com/?item=JW_FLV_Player)

2. Copy the player.swf to 4images/data
In this folder you have to copy the swfobject.js too!

3. Now you have to create the flv.html , which display your Video.
Simple Copy the jpg.html in templates/default/media/jpg.html and name it to flv.html
Open it and replace all lines with this code:

Code: [Select]
<script type="text/javascript" src="http://www.homepage.com/data/swfobject.js"></script>

<p id="player1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/javascript">
 var s1 = new SWFObject("http://www.homepage.com/data/player.swf","single","320","255","7");
 s1.addParam("allowfullscreen","true");
 s1.addVariable("file","./.{media_src}&bufferlength=4&showdigits=true&autostart=false");
 s1.addVariable("width","320");
 s1.addVariable("height","255");
 s1.addVariable("image","http://www.homepage.com/data/logo.jpg");
 s1.write("player1");
</script>
(Be shure to rename the adress in this script to your own!!!
4. Like you see you can add an own Logo-Image which will be shown before the video is starting. Just create one and copy this Image to the folder /4images/data

If you would like to play the video automatic, so change
autostart=false"
to
autostart=true"

Working example for an Video-gallery:
http://www.brick-cinema.com (http://www.brick-cinema.com)

It is possible to change the Player-Controlls with javascript, but for this check the author´s Website

I tested this one and it is working on all systems i tested till now.
Great work, thanks for the easy how-to.

Title: Re: [MOD] FLV-Integration für 4images
Post by: kai on February 27, 2008, 12:19:37 PM
Thanks mato72 for translation!  :)
Title: Re: [MOD] FLV-Integration für 4images
Post by: black1cat on February 29, 2008, 05:29:31 PM
Bei mir kommt immer ein Fehler, wenn ich eine FLV Datei hochladen will:

Fatal error: Function name must be a string in /users/jensupload/www/img2/member.php on line 613

Was soll ich machen?
Title: Re: [MOD] FLV-Integration für 4images
Post by: Schwarzlicht on May 24, 2008, 03:59:44 PM
Ich habe diesen Mod auch exakt nach Anleitung eingebaut.
Leider wird der Player zwar aufgerufen und versucht auch das flv-Video abzuspielen, aber es kommt eben nichts.
Title: Re: [MOD] FLV-Integration für 4images
Post by: mato72 on May 24, 2008, 04:29:29 PM
Link?
Title: Re: [MOD] FLV-Integration für 4images
Post by: Schwarzlicht on May 24, 2008, 06:26:16 PM
Habe gerade festgestellt, dass es mit kleinen flv-Dateien bis ca. 3 MB funktioniert.
Es liegt also nur an der Größe der Datei.
Was könnte ich denn da machen?
Title: Re: [MOD] FLV-Integration für 4images
Post by: mato72 on May 24, 2008, 06:29:42 PM
Das kann 2 Gründe haben:
Dein Server lässt nicht zu, dass mehr als 3MB hochgeladen werden.

Es könnte aber auch daran liegen, dass der Server nach 60 Sekunden das Script einfach abbricht. Somit KÖNNEN gar keine Files grösser als 3MB hochgeladen werden.
Das erfährst Du über php-info oder Deinen Hoster/Provider selber, ob das so ist.

Alles klar?
Title: Re: [MOD] FLV-Integration für 4images
Post by: excitex2 on May 24, 2008, 08:25:17 PM
Greetings,,,

Sorry for my English,,, use a translator for the network.

The correction was not done because insercción for other types of files, was added as follows:
http://www.4homepages.de/forum/index.php?topic=15253.0 (http://www.4homepages.de/forum/index.php?topic=15253.0)

excitex
Title: Re: [MOD] FLV-Integration für 4images
Post by: Salti on July 27, 2008, 05:35:15 PM
Danke, funktioniert super! :)
Title: Re: [MOD] FLV-Integration für 4images
Post by: Nasty Hobbit on August 15, 2008, 05:47:13 AM
Heya,

I've gone through the steps from the previous pages but it simply will not allow me to upload an FLV file.

I've tried both of the following lines to the upload_definitions.php file
$mime_type_match['flv'] = array("video/flv");
$mime_type_match['flv'] = array("application/x-shockwave-flash", "application/octet-stream");

Where else is it getting its upload definitions from???
Title: Re: [MOD] FLV-Integration für 4images
Post by: V@no on August 15, 2008, 08:16:22 AM
Hello and welcome to 4images forum.

You almost did it right there only one array (line) should be for each extension
So your two lines should be like this:
Code: [Select]
$mime_type_match['flv'] = array("application/x-shockwave-flash", "application/octet-stream", "video/flv");
Title: Re: [MOD] FLV-Integration für 4images
Post by: Daniel on September 06, 2008, 07:49:05 PM
with this line i have  the error

"Die Datei hat ein ungültiges Format (flv, video/x-flv)"

Formaterror
Title: Re: [MOD] FLV-Integration für 4images
Post by: V@no on September 06, 2008, 08:01:09 PM
FAQ: How can I add more allowed file extensions? (http://www.4homepages.de/forum/index.php?topic=7277.msg32249#msg32249)
Title: Re: [MOD] FLV-Integration für 4images
Post by: Marquis2000 on November 12, 2008, 08:00:48 PM
Hallo Leute,

der MOD funktioniert wunderbar, allerdings wäre es doch sehr sinnvoll wenn gleich andere Formate z.B. .avi oder .wmv beim Upload ins .flv Format konvertiert würden.
Dazu hab ich aus einem anderen Thread diesen

Link: http://www.suma-report.de/videos-per-script-in-flv-dateien-konvertieren-ffmpeg-php/12

achso dazu gibt es noch einen Link:

http://youtubeclone.wordpress.com/2007/05/26/how-to-convertencode-files-to-flv-using-ffmpeg-php/

Leider ist es sehr PHP-lastig und ich persönlich bin kein Spezialist in solchen Sachen. Vielleicht bekommt es einer von Euch hin oder hat es schon hin bekommen?

Title: Re: [MOD] FLV-Integration für 4images
Post by: diehard on December 03, 2008, 11:20:00 AM
Hi all ...

i tried to upload .flv file in my gallery but my file is "VP6 flash video" (encoded).
How i can create mime type for this format (flv - VP6 ) ?  :roll:

With this myme type file not working .
$mime_type_match['flv'] = array("application/x-shockwave-flash", "application/octet-stream", "video/flv");


Sorry for my bad english ...

Here is the video .flv in VP6 encoding