
Recherche avancée
Autres articles (38)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)
Sur d’autres sites (6831)
-
C# File.Move creates an empty file and IO exception
30 novembre 2020, par MaddieMy code processes a video file (using ffmpeg) and creates different qualities (360p, 480p, etc) and formats (mp4 and HLS) of that. After creating these files, I move all of them to another drive (a network location).


my code looks Like this :


var files = Directory.GetFiles(srcFolder);
string filename, destFile = string.Empty, srcFile = string.Empty;
try
{
 for (int i = 0; i < files.Length; i++)
 {
 srcFile = files[i];
 filename = Path.GetFileName(srcFile);
 destFile = Path.Combine(destFolder, filename);
 File.Move(srcFile, destFile);
 }
}
catch
{
 _logger.LogError("Error in moving file. srcFile: {0}, destFile: {1}", destFile, srcFile);
 throw;
}



This process works fine most of the time, but for some files, I get an IO exception every time I run this process.




System.IO.IOException : The file exists. at System.IO.FileSystem.MoveFile(String sourceFullPath, String destFullPath, Boolean overwrite)




I made sure that destFolder does not exist before, nor did the destFile.


After logging the error and finding the path of source and target files, I downloaded both of them. The source file is a .ts file with a size of 1,048 KB, and the target file is an empty file with the same name (0KB).


This error happened multiple times with the same video, so I assume that it has something to do with the file itself. But I cannot figure it out.


-
how can I read all file in a folder and compute PSNR for them using ffmpeg command as a batch file ?
25 avril 2021, par davidI have some videos that I encode them to mp4 file using FFmpeg, now I need to write a batch file that read all the file in a folder and compute PSNR for them and save in separate text file for each video. I used the following code for each video, but I have to write this command for each video and the number of videos is high. do you have any suggestions for this issue ?


ffmpeg.exe -i input.mkv -i 2.mkv -lavfi psnr=stats_file=psnrmkv.txt -f null -



I used this code to encode all files in a folder to mp4 format :


for %%a in ("*.mp4") do ffmpeg.exe -i "%%a" -c:v libx264 -pix_fmt yuv420p -b:v 6000K -bufsize 6000K -minrate 6000K -maxrate 6000K -x264opts keyint=120:min-keyint=120 -preset veryfast -profile:v high output\%%~na.mp4"
pause



but I do not know how can I write some this similar for computing psnr for all video files in a folder ?


-
Match audio file with video file in batch (.bat)
3 octobre 2019, par Jake Pearsoni have done my research and found a fairly new thread that opened -> Finding File Matches & Variable Assignment using a .BAT Script
However,it doesn’t seem like this person has same issue as me although they maybe using the same fotware for ingesting the videos as the naming convention says so.
For me i have many different output names. the string in the output files has same name like the thread above ->
channel_typeOfProgram_ID_DatesinString.m2v
or.wav
The one thing thast common is that before the date starts, i have High written in the file name followed by c in the video file name or 00, 01 for audio and i believe in the Finding File Matches & Variable Assignment using a .BAT Script the person who answer it made it clear that 00c is left audio and 01c is right audio.
Here are example of the files names I get.
Video
BA_MUS_006606Highc450277**20190320**1831370611.m2v
Audio
BA_MUS_006606High00c450277201903201831370623.wav
BA_MUS_006606High01c450277201903201831370625.wav
or the file name would have
BA_PRG_006606_02High01c45027720190320183137785
so its a problem to break the code to using delimiters as the number of _ or segments are going to be different.