
Recherche avancée
Médias (2)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (51)
-
Qu’est ce qu’un éditorial
21 juin 2013, parEcrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
Vous pouvez personnaliser le formulaire de création d’un éditorial.
Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...) -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Personnaliser l’affichage de mon Médiaspip
27 mai 2013Vous pouvez modifier la configuration du squelette afin de personnaliser votre Médiaspip Voir aussi plus d’informations en suivant ce lien
Comment supprimer le nombre de vues d’affichage d’un média ?
Administrer > Gestion du squelette > Pages des articles et médias Cocher dans "Informations non affichées sur les pages de médias" les paramètres que vous ne souhaitez pas afficher.
Comment supprimer le titre de mon Médiaspip dans le bandeau horizontal ?
Administrer > Gestion du squelette > (...)
Sur d’autres sites (3475)
-
How to crop a video in the shape of a square, but crop the square itself at different positions in the video via ffmpeg ?
28 juin 2022, par Ilya Pesterev- 

- I have about 100 videos
- All the videos have the same length — 17 seconds.
- In the first part of the video from 0 to 5 seconds I need to crop a square in one position
- In the second part of the video from 5 to 17 seconds I need to crop a square in a different position










I have attached an image for clarity.


How can I automate this process via ffmpeg ?




-
Shall_exec() is not working in Cent OS 6.5 with php 5.5
5 décembre 2014, par hiteshIt is the follow up from the question here. I was not sure if it was good idea to edit that question, So I am asking a new question here
As explained in my previous question I am using
ffmpeg
for getting screenshot from video.it seems to working fine in my local but in my Cent OS 6.5 server it is not working, it throws error that
ffmpeg extension is not enabled
."Error in Loading ffmpeg"
To debug this, I commented the line
extension_loaded('ffmpeg') or die('Error in loading ffmpeg');
and I found out that in Cent OS terminal, ffmpeg command were working but if I use it with full path as I am doing in windows it did not work.So i deleted full path and used
ffmpeg
alone, I am not sure what was the reason behind this.Here is my new command
$cmd = "ffmpeg -i $vid -an -ss $getfromsecond -s $size -vframes 1 $imageFile";
$cmd2 = "ffmpeg -i $remoteVideo -an -ss $getfromsecond -s $size -vframes 1 $imageFile2 ";
echo $cmd ."<br />";
echo $cmd2."<br />";
exec($cmd, $output, $return);
echo '$output :' ; print_r($output); echo "<br />";echo '$return' . $return . "<br />";
if ($return != 0) {
// an error occurred
echo "Error in EXEC command ";
}
if(!shell_exec($cmd2)){
echo "Remote video Thumbnail created". "<br />";
}else{
echo "Error Creating Remote video thumbnail". "<br />";
}now again it was not working in server, but when I tried both command
` echo $cmd ."<br />";
echo $cmd2."<br />";`in dev terminal, it got executed successfully I could see the screenshot.
So while searching for the problem, I found this question here based on this answer here. I understood that some server may not allow it so I checked it.
if (isEnabled('shell_exec')) {
echo "Shell_exec is enabled "."<br />";
shell_exec('echo "hello world"');
echo "<br />";
}else{
echo "shell exec command is not allowed";
}I got the output
"Shell_exec is enabled "
butshell_exec('echo "hello world"');
does not seems to work, Also when I run the command directly in terminal it works.Help me find the issue here, is it issue with shall_exec() or something else ?
Any help is appreciated. Thanks
-
Tips for encoding a live stream to IIS Media Services (or Azure Live Media Services) with FFMPEG ?
6 mars 2014, par user3104748We're trying to encode assets, either live or static, in a live stream to IIS Media Services using ffmpeg. Can anyone provide pointers for exactly what kinds of parameters we should be using and setting ?
As part of our test, just to see if we can get things to work, we have a standard plain-old MP4 video static asset that we're trying to stream to the server. It seems to work on the client side, but when we try to view the video on the receiving end, we get nothing.
Here's an example of the command we're using, where gg.mp4 is the static MP4 video (obviously (hostname) is the name of our host and not the actual word in parenthesis :)...
ffmpeg -y -re -i gg.mp4 -movflags isml+frag_keyframe -f ismv -threads 0 -c:a libvo_aacenc -ac 2 -b:a 64k -c:v libx264 -preset fast -profile:v baseline -g 48 -keyint_min 48 -map 0:v -b:v:0 477k -s:v:0 368x152 -map 0:v -b:v:1 331k -s:v:1 288x120 -map 0:v -b:v:2 230k -s:v:2 224x92 -map 0:a:0 http://(hostname)/ingest.isml/Streams(video)