
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (81)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
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 (...) -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...)
Sur d’autres sites (7165)
-
How can I take a user input in python3 and use it for the file name of ffmpeg-python file output ?
25 novembre 2022, par tylerdurden4285I am trying to do something like this :


import ffmpeg

user_input =input("give your output file a name: ")

(
 ffmpeg
 .input('input.mp4')
 .vflip()
 .output('(user_input).mp4')
 .run()
)




I am wondering how I can take the string input from the user and make it the filename. So if they input "tester" the resulting output file would be "tester.mp4".


I am running it on an ubuntu 20.04 WSL. I'm new to here and doing my best to learn python3 and ffmpeg so please be gentle with me if I broke any community rules. I'll improve as I go.


I don't know what to search for to find the answer to this problem.


-
check if file is downloaded in temp in GCF from GCS
3 septembre 2020, par soshiIm making video encoder using GCF


that downloads video file from gcs to /tmp and encode it by ffmpeg.


I want to ask how to check if file is downloaded in tmp ?


I tried console.log(process.cwd()) but tmp folder is not displayed


exports.encodeVideo = async (req, res) => {

 mkdirp('/tmp')

 storage.bucket('video-bucket').file('raw/samplevideo.mp4').download({ 
 destination:'encoded/samplevideo.mp4' })

ffmpeg........
}



-
Access files in a directory and write the file paths to a text file in ascending order using PHP
26 mars 2014, par SCCI have a list of video files in my server. I would like to list out all the video files in this directory and write it to a text file. These video files are all having the same name output-x.mp4, and x is the number from 0 to an unknown figure. The total number of video files is dynamic and therefore I don't get to know the number of the last video. I have the below code to access all the video files in this directory. It works fine with only one problem : The video files written to the text file are not sorted in ascending order.
$directory = "video/myvideo";
$fp = fopen($_SERVER['DOCUMENT_ROOT']."Path/to/text/file", "wb");
$split_video_files = scandir($directory);
foreach($split_video_files as $file)
{
$content = "file ".$directory.$file."\r\n";
fwrite($fp, $content);
}
fclose($fp);What the text file gave me is this :
video/myvideo/output-0.mp4
video/myvideo/output-1.mp4
video/myvideo/output-10.mp4
video/myvideo/output-11.mp4
video/myvideo/output-12.mp4
video/myvideo/output-13.mp4
video/myvideo/output-14.mp4
video/myvideo/output-2.mp4
video/myvideo/output-3.mp4
video/myvideo/output-4.mp4
video/myvideo/output-5.mp4
video/myvideo/output-6.mp4
video/myvideo/output-7.mp4
video/myvideo/output-8.mp4
video/myvideo/output-9.mp4It lists out all the filename that start with "1" first before proceed to "2" and so on. Any ways for me to sort it in ascending order so that it starts from 0, 1, 2,… ?