
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (32)
-
Liste des distributions compatibles
26 avril 2011, parLe tableau ci-dessous correspond à la liste des distributions Linux compatible avec le script d’installation automatique de MediaSPIP. Nom de la distributionNom de la versionNuméro de version Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
Si vous souhaitez nous aider à améliorer cette liste, vous pouvez nous fournir un accès à une machine dont la distribution n’est pas citée ci-dessus ou nous envoyer le (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)
Sur d’autres sites (4891)
-
avcodec/dsicinvideo : check the amount decoded by cin_decode_huffman()
15 avril 2019, par Michael Niedermayeravcodec/dsicinvideo : check the amount decoded by cin_decode_huffman()
Fixes : Timeout (158sec -> 36sec)
Fixes : 14214/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DSICINVIDEO_fuzzer-5633569034076160This is untested with valid cin files as none of the files i found cover the changed
codepathFound-by : continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by : Michael Niedermayer <michael@niedermayer.cc> -
Changing/Replace 1st dot in every generated jpg filename from video to remain single dot
23 mars 2019, par Mr.AXmy site is using ffmpeg to generate a thumbnail jpg for every video being uploaded. The code as below :
// get the videos uploaded
foreach ($videos as $video) {
if ($profile_author_id == $userid || current_user_can('level_10')) {
$imagebuttons = '<span class="edit-buttons"><span class="icon button-delete icon-cancel rad3"></span></span>';
}
echo '<div class="profile-video-thumb-wrapper"><div class="profile-img-thumb profile-video-thumb rad3" style="background: url('.$video->guid.'.jpg) center no-repeat; background-size: cover;">';
echo $imagebuttons;
if(get_post_meta($video->ID, 'processing', true) && !is_video_processing_running(get_post_meta($video->ID, 'processing', true))) {
delete_post_meta($video->ID, 'processing');
unlink(get_post_meta($video->ID, "original_file", true));
delete_post_meta($video->ID, 'original_file');
}
$file_path = get_attached_file($video->ID);
$file_path_thumb = $file_path.".jpg";
if(!file_exists($file_path_thumb)) {
$output = shell_exec("/usr/local/bin/ffmpeg -i $file_path");
$videoresizeheight = get_option("videoresizeheight") ? get_option("videoresizeheight") : '400';
$comd = "/usr/local/bin/ffmpeg -y -i \"$file_path\" -f mjpeg -vframes 1 -ss 00:00:03.000 -vf scale=".$videoresizeheight.":-1 \"$file_path_thumb\" 2>&1";
shell_exec($comd);
}
if(get_post_meta($video->ID, 'processing', true)) {
if ($profile_author_id == $userid || current_user_can('level_10')) {
echo '<span class="video-processing rad3">'._d('this video is still processing',1269).'</span>';
echo '<img data-original-url="'.get_template_directory_uri().'/i/video-placeholder.svg" class="mobile-ready-img rad3" alt="'.get_the_title().'" data-responsive-img-url="'.get_template_directory_uri().'/i/video-placeholder-mobile.svg" style='max-width: 300px; max-height: 300px' />';
}
} else {
echo '<div></div>([^a-zA-Z0-9])/", "", $video->post_title).'" class="video-player-lightbox text-center hide" itemprop="video" itemscope itemtype="http://schema.org/VideoObject">';
echo '';
echo '';
echo '<video height="100%" width="100%" controls="controls">';
echo '<source src="'.$video->guid.'" type="video/mp4">';
echo _d("Your browser does not support the video tag.",1270);
echo '</source></video> ';
echo '</div>';
echo '<a href="#'.preg_replace("></a>([^a-zA-Z0-9])/", "", $video->post_title).'" rel="profile-video">';
echo '<img src="http://stackoverflow.com/feeds/tag/src" style='max-width: 300px; max-height: 300px' />"'.$video->guid.'.jpg" class="hide" />';
echo '<img src="http://stackoverflow.com/feeds/tag/'.get_template_directory_uri().'/i/video-placeholder.svg" class="video-image-play" style='max-width: 300px; max-height: 300px' />';
echo '';
}
echo '<div class="clear"></div></div>'."\n";
}
if(count($videos) > 0) {
echo '<div class="clear10"></div>';
}This as a result generates a thumbnail jpg file for every video uploaded ; but the problem occurs when the filename of jpg includes a dot brought forward from the original video file, example I upload a video with filename video.mp4, this will generate a jpg file call video.mp4.jpg. And this, my website will treat this file as none existence.
Now I need to find a solution that can generate the correct thumbnail filename while still sticking to use wordpress tags, which is changing the .mp4 to -mp4 when adding an additional .jpg extention.
-
How to use FFMPEG -vframe in wordpress creates jpg then clean filename to have only single dot ?
18 mars 2019, par Mr.AXWhat is the best way to output jpg file from video file using FFMPEG avoiding file name to contain double dots resulting file being treated as non existent ?
My goal is to create a clean alternative solution to avoid making jpg extension file having double dots in its created filename, from its original video file (such as mp4). Below is the coding I’m currently using for video uploading via ffmpeg, creating an extra thumbnail file from its video file :
// get the videos uploaded
foreach ($videos as $video) {
if ($profile_author_id == $userid || current_user_can('level_10')) {
$imagebuttons = '<span class="edit-buttons"><span class="icon button-delete icon-cancel rad3"></span></span>';
}
echo '<div class="profile-video-thumb-wrapper"><div class="profile-img-thumb profile-video-thumb rad3" style="background: url('.$video->guid.'.jpg) center no-repeat; background-size: cover;">';
echo $imagebuttons;
if(get_post_meta($video->ID, 'processing', true) && !is_video_processing_running(get_post_meta($video->ID, 'processing', true))) {
delete_post_meta($video->ID, 'processing');
unlink(get_post_meta($video->ID, "original_file", true));
delete_post_meta($video->ID, 'original_file');
}
$file_path = get_attached_file($video->ID);
$file_path_thumb = $file_path.".jpg";
if(!file_exists($file_path_thumb)) {
$output = shell_exec("/usr/local/bin/ffmpeg -i $file_path");
$videoresizeheight = get_option("videoresizeheight") ? get_option("videoresizeheight") : '400';
$comd = "/usr/local/bin/ffmpeg -y -i \"$file_path\" -f mjpeg -vframes 1 -ss 00:00:03.000 -vf scale=".$videoresizeheight.":-1 \"$file_path_thumb\" 2>&1";
shell_exec($comd);
}
if(get_post_meta($video->ID, 'processing', true)) {
if ($profile_author_id == $userid || current_user_can('level_10')) {
echo '<span class="video-processing rad3">'._d('this video is still processing',1269).'</span>';
echo '<img data-original-url="'.get_template_directory_uri().'/i/video-placeholder.svg" class="mobile-ready-img rad3" alt="'.get_the_title().'" data-responsive-img-url="'.get_template_directory_uri().'/i/video-placeholder-mobile.svg" style='max-width: 300px; max-height: 300px' />';
}
} else {
echo '<div></div>([^a-zA-Z0-9])/", "", $video->post_title).'" class="video-player-lightbox text-center hide" itemprop="video" itemscope itemtype="http://schema.org/VideoObject">';
echo '';
echo '';
echo '<video height="100%" width="100%" controls="controls">';
echo '<source src="'.$video->guid.'" type="video/mp4">';
echo _d("Your browser does not support the video tag.",1270);
echo '</source></video> ';
echo '</div>';
echo '<a href="#'.preg_replace("></a>([^a-zA-Z0-9])/", "", $video->post_title).'" rel="profile-video">';
echo '<img src="http://stackoverflow.com/feeds/tag/src" style='max-width: 300px; max-height: 300px' />"'.$video->guid.'.jpg" class="hide" />';
echo '<img src="http://stackoverflow.com/feeds/tag/'.get_template_directory_uri().'/i/video-placeholder.svg" class="video-image-play" style='max-width: 300px; max-height: 300px' />';
echo '';
}
echo '<div class="clear"></div></div>'."\n";
}
if(count($videos) > 0) {
echo '<div class="clear10"></div>';
}One of the solution is to add and change
$file_path_v = $file_path
echo str_replace('.', '_', $file_path_v);
$file_path_thumb = pathinfo('$file_path_v.\".jpg\";')but how would I change the line that suppose to display its thumbnail at :
echo '';
I would like some pointers if anyone can have the cleanest solution to work around it ?