
Recherche avancée
Médias (1)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
Autres articles (54)
-
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
Participer à sa documentation
10 avril 2011La documentation est un des travaux les plus importants et les plus contraignants lors de la réalisation d’un outil technique.
Tout apport extérieur à ce sujet est primordial : la critique de l’existant ; la participation à la rédaction d’articles orientés : utilisateur (administrateur de MediaSPIP ou simplement producteur de contenu) ; développeur ; la création de screencasts d’explication ; la traduction de la documentation dans une nouvelle langue ;
Pour ce faire, vous pouvez vous inscrire sur (...) -
Encodage et transformation en formats lisibles sur Internet
10 avril 2011MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)
Sur d’autres sites (10181)
-
How can I add text overlay to a video using php and ffmpeg ?
20 février 2021, par Adeel AhmadHere is the code and I couldn't find the error the. Basically it is not giving me any error just not doing it's work.


<?php

$video = $_FILES["video"]["tmp_name"];

$command = " ffmpeg -i " . $video;

$command .= " -vf drawtext=text='My text starting at 
640x360':x=640:y=360:fontsize=24:fontcolor=white";
$command .= " -c:a copy output2.mp4";

system($command);

echo "Overlay is complete";
?>



-
Is it possible to concatenate few videos together, setting their timings and displaying background image, if no video for the current frame ?
13 juillet 2020, par Valeryi CherdakovI have an audio track, say, a few minutes long, as well as several short videos of several tens of seconds. For each of these videos I have a timing - the video should start at a certain second. The audio tracks of these videos are not needed.
The output video should last exactly as long as the audio lasts.
If at the moment there is no video to display, a picture should be displayed (as if the picture is on layer #1, and the rest of the videos are on layer #2).


Is it possible to complete this task using a command or a series of ffmpeg commands ?


-
Segmentation Fault when calling FFMPEG on Lambda - but not locally
17 avril 2024, par thiagogpsI am trying to extract the next 30 seconds of audio from a live video stream on YouTube using AWS Lambda. However, I'm facing an issue where Lambda does not wait for an FFmpeg subprocess to complete, unlike when running the same script locally. Below is a simplified Python script illustrating the problem :


import subprocess
from datetime import datetime

def lambda_handler(event, context, streaming_url):
 ffmpeg_command = [
 "ffmpeg", 
 "-loglevel", "error", 
 "-i", streaming_url, 
 "-t", "30", 
 "-acodec", "pcm_s16le", 
 "-ar", "44100", 
 "-ac", "2", 
 "/tmp/output.wav"
 ]

 print("Starting subprocess...")
 print(f"Start time: {datetime.now()}")
 subprocess.run(ffmpeg_command, capture_output=True)
 print(f"End time: {datetime.now()}")



In this script, I am using FFmpeg to capture audio from the specified streaming_url, converting it to a .wav format, and saving it as output.wav. When executed locally, this script waits until the subprocess finishes, evidenced by the significant time difference between the start and end print statements. However, when run on AWS Lambda, it proceeds almost immediately without waiting for the subprocess to complete, resulting in incomplete audio files.


Question : How can I ensure that AWS Lambda waits for the FFmpeg subprocess to fully execute before the function exits ? I assume I'm not understanding correctly how Lambda handles subprocesses. I even tried adding a time.sleep(30) after the subprocess.run, but that didn't help. Is there a specific configuration or method to handle subprocesses in Lambda correctly ?


EDIT : With the help of the comments, I understood that in fact it's returning quickly in Lambda because of a segmentation fault, since it gives me a returncode of -11, so I edited the question and its title accordingly. Locally, there is no such error. I found out this is a similar situation to Using FFmpeg with URL input causes SIGSEGV in AWS Lambda (Python runtime), but I'm still unable to solve it.