
Recherche avancée
Autres articles (75)
-
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
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" (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...)
Sur d’autres sites (6204)
-
Python script than run another python script, ffmpeg2vmaf
16 mai 2018, par AsusioI want to build a little API to use ffmpeg2vmaf to analyze videos that are made for the video streaming (DASH, HLS).
I’m on Linux Ubuntu 16.04, I’m using python 3.
My API can now concatenate the files into an MP4 file. To do it I’m using the library
subprocess
and the commandcat
.But when I want to use ffmpeg2vmaf it can’t find a library that ffmpeg2vmaf use.
This is how I do :
try:
os.chdir("/home/USERNAME/VMAF/vmaf/")
output_cmd = subprocess.check_output(["sudo ./ffmpeg2vmaf WIDTH HEIGHT \
'/home/alexis/video/ref.mp4' '/home/alexis/video/dist.mp4'\
>> '/home/alexis/analyze/analyze.txt'"], shell = True)
except subprocess.CalledProcessError:
print("Error")The error is :
Traceback (most recent call last):
File "./ffmpeg2vmaf", line 8, in <module>
from vmaf.config import VmafConfig, DisplayConfig
ImportError: No module named vmaf.config
</module>But if I use the same command without python, in the terminal, it works.
I have try to put my API in the same folder as "ffmpeg2vmaf" but it still doesn’t work.
Thank you by advance
-
FFmpeg ubuntu script [on hold]
9 décembre 2015, par SambirHi guys i want to create an ffmpeg script which picks up files from one folder transcodes them then deletes the source.
So think of the following scenario :
I place file A.mp4 and A.srt in folder input
I also place file B.mp4 and B.srt in folder inputIn the night a script is executed which picks up these files places them in the folder "transcoding" then starts to transcode the movies one by one. So not parallel.
When finished new files should be created in the output folder by the ffmpeg script. And the files in the folder "transcoding" should be deleted.
Can anyone help me out here. It does not seem to be that complex but since I am not that good at coding any help is appreciated :)
-
PHP shell_exec wait for script to done ? [duplicate]
6 mars 2016, par Melih BüyükbayramThis question already has an answer here :
I have a PHP script that queries a database for a list of jobs to be done and fires off other PHP scripts based on what it finds in the database (basically a process queue).
Some of the scripts that the queue runner script executes may take 30 seconds or so to finish running (convert video, resizing images, etc).
The problem is that shell_exec() in the queue runner script calls the processing scripts, but then doesn’t wait for them to finish, resulting in the queue not being completed.
Queue runner script :
#!/usr/bin/php
<?php
// Loop through database and find jobs to be done
shell_exec("nohup $command > /dev/null 2> /dev/null & echo $! &");
?>Running the job script directly from the command line works and the PDF is created.
Any ideas on how to fix this ? Or a better way to run a process queue ?