
Recherche avancée
Médias (16)
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (15)
-
D’autres logiciels intéressants
12 avril 2011, parOn 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 2011You 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, parThe 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 2017Localization : 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 JunanioI 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('video')){
 $file = $request->file('video');
 $filename = $file->getClientOriginalName();
 $path = public_path('translate/test/');
 }else{
 return 'No file uploaded';
 }
 
 
 if ($file->move($path, $filename)) {
 $video = 'translate/test/'.$filename;
 }else{
 return 'error file upload';
 }

 
 // $output = 'translate/output/image/'.time().'.png';
 $output = 'translate/output/image/'.time().'.bmp';
 // $output = 'translate/output/image/'.time().'.jpg';

 $cmd = 'ffmpeg -i '.$video.' -vframes 1 '.$output;
 shell_exec($cmd);


// $dimg = imagecreatefrompng($output);
 $dimg = imageCreateFromBmp($output);
 // $dimg = imagecreatefromjpeg($output);

 $extracted_color = array();

 for ($x=0; $x < 24 ; $x++) { 
 $extracted_color[]= imagecolorat($dimg, $x, 0);
 }

 echo "<br />Retrived colors:<pre>".print_r($extracted_color,1)."</pre>";

 imagedestroy($dimg);






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


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.


Can someone let me know if I miss anything here.


-
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 Tumbleweed53I 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.


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.