
Recherche avancée
Médias (5)
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
-
Valkaama DVD Cover Outside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Valkaama DVD Cover Inside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
Autres articles (35)
-
Modifier la date de publication
21 juin 2013, parComment changer la date de publication d’un média ?
Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
Dans la rubrique "Champs à ajouter, cocher "Date de publication "
Cliquer en bas de la page sur Enregistrer -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Formulaire personnalisable
21 juin 2013, parCette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire. (...)
Sur d’autres sites (5244)
-
Why is there not enough RAM when processing video in fmpeg ?
26 mai 2022, par Mikhail EliseevI run ffmpeg through .bat file , which overlays the HUD video on top of the other (overlay). I saw this method here : FFmpeg - Overlay one video onto another video ?


When you run the batch file, ffmpeg starts "rendering it" and in 1-2 minutes my computer begins to show terrible lags. In the task manager I see that 12 GB of the available 16 GB of RAM is gobbled up.


Code :


@echo off
setlocal EnableExtensions DisableDelayedExpansion
for %%i in (*.mov *.mp4 *.mts) do (
 md "result_%%~ni"
ffmpeg -i "%%i" -i "res/intro 2018.mp4" -filter_complex "[1:v]setpts=PTS-10/TB[a]; [0:v][a]overlay=enable=gte(t\,5):shortest=1[out]" -map [out] -map 0:a -c:v libx264 -crf 18 -pix_fmt yuv420p -c:a copy -y result_%%~ni\%%~ni%%03d.mp4

) 
pause



After 2 minutes, the error that the memory is not enough :



Here are the specs of the computer :



This is the size of the swap file (by system choice) :



Example of video-file :




-
I can't use immediately converted video with FFmpeg (Android)
26 juin 2019, par Jose QI’m using this lib to turn a video with a watermark into a corner : https://github.com/WritingMinds/ffmpeg-android-java
To detect when the video conversion is ready I’m using this :
try {
ffmpeg.execute(command, new ExecuteBinaryResponseHandler() {
@Override
public void onFailure(String s) {
}
@Override
public void onSuccess(String s) {
}
@Override
public void onProgress(String s) {
}
@Override
public void onStart() {
}
@Override
public void onFinish() {
//outpath is: /storage/emulated/0/drawable/share1561561063811.mp4
Uri u = Uri.parse(outpath);
}
});
} catch (FFmpegCommandAlreadyRunningException e) {
// do nothing for now
}Well, everything goes perfect so far, I can find the video through the file manager, but what I can’t do is use it immediately after onFinish() in my app.
I can’t play the video or upload it. I’ve tried using outpath directly and also tried this method that works for other videos and I get null. :
private String getRealPathFromURI(Uri contentUri) {
String[] proj = { MediaStore.Images.Media.DATA };
CursorLoader loader = new CursorLoader(this, contentUri, proj, null, null, null);
Cursor cursor = loader.loadInBackground();
int column_index = cursor.getColumnIndexOrThrow(MediaStore.Video.Media.DATA);
cursor.moveToFirst();
String result = cursor.getString(column_index);
cursor.close();
return result;
} -
FFMPEG File Output is Still in Use By a Process
6 mai, par Tyler BaconI am trying to complete this part of my program. In this section, I am trying to speed up or slow down a video based on a factor variable. Once it's done, I use moviepy to turn it into a VideoFileClip, then I delete the file.


if factor <= 2:
 system("ffmpeg -i " + paths[dex] + " -vf setpts=" + str(vfactor) + "*PTS -an ./Media/Videos/temp.mp4")
 system("ffmpeg -i " + paths[dex] + " -filter:a atempo=" + str(factor) + " -vn ./Media/ShortSounds/temp.mp3")
 elif 2 < factor < 4:
 factor = round(sqrt(factor), 1)
 system("ffmpeg -i " + paths[dex] + " -vf setpts=" + str(vfactor) + "*PTS,setpts=" + str(vfactor) + "*PTS -an ./Media/Videos/temp.mp4")
 system("ffmpeg -i " + paths[dex] + " -filter:a atempo=" + str(factor) + ",atempo=" + str(factor) + " -vn ./Media/ShortSounds/temp.mp3")
 elif factor > 4:
 raise Exception("File " + paths[dex] + " is too long.")
 t = VideoFileClip("./Media/Videos/temp.mp4")
 t.audio = AudioFileClip("./Media/Videos/temp.mp3")
 templist.append(t)
 remove("./Media/Videos/temp.mp4")



However, when the code gets to the deletion command, it has the following error :


PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: './Media/Videos/temp.mp4'



What's strange is, I can see the temp.mp4 file, and it runs just fine. I never get this error while manually running the temp.mp4 file.


I have tried the following :


- 

- Waiting 5, 10, and 20 seconds before deleting the file.
- Running "taskkill -f -im ffmpeg.exe" before deleting the file
- I went through the debugger, and right before the deletion, I checked in task manager to see if ffmpeg was still running, and it wasn't.








Do you guys have any idea what could be holding this up ? My code worked previously when I was trying to just do audio, but I am trying it with video and this is happening.