
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (62)
-
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)
Sur d’autres sites (9435)
-
avcodec/movtextdec : Simplify finding default font
17 octobre 2020, par Andreas Rheinhardt -
Converting mkv files to mp4 with ffmpeg-python [closed]
22 août, par myth0sI have a lot of .mkv files that I'm trying to convert to .mp4, so I decided to try and program a solution in python. After a few hours, trying to figure out how to copy the subfolders too, I gave up on it and decided to stick with converting individual subfolders, and then copying them over to another directory.


I've made a simple script, that should convert .mkv files that are in the same folder as the script. However, I keep getting this error :




FileNotFoundError : [WinError 2] The system cannot find the file specified




Here's my code :


import os
import ffmpeg

start_dir = os.getcwd()

def convert_to_mp4(mkv_file):
 no_extension = str(os.path.splitext(mkv_file))
 with_mp4 = no_extension + ".mp4"
 ffmpeg.input(mkv_file).output(with_mp4).run()
 print("Finished converting {}".format(no_extension))

for path, folder, files in os.walk(start_dir):
 for file in files:
 if file.endswith('.mkv'):
 print("Found file: %s" % file)
 convert_to_mp4(file)
 else:
 pass




-
ffmpeg jpg batch script with timestamp
3 juillet 2021, par ChrisI currently have this batch script using ffmpeg to scale images and place in a new location with the same folder structure. How do i include the timestamp from the original jpg file in the filename of the new scaled jpg file ?


This gives files named m-H-S_IMG_0305


@echo off &setlocal
set /a nfile=0
echo Copying directory structure from %1 to %2 ...
xcopy /T "%~1" "%~2"
REM walk directory structure and convert each file in quiet mode
set "sourcefolder=%~1"
set "targetfolder=%~2"
for /R "%sourcefolder%" %%a in (*.JPG) do (
 echo converting "%%~nxa" ...
 set "sourcefile=%%~fa"
 set "sourcepath=%%~dpa"
 set "targetfile=%%~na.JPG"
 setlocal enabledelayedexpansion
 set "targetfolder=%targetfolder%!sourcepath:%sourcefolder%=!"
 ffmpeg -v quiet -i "!sourcefile!" -vf scale=256x256 -q:v 1 -strftime 1 "!targetfolder!%Y-%m-%d_%H-%M-%S_!targetfile!"
 endlocal
 set /A nfile+=1
)
echo Done! Converted %nfile% file(s)



Working version for file modify date :


@echo off &setlocal
set /a nfile=0
echo Copying directory structure from %1 to %2 ...
xcopy /T "%~1" "%~2"
REM walk directory structure and convert each file in quiet mode
set "sourcefolder=%~1"
set "targetfolder=%~2"
for /R "%sourcefolder%" %%a in (*.JPG) do (
 echo converting "%%~nxa" ...
 echo which has a timestamp of "%%~ta" ...
 set "sourcefile=%%~fa"
 set "sourcepath=%%~dpa"
 set "targetfile=%%~na.JPG"
 set "timestamp=%%~ta"
 setlocal enabledelayedexpansion
 set "timestamp=!timestamp: =_!"
 set "timestamp=!timestamp::=-!"
 set "timestamp=!timestamp:/=-!"
 set "targetfolder=%targetfolder%!sourcepath:%sourcefolder%=!"
 ffmpeg -v quiet -i "!sourcefile!" -vf scale=256x256 -q:v 1 "!targetfolder!!timestamp!_!targetfile!"
 endlocal
 set /A nfile+=1
)
echo Done! Converted %nfile% file(s)



File Creation date option attempt using exiftool (This works but it stops frequently so there is an error somewhere) :


@echo off &setlocal
set /a nfile=0
echo Copying directory structure from %1 to %2 ...
xcopy /T "%~1" "%~2"
REM walk directory structure and convert each file in quiet mode
set "sourcefolder=%~1"
set "targetfolder=%~2"
for /R "%sourcefolder%" %%a in (*.JPG) do (
 echo converting "%%~nxa" ...
 echo which has a timestamp of "%%~ta" ...
 set "sourcefile=%%~fa"
 set "sourcepath=%%~dpa"
 set "targetfile=%%~na.JPG"
 set "timestamp=('exiftool -d %%Y%%m%%d_%%H%%M%%S -CreateDate %%~a')"
 for /f "tokens=1,2 delims=x" %%a in ('exiftool -T -d %%Y%%m%%d_%%H%%M%%S -CreateDate "%%a"') do (
 set "timestamp=%%a"
 )
 setlocal enabledelayedexpansion
 set "targetfolder=%targetfolder%!sourcepath:%sourcefolder%=!"
 ffmpeg -v quiet -i "!sourcefile!" -vf scale=256x256 -q:v 1 "!targetfolder!!timestamp!_!targetfile!"
 endlocal
 set /A nfile+=1
)
echo Done! Converted %nfile% file(s)