
Recherche avancée
Autres articles (96)
-
MediaSPIP Core : La Configuration
9 novembre 2010, parMediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...) -
MediaSPIP Player : problèmes potentiels
22 février 2011, parLe lecteur ne fonctionne pas sur Internet Explorer
Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)
Sur d’autres sites (9875)
-
Creating Thumbnails From Ffmpeg Hangs Php
30 octobre 2012, par Piyush AroraI have been working on a php webservice, which receives videos(uploaded) from iphone and upload them to Amazon cloudFront. After uploading videos, I need to generate thumbnails for video from the Amazon link generated. I am using ffmpeg with
shell_exec
command for it. Here is the code for the same :public function createThumbnail($userId,$fileUrl,$imageName){
//$imageUrl = 'http://184.168.116.177:81/json_api/json/bin/';
if(!is_dir("images/".$userId)){
mkdir("images/".$userId);
}
// path of installed ffmpeg
$ffmpeg = $_SERVER['DOCUMENT_ROOT'] .'bin/ffmpeg';
$cmd = "$ffmpeg -itsoffset -1 -i $fileUrl -vcodec mjpeg -vframes 1 -an -f rawvideo -s 320x240 images/".$userId."/".$imageName;
shell_exec($cmd);
return "images/".$userId."/".$imageName;
}The above code generates the thumbnail, but script does not execute after shell_exec command. So, there is no response sent to iphone end about the thumbnail link. This function works well video is uploaded from web browser of pc. If I comment, shell_exec command, then response is sent to iphone end, but obviousely image is not created.
Thanks in advance.
-
FFMPEG - Option to add or omit profiles if input is not conditional when encoding to HLS ?
20 août 2022, par bui the vuongI want my ffmpeg statement to look like this :


ffmpeg -i rtmp://localhost:1935/$app/$name -async 1 -vsync -1
 if(gte(ih,240),'-c:v libx264 -c:a aac -b:v 256k -b:a 64k -g 2 -vf "scale=426:trunc(ow/a/2)*2" -tune zerolatency -preset superfast -f flv rtmp://localhost:1935/show/$name_240','')
 if(gte(ih,360),'-c:v libx264 -c:a aac -b:v 768k -b:a 128k -g 2 -vf "scale=720:trunc(ow/a/2)*2" -tune zerolatency -preset superfast -f flv rtmp://localhost:1935/show/$name_360','')
 if(gte(ih,480),'-c:v libx264 -c:a aac -b:v 1024k -b:a 128k -g 2 -vf "scale=960:trunc(ow/a/2)*2" -tune zerolatency -preset superfast -f flv rtmp://localhost:1935/show/$name_480','')
 if(gte(ih,720),'-c:v libx264 -c:a aac -b:v 1920k -b:a 128k -g 2 -vf "scale=1280:trunc(ow/a/2)*2" -tune zerolatency -preset superfast -f flv rtmp://localhost:1935/show/$name_720','')
 -c copy -f flv rtmp://localhost:1935/show/$name_src;



Can I do the same with ffmpeg ?


-
Adding frame numbers to a video, along with total frame duration
21 novembre 2022, par Abraham ThomasI need to add frame numbers to videos along with total frame duration of the video. It should show the first frame and the last frame, along with the current frame.


In this forum someone had posted a command, which gives the current frame number ;
I've used this and this below command works for me :


ffmpeg -i inputvid.mp4 -vf "drawtext=fontfile=Arial.ttf : text='%frame_num' : start_number=1001 : x=(w-tw)/2 : y=h-(2*lh) : fontcolor=white : fontsize=55 : box=1 : boxcolor=black : boxborderw=5" -c:a copy D :\Test\outputvid.mp4


But it doesn't show the total frame duration ;
Is there a way to add to this command ; to show the first frame and last frame of the video as well (I'm on windows) ;