
Recherche avancée
Médias (91)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
-
Les Miserables
4 juin 2012, par
Mis à jour : Février 2013
Langue : English
Type : Texte
-
Ne pas afficher certaines informations : page d’accueil
23 novembre 2011, par
Mis à jour : Novembre 2011
Langue : français
Type : Image
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Richard Stallman et la révolution du logiciel libre - Une biographie autorisée (version epub)
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (57)
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs
Sur d’autres sites (9599)
-
ffmpeg build with msys2 + VS2017 hang
20 décembre 2019, par lucky1928I am using windows10 + MSVC2017 Community + MSYS2 to build ffmpeg 4.0.1 with below steps :
- Start a Visual Studio 2017 "Developer Command Prompt"
-
cd into msys64 directory, and then invoke MSYS2
msys2_shell.cmd -msys2 -use-full-path
-
In MSYS2 shell, cd into ffmpeg build directory.
-
run ffmpeg config command :
./configure --prefix=./install --toolchain=msvc
After press enter with above command line,sounds like it hang there forever.
never print anything out and not exit as well. -
Win Batch : Not getting data from array that works just a line above it
5 mai 2018, par HASJThis code is from a CLI batch video converter that I’m trying to make using FFmpeg.
::@echo off
setlocal enableDelayedExpansion
::Create variable so that the CMD can understand "NL" as a New Line
::Both spaces are needed
set NL=^
:choice
echo [1] Single input!NL![2] Single input with multiple resolutions!NL![3] Multiple inputs!NL![4] Multiple inputs with multiple resolutions!NL![5] Exit
set /p choice="Choose: "
if /I %choice% EQU 1 goto :setSingleInput
if /I %choice% EQU 2 goto :setSingleInput
::Please already have your files in the Clipboard before choosing options [3] or [4]
if /I %choice% EQU 3 goto :getFileList
if /I %choice% EQU 4 goto :getFileList
if /I %choice% EQU 5 goto :EOL
:setSingleInput
set /p input="Input: "
mediainfo --Output=Video;"%%Height%%" %input%> %temp%\ffmpegres.txt
set /p height=< %temp%\ffmpegres.txt
::del %temp%\ffmpegres.txt
if /I %choice% EQU 1 goto :inputSingle
if /I %choice% EQU 2 goto :inputMultiple
:inputSingle
if /I %height% GTR 720 goto :1080
if /I %height% GTR 480 if /I %height% LEQ 720 goto :720
if /I %height% LSS 481 goto :480
:inputMultiple
if /I %height% GTR 720 goto :1080m
if /I %height% GTR 480 if /I %height% LEQ 720 goto :720m
if /I %height% LEQ 481 goto :480m
:getFileList
Powershell Get-Clipboard > %temp%\ffmpeglist.txt
::Thanks to MichaelS for the following code https://stackoverflow.com/a/32717316/5833369
set fileList=%temp%\ffmpeglist.txt
set x=1
if /I %choice% EQU 3 goto :inputVarious
if /I %choice% EQU 4 goto :inputVariousMultiple
:inputVarious
for /F "delims=|" %%l in (%fileList%) do (
set input[%x%]=%%l
mediainfo --Output=Video;%%Height%% !%input[%x%]%! > %temp%\ffmpegres%x%.txt
set %height[1]%=< %temp%\ffmpegres%x%.txt
set /a x=%x%+1
)
set x=1
echo %height[1]%
goto :EOL
::if /I !height[%x%]! GTR 720 goto :1080v
::if /I !height[%x%]! GTR 480 if /I !height! LEQ 720 goto :720v
::if /I !height[%x%]! LSS 481 goto :480v
:inputVariousMultiple
if /I !height! GTR 720 goto :1080vm
if /I !height! GTR 480 if /I !height! LEQ 720 goto :720vm
if /I !height! LSS 481 goto :480vm
:1080
echo Encoding %input% @ %height%p to x265
ffmpeg -y -hide_banner -hwaccel cuvid -loglevel error -i %input% -c:v libx265 -x265-params log-level=error -t 15 -c:a copy -preset ultrafast -b:v 3000k -crf 23 %input%.%height%p.mkv
goto :choice
:720
echo Encoding %input% @ %height%p to x265
ffmpeg -y -hide_banner -hwaccel cuvid -loglevel error -i %input% -c:v libx265 -x265-params log-level=error -t 15 -c:a copy -preset ultrafast -b:v 2000k -crf 22 %input%.%height%p.mkv
goto :choice
:480
echo Encoding %input% @ %height%p to x265
ffmpeg -y -hide_banner -hwaccel cuvid -loglevel error -i %input% -c:v libx265 -x265-params log-level=error -t 15 -c:a copy -preset ultrafast -b:v 1000k -crf 19 %input%.%height%p.mkv
goto :choice
:1080m
echo Encoding %input% to 1080p x265
ffmpeg -y -hide_banner -hwaccel cuvid -loglevel error -i %input% -c:v libx265 -x265-params log-level=error -t 15 -c:a copy -preset ultrafast -b:v 3000k -crf 23 %input%.1080p.mkv
echo Encoding %input% to 720p x265
ffmpeg -y -hide_banner -hwaccel cuvid -loglevel error -i %input% -c:v libx265 -vf scale=-1:720 -x265-params log-level=error -t 15 -c:a copy -preset ultrafast -b:v 2000k -crf 21 %input%.720p.mkv
echo Encoding %input% to 480p x265
ffmpeg -y -hide_banner -hwaccel cuvid -loglevel error -i %input% -c:v libx265 -vf scale=-2:480 -x265-params log-level=error -t 15 -c:a copy -preset ultrafast -b:v 1000k -crf 19 %input%.480p.mkv
goto :choice
:720m
echo Encoding %input% to 720p and 480p x265
ffmpeg -y -hide_banner -hwaccel cuvid -loglevel error -i %input% -c:v libx265 -x265-params log-level=error -t 15 -c:a copy -preset ultrafast -b:v 2000k -crf 21 %input%.720p.mkv
ffmpeg -y -hide_banner -hwaccel cuvid -loglevel error -i %input% -c:v libx265 -vf scale=-2:480 -x265-params log-level=error -t 15 -c:a copy -preset ultrafast -b:v 1000k -crf 19 %input%.480p.mkv
goto :choice
:480m
echo Encoding %input% to 480p and 360p x265
ffmpeg -y -hide_banner -hwaccel cuvid -loglevel error -i %input% -c:v libx265 -x265-params log-level=error -t 15 -c:a copy -preset ultrafast -b:v 1000k -crf 19 %input%.480p.mkv
ffmpeg -y -hide_banner -hwaccel cuvid -loglevel error -i %input% -c:v libx265 -vf scale=-1:360 -x265-params log-level=error -t 15 -c:a copy -preset ultrafast -b:v 600k -crf 17 %input%.360p.mkv
goto :choice
:1080v
echo Encoding !input[%x%]! @ !height[%x%]!p to x265
ffmpeg -y -hide_banner -hwaccel cuvid -loglevel error -i !input[%x%]! -c:v libx265 -x265-params log-level=error -t 15 -c:a copy -preset ultrafast -b:v 3000k -crf 23 !input[%x%]!.!height!p.mkv
set /a x=%x%+1
)
del %temp%\ffmpeg*.txt
goto :choice
:720v
for /F "delims=|" %%l in (%fileList%) do (
set input[%x%]=%%l
mediainfo --Output=Video;"%%Height%%" !input[%x%]!> %temp%\ffmpegres%x%.txt
set height[%x%]=< %temp%\ffmpegres%x%.txt
echo Encoding !input[%x%]! @ !height[%x%]!p to x265
ffmpeg -y -hide_banner -hwaccel cuvid -loglevel error -i !input[%x%]! -c:v libx265 -x265-params log-level=error -t 15 -c:a copy -preset ultrafast -b:v 2000k -crf 21 !input[%x%]!.!height!p.mkv
set /a x=!x!+1
)
del %temp%\ffmpeg*.txt
goto :choice
:480v
for /F "delims=|" %%l in (%fileList%) do (
set input[%x%]=%%l
mediainfo --Output=Video;"%%Height%%" !input[%x%]!> %temp%\ffmpegres%x%.txt
set height[%x%]=< %temp%\ffmpegres%x%.txt
echo Encoding !input[%x%]! @ !height[%x%]!p to x265
ffmpeg -y -hide_banner -hwaccel cuvid -loglevel error -i !input[%x%]! -c:v libx265 -x265-params log-level=error -t 15 -c:a copy -preset ultrafast -b:v 1000k -crf 19 !input[%x%]!.!height!p.mkv
set /a x=!x!+1
)
del %temp%\ffmpeg*.txt
goto :choice
:1080vm
for /F "delims=|" %%l in (%fileList%) do (
set input[%x%]=%%l
mediainfo --Output=Video;"%%Height%%" !input[%x%]!> %temp%\ffmpegres%x%.txt
set height[%x%]=< %temp%\ffmpegres%x%.txt
echo Encoding !input[%x%]! to 1080p, 720p and 480p with x265
ffmpeg -y -hide_banner -hwaccel cuvid -loglevel error -i !input[%x%]! -c:v libx265 -x265-params log-level=error -t 15 -c:a copy -preset ultrafast -b:v 3000k -crf 23 !input[%x%]!.1080p.mkv
ffmpeg -y -hide_banner -hwaccel cuvid -loglevel error -i !input[%x%]! -c:v libx265 -vf scale=-1:720 -x265-params log-level=error -t 15 -c:a copy -preset ultrafast -b:v 2000k -crf 21 !input[%x%]!.720p.mkv
ffmpeg -y -hide_banner -hwaccel cuvid -loglevel error -i !input[%x%]! -c:v libx265 -vf scale=-2:480 -x265-params log-level=error -t 15 -c:a copy -preset ultrafast -b:v 1000k -crf 19 !input[%x%]!.480p.mkv
set /a x=!x!+1
)
::del %temp%\ffmpeg*.txt
goto :choice
:720vm
for /F "delims=|" %%l in (%fileList%) do (
set input[%x%]=%%l
mediainfo --Output=Video;"%%Height%%" !input[%x%]!> %temp%\ffmpegres%x%.txt
set height[%x%]=< %temp%\ffmpegres%x%.txt
echo Encoding !input[%x%]! to 720p and 480p with x265
ffmpeg -y -hide_banner -hwaccel cuvid -loglevel error -i !input[%x%]! -c:v libx265 -x265-params log-level=error -t 15 -c:a copy -preset ultrafast -b:v 2000k -crf 21 !input[%x%]!.720p.mkv
ffmpeg -y -hide_banner -hwaccel cuvid -loglevel error -i !input[%x%]! -c:v libx265 -vf scale=-2:480 -x265-params log-level=error -t 15 -c:a copy -preset ultrafast -b:v 1000k -crf 19 !input[%x%]!.480p.mkv
set /a x=!x!+1
)
::del %temp%\ffmpeg*.txt
goto :choice
:480vm
for /F "delims=|" %%l in (%fileList%) do (
set input[%x%]=%%l
mediainfo --Output=Video;"%%Height%%" !input[%x%]!> %temp%\ffmpegres%x%.txt
set height[%x%]=< %temp%\ffmpegres%x%.txt
echo Encoding !input[%x%]! to 480p and 360p with x265
ffmpeg -y -hide_banner -hwaccel cuvid -loglevel error -i !input[%x%]! -c:v libx265 -x265-params log-level=error -t 15 -c:a copy -preset ultrafast -b:v 1000k -crf 19 !input[%x%]!.480p.mkv
ffmpeg -y -hide_banner -hwaccel cuvid -loglevel error -i !input[%x%]! -c:v libx265 -vf scale=-1:360 -x265-params log-level=error -t 15 -c:a copy -preset ultrafast -b:v 600k -crf 17 !input[%x%]!.360p.mkv
set /a x=!x!+1
)
::del %temp%\ffmpeg*.txt
goto :choice
:EOL
::endlocal
pauseEverything works until it gets to
!%input[%x%]%!
in the:inputVarious
group.Because this is the output I get from that line :
mediainfo --Output=Video;%Height% !x! 1>\Temp\ffmpegres1.txt
What I’m trying to do is get the data stored in the
input[x]
array position and send it tomediainfo
as input, so that it can get the video’s resolution, store that into theheight[x]
array.I have no idea what I’m doing wrong. Could someone help me ? Tips on how to make the code less redundant and more elegant are also appreciated.
Obs. : I tried to recreate this in Python but I’m too much of a bad study and couldn’t get working (although what I was able to do, was done in a less janky way)
-
How to recompile with -fPIC
15 février 2023, par user1455085I was trying to reinstall my ffmpeg, following this guide, on my ARM Ubuntu machine. Unfortunately, when I compile a program which uses this lib I get the following failure :



/usr/bin/ld: /usr/local/lib/libavcodec.a(amrnbdec.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libavcodec.a: could not read symbols: Bad value
collect2: ld returned 1 exit status




Now I would like to recompile it with
-fPIC
like the compiler is suggesting but I have no idea how. Any help is appreciated.