[Funktion] jpg php-upload in flv umwandeln und speichern

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Danke für die Hilfe...


    PHP Code:
    $uploadd $config[vdodir]."/".$vdoname;                      
    move_uploaded_file($_FILES['field_uploadfile']['tmp_name'], $uploadd);       
    $s = new SWFShape();
    $f $s->addFill(new SWFBitmap(file_get_contents($uploadd))) ; 
    muss das so aussehen?

    Comment


    • #17
      ja, das sieht gut aus, obwohl ich meine, dass du das später im quellcode sowieso machst und nur die richtige stelle ausnutzen könntest.

      Comment


      • #18
        Danke, also:

        PHP Code:
         $vdoname=$vid.".".$ph;
                     
        if(isset(
        $_FILES['field_uploadfile']['tmp_name']) && is_uploaded_file($_FILES['field_uploadfile']['tmp_name']))
             {
              
        $uploadd $config[vdodir]."/".$vdoname;                      
              
        move_uploaded_file($_FILES['field_uploadfile']['tmp_name'], $uploadd);
              
        Ming_setScale(1.0);                    
              
        $s = new SWFShape();
              
        $f $s->addFill(new SWFBitmap(file_get_contents($uploadd))) ;
              
        $s->setRightFill($f);
                
        $s->drawLine(320);
                
        $s->drawLine(032);
                
        $s->drawLine(-320);
                
        $s->drawLine(0, -32);
                
        $m = new SWFMovie();
                
        $m->setDimension(3232);
                
        $m->add($s);
                
        header('Content-type: application/x-shockwave-flash');
                
        $m->output(); 
        er gibt als output leider nicht das Bild aus

        Comment


        • #19
          testausgaben helfen zu verstehen, was in dem programm geschieht.

          Comment


          • #20
            ???

            Hab ich doch --> $m->output();

            Comment


            • #21
              http://www.selfphp.de/praxisbuch/pra...e=179&group=24

              Comment


              • #22
                Ich habs endlich geschafft...


                Die Datei wird erstellt, aber da es ja eine swf Datei ist, kann ich die mit dem flvplayer.swf nicht abspielen.

                Wie kann ich das in flv konvertieren? Kann ich das auch mit ffmpeg ?

                Comment

                Working...
                X