
Recherche avancée
Autres articles (45)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
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 (...) -
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 (...)
Sur d’autres sites (5616)
-
Ffmpeg can't convert at 24fps AND burn a subtitles
14 novembre 2020, par Oshida_BCFi like to save my anime but i don't like when the subs are softburned and if the video is in mkv (it's heavier)


so i made some .bat that encode the video and burn the subtitles.


cd To convert
for %%a in ("*.mkv") do ffmpeg -i "%%a" -vf subtitles="%%a" -crf 18 -c:v libx264 -c:a aac -b:a 256k ../Converted/"%%~na.mp4"
pause



this command burn the subtitles and it's perfect


cd To convert
for %%a in ("*.mp4") do ffmpeg -i "%%a" -filter:v fps=fps=24 -crf 18 -c:v libx264 -c:a aac -b:a 256k ../Converted/"%%~na.mp4"
pause



this one encode at 24 fps and it's perfect too


but this one


cd To convert
for %%a in ("*.mkv") do ffmpeg -i "%%a" -vf subtitles="%%a" -crf 18 -c:v libx264 -c:a aac -b:a 256k -filter:v fps=fps=24 ../Converted/"%%~na.mp4"
pause



doesn't work.


and i have no idea


it convert the video in mp4, at 24fps
but it "forgot" the subtitles


do there is some commands that aren't compatible and cancel each other ?


for now i burn the sub on the video and i convert at 24 fps after.
but being able to do the 2 at the same time would save me a lot of time.


-
Use FFMPEG to put images separately inside a "box" and keeping their original positions of the X and Y boundaries and maybe modify their offsets
14 septembre 2020, par karl-policeI have a collection of images, for this example, I created 3 images that have different sizes, but the image itsself is the same, except it is moved more down or left or right.


1 :
2 :
3 :


These are the images. The total sizes of all images together is 35x39, so that means that they need to go inside an 35x39 image so it can later be used to craft them into a GIF as example. Since "crop" does not really work as it crops it smaller and can't make them bigger and I can't imagine it being the best solution for that anyway, perhaps.


So this is the invisible 35x39 sized box.


image :


So what I'm trying to do is to figure out how I can put each of these images separately in the 35x39 sized box, but maintaining the original X position or the Y position or both, from the boundaries of the images. I'm trying to figure out how I can do this for other transparent images for similar things, mostly used to craft animations. Here into a GIF out of image collections, but the images need to be fixed first.


I tried to look in the FFMPEG documentation, but there's many many filters and etc. that I had a few issues finding the right thing. I'm also not sure if it is also then possible to change the offset of the X and Y, because I think if there's something to make it keep the original position of X and Y, then I also think that there's probably something to change the offset of it aswell.




End result of the images could basically be :


1 :
2 :
3 :


This end result example of the images, basically have their X aligned on the top and Y aligned on the left. I'm not sure if you can call it "original X position", because if I compare it to Photoshop's special paste and keep at original position, it puts the first image a bit more down as example, for some reason. So I just moved the X all the way to the top and the Y all the way to the left.


-
FFMPEG Problem with Filter_Complex with Chain Filters
11 avril 2023, par JamesThis script combined three filters into one being drawgrid, drawbox and drawtext. The result had added the text and not added the grid and box.


My script :


Set "BXW=1000" ::Box width
Set "BXH=1008" ::Box height

set "TEXT1=360" :: Text lefthand side (no space characters allowed, see next example)
set "TEXT2=180" :: Text bottom and center
set "TEXT3=0" :: Text righthand side
set "TEXT4=0" :: Text top and center


set "COLOR=red" :: Text color
set "SIZE=200" :: Font size
set "POS_X1=0" ::X1 position of text
set "POS_Y1=(h-th)/2" :: Y1 position of text, use (h-th)/2 for centering
set "POS_X2=(w-tw)/2" :: X2 position of text, use (w-tw)/2 for centering
set "POS_Y2=(h-th)" ::Y2 position of text
set "POS_X3=(w-tw)" ::X3 position of text
set "POS_Y3=(h-th)/2" ::Y3 position of text, use (h-th)/2 for centering
set "POS_X4=(w-tw)/2" :: X4 position of text, use (w-tw)/2 for centering
set "POS_Y4=0" ::Y4 position of text



ffmpeg -i %1 -filter_complex [0:v]"drawgrid=color=red:width=iw/8:height=0:thickness=6,drawgrid=color=blue:width=0:height=ih/12:thickness=6"[grid_s]; [grid_s]"format=rgb24,drawbox=x=((iw/2)-%BXW%/2):y=((ih/2)-%BXH%/2):width=%BXW%:height=%BXH%:thickness=40:color=white"[box_s]; [box_s]drawtext="fontfile='c\:/windows/fonts/arial.ttf':fontcolor=%COLOR%:fontsize=%SIZE%:text=%TEXT1%:x=%POS_X1%:y=%POS_Y1%",drawtext="fontfile='c\:/windows/fonts/arial.ttf':fontcolor=%COLOR%:fontsize=%SIZE%:text=%TEXT2%:x=%POS_X2%:y=%POS_Y2%,drawtext="fontfile='c\:/windows/fonts/arial.ttf':fontcolor=%COLOR%:fontsize=%SIZE%:text=%TEXT3%:x=%POS_X3%:y=%POS_Y3%,drawtext="fontfile='c\:/windows/fonts/arial.ttf':fontcolor=%COLOR%:fontsize=%SIZE%:text=%TEXT4%:x=%POS_X4%:y=%POS_Y4%"[text_s] -frames 1 -y temptxt.png


ffmpeg -i temptxt.png -vf scale=iw/8:-1 -f nut - | ffplay -