
Recherche avancée
Médias (91)
-
999,999
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Demon seed (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
The four of us are dying (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Corona radiata (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Lights in the sky (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (56)
-
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 ;
-
L’agrémenter visuellement
10 avril 2011MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté. -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (10123)
-
Adding frames to gifs using FFMPEG
4 août 2021, par John SmithI have the following code


for /f %%i in ('dir /b /a-d %script_id%_tmp_img_*1.png') do (
 ffmpeg -y -v error -i %%i -i %script_id%_tmp_blank_frame.png -filter_complex "overlay" overlayed_%%i
 del %%i
)



It currently Adds a overlay image frame at every 10th frame EX , 1,11,21,31 ect ect anything that ends in *1 any advice how i would change this so instead it adds 8 overlay frames before the gif then 1 after the gif instead ? Any help would be great i am super stuck thanks :)


EDIT Heres the full code


:: Usage composegif.bat <file> [-cut ] [-fps ] [-blank <png file="file">]
:: The extra frame is a png named "blank_frame_orig.png" or a custom name can be passed as a parameter, 
:: any dimension is ok, it will be resized and overlayed to the original frame
:: The frame is added as first and every 10 after that, so 1, 11, 21...
:: If you want to edit that , search "FREQUENCY" in this file and edit the line below

@echo off

setlocal ENABLEDELAYEDEXPANSION

set script_id=%random%
set max_time=15

if "%1" == "" (
 echo Select a file to transform
 exit 
)

if not exist %1 (
 echo File not found
 exit
)

::set params

set input_file=%1
set framerate=20
set blank_frame=blank_frame_orig.png
set cut_sec=%max_time%

:loop
if not "%2"=="" (
 if "%2"=="-fps" (
 set framerate=%3
 shift
 )
 if "%2"=="-cut" (
 if not "%3"=="" (
 if "%3" GTR "%max_time%" ( 
 echo Max output is %max_time% seconds
 ) else ( 
 set cut_sec=%3
 )
 ) else (
 set cut_sec=%max_time%
 )
 shift
 )
 if "%2"=="-blank" (
 set blank_frame=%3
 shift
 )
 shift
 goto :loop
)

echo Fps set to %framerate%
echo Cutting gif at %cut_sec% seconds

::extract images
echo Extracting images
ffmpeg -v error -i %input_file% -vsync 0 %script_id%_tmp_img_%%03d.png || del %script_id%_tmp_*

::get size from first frame
for /f %%i in ('ffprobe.exe -v error -show_entries stream^="width,height" -of csv^=p^=0:s^=\: %script_id%_tmp_img_001.png') do (
 set size=%%i
)

::resize blank frame
echo Size is %size%
ffmpeg -v error -y -i %blank_frame% -vf scale=%size% %script_id%_tmp_blank_frame.png || del %script_id%_tmp_*

::add overlay to frames and removing corresponding ones
echo Adding overlay to every 10th frame
:: EDIT THIS TO CHANGE FREQUENCY
for /f %%i in ('dir /b /a-d %script_id%_tmp_img_*1.png') do (
 ffmpeg -y -v error -i %%i -i %script_id%_tmp_blank_frame.png -filter_complex "overlay" overlayed_%%i
 del %%i
)

::rename overlayed frames
rename "overlayed_*" "//////////*"

::create gif at 'framerate' fps
set finalFileName=%overlayed%_%random%.gif
echo Creating gif %finalFileName%
ffmpeg -v error -framerate %framerate% -i %script_id%_tmp_img_%%003d.png -t 00:00:%cut_sec% %finalFileName% || del %script_id%_tmp_*


::delete tmp files
del %script_id%_tmp_*

echo Done
</png></file>


but this code adds the overlay.png every 10th frame of the gif EX 1,11,21,31,41 ect instead i want it to add 19 of them before the gif then 1 after


-
avcodec/libavcodec.v : Tighten export whitelist
14 juin 2021, par Andreas Rheinhardtavcodec/libavcodec.v : Tighten export whitelist
Currently every symbol (with external linkage) that starts with "av" is
exported. Yet libaom-av1 has lots of functions that are not meant to be
exported and start with "av1_" (I counted 1236) ; and libvpx has
average_split_mvs. These functions are exported if one links these
libraries statically into a shared libavcodec.so.Solve this by tightening the whitelist to "av_", "avcodec_", "avpriv_"
and (as a special-case) "avsubtitle_free".Reviewed-by : Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com> -
Fix linking of microbenchmark program
23 janvier 2016, par Erik de Castro Lopo