
Recherche avancée
Autres articles (44)
-
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
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 (11394)
-
ffmpeg conversion : 16:9 H.264 to MPG ; converts to 4:3, shows as 4:3 in QT X player, 16:9 in VLC
14 septembre 2015, par WivkuMy source video file :
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 352x288 [SAR 16:11 DAR 16:9], 305 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc (default)
My output video file :
Stream #0:0[0x1e0]: Video: mpeg1video, yuv420p(tv), 352x288 [SAR 49:33 DAR 49:27], 104857 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
Both seem to have correct SAR/DAR.
But, when I play the original file in QuickTime Player X it is shown in 16:9 and the output file is shown in 4:3. The output file is shown correctly in VLC and... QuickTime Player 7. See screenshots.
Q : Is there a specific tag/flag I need to set in the output file to mark it as 16:9 (for QT X) ?
Related : I add a burnt in timecode, but this is burnt in on the 4:3 aspect ratio. In other words, when displaying in the correct 16:9 ratio the timecode is stretched horizontally.
Q : How can I specify that the timecode should be added based on the 16:9 aspect ratio ?
For the conversion (without the timecode burn) with ffmpeg 2.7.2, both of these give the same result :
ffmpeg -y -i orig.mov -aspect 16:9 output.mpg
ffmpeg -y -i orig.mov output.mpg
-
Adding text to movie using ffmpeg
23 août 2014, par microspaceI use
git
to track*.ass
subtitle files.
Here is example of*.ass
file :[Script Info]
; Script generated by Aegisub 3.1.2
; http://www.aegisub.org/
Title: Default Aegisub file
ScriptType: v4.00+
[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: Default,Arial,20,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,2,2,10,10,10,1
Style: titr,DejaVu
Sans,20,&H007DDBFA,&H000000FF,&H00000000,&HFF000000,0,0,0,0,100,100,0,0,1,2,2,1,10,10,10,1
[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Dialogue: 0,0:00:00.46,0:00:11.22,Default,,0,0,0,,Если это можно было бы
Dialogue: 0,0:00:03.44,0:00:08.96,titr,,0,0,0,,{\pos(20,240)\fad(600,600)}бывший министрAfter commit I burn subtitles into video :
ffmpeg -i video.avi -vf "ass=subtitle.ass" out.avi
My goal is to show commit date for 10 second at the start of movie. This should be done automatically.
1) It can be easily done with by modifying
subtitle.ass
itself, but I can’t do it after commit and there are other reasons.2) It can be done by
ffmpeg
from command line : How to use ffmpeg to add a text to avi video ?Problem is that in this case text will be shown for the whole lenght of movie.
3) I can copy *.ass file to temporary directory, insert date, render and delete *.ass file.
Is there a simpler way ?
-
ffmpeg video is bugged when burning PGS subtitles from .mkv to .webm
27 août 2022, par ahab1851I am trying to burn PGS subtitles into a WebM clip (I am converting .mkv file with PGS subtitles into a .webm file), but when I do that, the clip becomes bugged : the length of the clip is 1193 hours and I can't seek the clip.


Here's my ffmpeg command :


ffmpeg -hide_banner -i out.mkv -sws_flags lanczos+accurate_rnd+full_chroma_int \
-filter_complex "[0:v][0:s]overlay[v1]; [v1]crop=1920:804:0:138, \
colorspace=bt709:iall=bt601-6-625:fast=1,scale=1280:-2[v2]" \
-map "[v2]" -map 0:1 -minrate 320k -maxrate 1300k -b:v 640k \
-pix_fmt yuv420p10le -colorspace 1 -color_range 1 -color_primaries 1 \
-color_trc 1 -tile-columns 0 -g 240 -aq-mode 0 -threads 2 \
-deadline good -crf 32 -c:v libvpx-vp9 -pass 1 -cpu-used 2 -row-mt 1 -an -sn -f webm -

ffmpeg -hide_banner -i out.mkv -sws_flags lanczos+accurate_rnd+full_chroma_int \
-filter_complex "[0:v][0:s]overlay[v1]; [v1]crop=1920:804:0:138, \
colorspace=bt709:iall=bt601-6-625:fast=1,scale=1280:-2[v2]" \
-map "[v2]" -map 0:1 -minrate 320k -maxrate 1300k -b:v 640k \
-pix_fmt yuv420p10le -color_range 1 -colorspace 1 -color_primaries 1 \
-color_trc 1 -tile-columns 0 -auto-alt-ref 1 -lag-in-frames 25 -g 240 \
-aq-mode 0 -threads 1 -deadline good -crf 32 -c:v libvpx-vp9 -pass 2 \
-cpu-used 0 -row-mt 1 -an -sn -map_metadata -1 -f webm output.webm



Thanks.