
Recherche avancée
Médias (1)
-
1 000 000 (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (97)
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)
Sur d’autres sites (10397)
-
Video modifications using ffmpeg and windows batch command
1er mars 2019, par macenikeI have a series of 8 videos which have different number of frames, some of them lose a couple of them at the beginning. I was trying to concatenate at the beginning of the videos with less frame a copy of their first frame. Unfortunately my code either crash while comparing the length of the videos or fail to accomplish the task required. Here I add the code that I’m using.
@ECHO off
SETLOCAL EnableDelayedExpansion
MKDIR COMPRESSED\
MKDIR RAW\
SET j=0
SET jj=1
SET max=1
FOR %%a IN (*.avi) DO (
SET /A j=j+1
FOR /F "delims=" %%V IN ('ffprobe.exe -v error -count_frames -select_streams v:0 -show_entries stream^=nb_read_frames -of default^=noprint_wrappers^=1:nokey^=1 ".\%%~nxa" 2^>^&1') DO SET elem[!j!]=%%V
SET elem[!j!]
)
FOR %%a IN (*.avi) DO (
IF !elem[%jj%]! GTR !elem[%max%]!(
SET max=!jj!
)
SET /A jj=jj+1
)
SET max
SET /A x=1
FOR %%a IN (*.avi) DO (
IF "!elem[!x!]!" LSS "!elem[!max!]!" (
ffmpeg -i ".\%%~nxa" -vf "select=eq(n\,0)" -q:v 3 output_image.jpg
ffmpeg -y -i ".\%%~nxa" -loop 1 -i output_image.jpg -t 0.01 -s 1936x1216 ".\%%~nxa"
SET elem[!x!]=elem[!x!]+1
SET elem[!x!]
)
SET /A x=x+1
)
FOR %%a IN (*.avi) DO (
ffprobe -v error -count_frames -select_streams v:0 -show_entries stream=nb_read_frames ".\%%~nxa"
ffmpeg -i ".\%%~nxa" -c:v libxvid -vtag xvid -qscale:v 2 -force_key_frames 1 -s 968x400 -r 100 ".\COMPRESSED\%%a"
SET mystr=%%~na
SET mystr=!mystr:~-1!
IF !mystr! == 3 (
ffmpeg -i ".\%%~nxa" -c:v mpeg4 -b:v 4M -c:a libfdk_aac -b:a 192k ".\COMPRESSED\%%~na.mp4"
)
IF !mystr! == 5 (
ffmpeg -i ".\%%~nxa" -c:v mpeg4 -b:v 4M -c:a libfdk_aac -b:a 192k ".\COMPRESSED\%%~na.mp4"
)
) -
Problem with ffmpeg syntax in a for loop in batch file [duplicate]
24 février 2019, par user1738673This question already has an answer here :
-
Batch character escaping
4 answers
My goal is to loop through my music folders, read the bitrate of each file, and if greater than 192k, convert it to 192k, then delete the original. I have working batch files that will do each task. The problem comes when I try to combine the lines from the working code. Depending on where I put the quotation marks, I get varying errors about filenames. So, I need someone who really knows how to read this code to solve the issue.
Here are each of the working batch files. They do everything exactly as they should.
First : Loop through files and get the bitrate
@echo off & setlocal
FOR /r %%i in (*.mp3) DO (
ffprobe -v error -show_entries stream=bit_rate -of default=noprint_wrappers=1:nokey=1 "%%~fi"
)
ECHO Completed %~n0
PAUSEHere is the output :
320000
320000
192000
320000
320000
320000
320000
320000
320000
320000
320000
320000
Completed BrTestLoop6
Press any key to continue . . .Next, the batch file for converting all MP3 files to 192k, then deleting the orginal :
@echo off & setlocal
FOR /r %%i in (*.mp3) DO (
ffmpeg -i "%%~fi" -ab 192k -map_metadata 0 -id3v2_version 3 "%%~dpni_192.mp3"
if not errorlevel 1 if exist "%%~fi" del /q "%%~fi"
)
ECHO Completed %~n0
PAUSEI get perfect conversions at 192k and all of the originals are deleted.
Now, the combined version :
@echo off & setlocal
FOR /R %%i in (*.mp3) DO (
FOR /F "TOKENS=1 DELIMS==" %%H IN ('ffprobe -v error -show_entries stream=bit_rate -of default=noprint_wrappers=1:nokey=1 "%%i"') DO (
IF %%H GTR 192000 ffmpeg -i "%%i" -ab 192k -map_metadata 0 -id3v2_version 3 "%%~dpni_192.mp3"
)
)
PAUSEI get the following output :
Argument 'noprint_wrappers' provided as input filename, but 'bit_rate' was already specified.
Argument 'noprint_wrappers' provided as input filename, but 'bit_rate' was already specified.
Argument 'noprint_wrappers' provided as input filename, but 'bit_rate' was already specified.
Argument 'noprint_wrappers' provided as input filename, but 'bit_rate' was already specified.
Argument 'noprint_wrappers' provided as input filename, but 'bit_rate' was already specified.
Argument 'noprint_wrappers' provided as input filename, but 'bit_rate' was already specified.
Argument 'noprint_wrappers' provided as input filename, but 'bit_rate' was already specified.
Argument 'noprint_wrappers' provided as input filename, but 'bit_rate' was already specified.
Argument 'noprint_wrappers' provided as input filename, but 'bit_rate' was already specified.
Argument 'noprint_wrappers' provided as input filename, but 'bit_rate' was already specified.
Argument 'noprint_wrappers' provided as input filename, but 'bit_rate' was already specified.
Argument 'noprint_wrappers' provided as input filename, but 'bit_rate' was already specified.
Press any key to continue . . . -
Batch character escaping
-
Video modifications using ffmpeg and bash command
26 février 2019, par macenikeI have a series of 8 videos which have different number of frames, some of them lose a couple of them at the beginning. I was trying to concatenate at the beginning of the videos with less frame a copy of their first frame. Unfortunately my code either crash while comparing the length of the videos or fail to accomplish the task required. Here I add the code that I’m using.
@ECHO off
SETLOCAL EnableDelayedExpansion
MKDIR COMPRESSED\
MKDIR RAW\
SET j=0
SET jj=1
SET max=1
FOR %%a IN (*.avi) DO (
SET /A j=j+1
FOR /F "delims=" %%V IN ('ffprobe.exe -v error -count_frames -select_streams v:0 -show_entries stream^=nb_read_frames -of default^=noprint_wrappers^=1:nokey^=1 ".\%%~nxa" 2^>^&1') DO SET elem[!j!]=%%V
SET elem[!j!]
)
FOR %%a IN (*.avi) DO (
IF !elem[%jj%]! GTR !elem[%max%]!(
SET max=!jj!
)
SET /A jj=jj+1
)
SET max
SET /A x=1
FOR %%a IN (*.avi) DO (
IF "!elem[!x!]!" LSS "!elem[!max!]!" (
ffmpeg -i ".\%%~nxa" -vf "select=eq(n\,0)" -q:v 3 output_image.jpg
ffmpeg -y -i ".\%%~nxa" -loop 1 -i output_image.jpg -t 0.01 -s 1936x1216 ".\%%~nxa"
SET elem[!x!]=elem[!x!]+1
SET elem[!x!]
)
SET /A x=x+1
)
FOR %%a IN (*.avi) DO (
ffprobe -v error -count_frames -select_streams v:0 -show_entries stream=nb_read_frames ".\%%~nxa"
ffmpeg -i ".\%%~nxa" -c:v libxvid -vtag xvid -qscale:v 2 -force_key_frames 1 -s 968x400 -r 100 ".\COMPRESSED\%%a"
SET mystr=%%~na
SET mystr=!mystr:~-1!
IF !mystr! == 3 (
ffmpeg -i ".\%%~nxa" -c:v mpeg4 -b:v 4M -c:a libfdk_aac -b:a 192k ".\COMPRESSED\%%~na.mp4"
)
IF !mystr! == 5 (
ffmpeg -i ".\%%~nxa" -c:v mpeg4 -b:v 4M -c:a libfdk_aac -b:a 192k ".\COMPRESSED\%%~na.mp4"
)
)