Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (15)

  • D’autres logiciels intéressants

    12 avril 2011, par

    On ne revendique pas d’être les seuls à faire ce que l’on fait ... et on ne revendique surtout pas d’être les meilleurs non plus ... Ce que l’on fait, on essaie juste de le faire bien, et de mieux en mieux...
    La liste suivante correspond à des logiciels qui tendent peu ou prou à faire comme MediaSPIP ou que MediaSPIP tente peu ou prou à faire pareil, peu importe ...
    On ne les connais pas, on ne les a pas essayé, mais vous pouvez peut être y jeter un coup d’oeil.
    Videopress
    Site Internet : (...)

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

Sur d’autres sites (4940)

  • Localization : Add new danish translations (#2067)

    13 septembre 2017
    Localization : Add new danish translations (#2067)
    

    This update the danish translate and include new translates too.

    New translate :
    - pattern
    - nowhitespace
    - lettersonly
    - maxWords
    - minWords
    - notEqualTo
    - integer
    - extension
    - IPv4
    - IPv6
    - require_from_group
    - step
    - time
    - remote

  • Reading colors encoded in image at a position changes its value after decoded from video using php and ffmpeg

    29 novembre 2022, par Jeenus Junanio

    I created a piece of code to encode unique color on image and converted the image to PNG so that it would be lossless. After This I created a video with the frame using this image using the ffmpeg in php shellexec(). After saving this video I reopened it to extract the frmae image added and tried to read those values from the image. Now the values on the image are a bit changed.

    


    Here is the code that I tried to create the video :

    


    $canvas = imagecreatefromjpeg('translate/first_frame.jpg');
        // create a random color
        $rand = str_pad(dechex(rand(0x000000, 0xFFFFFF)), 6, 0, STR_PAD_LEFT);
        $dec_color= hexdec($rand);

        // add the new color to image

        for ($i=0; $i < 24; $i++) { 
           imagesetpixel($canvas,$i,0,$dec_color);
        }

        // store the image and close the file opened

        // $filename = 'translate/test/output.png'; 
        $filename = 'translate/test/output.bmp'; 

        // imagepng($canvas, $filename);
        imagebmp($canvas, $filename);

        imagedestroy($canvas);

        $frame      = $filename; // an image(png,gif,etc)
        $audio      = 'translate/output/audio/abcdefghijklmnopqrstuvwxya.mp3';
        $output     = 'translate/output/video/'.time().'.mp4';   

        $cmd = 'ffmpeg -loop 1 -y -i '.$frame.' -i '.$audio.' -c:v libx264 -tune stillimage -c:a copy -shortest '.$output;
        shell_exec($cmd);


    


    This above code is creating the video with the image.

    


    Now I tried to extract the image video and color from image, the colors are a bit changed.

    


    if($request->hasFile(&#x27;video&#x27;)){&#xA;            $file = $request->file(&#x27;video&#x27;);&#xA;            $filename = $file->getClientOriginalName();&#xA;            $path = public_path(&#x27;translate/test/&#x27;);&#xA;        }else{&#xA;            return &#x27;No file uploaded&#x27;;&#xA;        }&#xA;        &#xA;        &#xA;        if ($file->move($path, $filename)) {&#xA;            $video = &#x27;translate/test/&#x27;.$filename;&#xA;        }else{&#xA;            return &#x27;error file upload&#x27;;&#xA;        }&#xA;&#xA;       &#xA;        // $output = &#x27;translate/output/image/&#x27;.time().&#x27;.png&#x27;;&#xA;        $output = &#x27;translate/output/image/&#x27;.time().&#x27;.bmp&#x27;;&#xA;        // $output = &#x27;translate/output/image/&#x27;.time().&#x27;.jpg&#x27;;&#xA;&#xA;        $cmd = &#x27;ffmpeg -i &#x27;.$video.&#x27; -vframes 1 &#x27;.$output;&#xA;        shell_exec($cmd);&#xA;&#xA;&#xA;// $dimg = imagecreatefrompng($output);&#xA;        $dimg = imageCreateFromBmp($output);&#xA;        // $dimg = imagecreatefromjpeg($output);&#xA;&#xA;        $extracted_color = array();&#xA;&#xA;        for ($x=0; $x &lt; 24 ; $x&#x2B;&#x2B;) { &#xA;          $extracted_color[]= imagecolorat($dimg, $x, 0);&#xA;        }&#xA;&#xA;        echo "<br />Retrived colors:<pre>".print_r($extracted_color,1)."</pre>";&#xA;&#xA;        imagedestroy($dimg);&#xA;&#xA;&#xA;&#xA;

    &#xA;

    The color added was 44743072 but the colors retrieved are 4539914,4474121,4408072,4408326 from x=0,y=0 to x=24,y=0.

    &#xA;

    In both PNG and BMP I am loosing the added pixels. You can clearly see in my code i have commented the code for png to read the image as bmp.

    &#xA;

    Can someone let me know if I miss anything here.

    &#xA;

  • How do I use ffmpeg to bulk scale videos of different sizes to the same size (some potentially with black bar padding) ?

    9 décembre 2020, par Tumbleweed53

    I have a bunch of videos I want to stitch together. I want to scale them all to the same size, maintaining aspect ratio (thus adding black bar padding if necessary). Some videos will be downscaled, but most upscaled.

    &#xA;

    Does anyone have a clever ffmpeg scale formula to accomplish this ? My alternative is to iterate through every video and calculate the scale formula based on its size, but I'd prefer not to do that if I don't have to.

    &#xA;