
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 (33)
-
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (9739)
-
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"
)
) -
Finding File Matches & Variable Assignment using a .BAT Script
6 octobre 2019, par A Person — batch-file, ffmpegI am trying to assign a file to a variable in a batch-file and then also assign another 2 files into anoter variable.
However, I am having an issue.
From research, I found how I can do the assigning but does anyone know how I can do the below.
From a folder or text file, (either is fine), find the
.m2v
video file and assign that toVar1
then find matching audio in.wav
and put that inVar2
and the third is also an audio.wav
with mathcing name and assign that toVar3
.The problem I am having is trying to find the matching
2
audio files to the video.The video file is named as :
PAV_PRG_13683Highc450277201906251802090353.m2v
Audio 1 is :
PAV_PRG_13683High01c450211201906251802090376.wav
Audio 2 is :
PAV_PRG_13683High00c450211201906251802090368.wav
The file name matches until it sees the word
High
. Everything afterHigh
is not needed, (it is just a random string), so trying to match is an issue.Is there a way to find the match by comparing everything before
High
.Also as I will be using the variable and putting them through ffmpeg to merge, is there way to do it so that when the
ffmpeg
command has completed, it moves to the next matching files and assigns them to the variable.The files are store in
2
folders, one folder has all the video files*.m2v
and another folder has all the*.wav
audio files in pairs of2
. Each video has exactly2
audios, (left right).is there any help on this subject, I have already come up empty in my research and have been checking for this over the last week spent almost 30 hours.
-
Google Lato Font Display discrepancies between platforms/software [closed]
5 juin 2024, par CRAIGUsing Google's Lato font with 400 weight, is giving me some inconsistent results between Photoshop/Web on MacOS and Linux Imagemagick & Linux ffmpeg.


I have printed out some text on my linux server using the font using both imagemagick (v6.9.10-68) and ffmpeg's (v6.0) drawtext feature and in both cases, I get some extra space between the T and the e. (Image below)


At first I was only testing ffmpeg and thought it was related to drawtext, but now that imagemagick is doing the same, I am thinking it may be somehow related to how the server is managing the font ?


I did download the exact same font to test on my Mac and installed it, but I still get the original photoshop results I was getting before. So I don't think it is inherently the font unless I missed a step. I did completely uninstall the font and then install the downloaded one to be sure.


However, the same word, font, font-size combo used in Photoshop and on the web does not produce the same space between the T and the e.


Here is an image I put together showing the results :




For reference, here is the imagemagick command :


convert -size 900x900 xc:black -font /fonts/Lato:400.ttf -pointsize 261.6 -fill white -gravity center -annotate +0+0 'Text' testoutput.png


And the ffmpeg command :


/usr/local/bin/ffmpeg -f lavfi -i color=c=black@0.0:s=953x953:r=30:d=5,format=rgba -filter_complex "drawtext=expansion=none:enable='between(t,0,5)':fontfile='/fonts/Lato\:400.ttf':fontcolor=0xffffffff:fontsize=294:text='Text':x=(w-text_w)/2+0:y=476.5-(max_glyph_a)+(294/2.8)" -copyts -threads 1 -c:v png -pix_fmt rgba -movflags faststart -r 30 -t 8 -y testoutput.mov