
Recherche avancée
Médias (91)
-
Corona Radiata
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Lights in the Sky
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Head Down
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Echoplex
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Discipline
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Letting You
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (82)
-
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (12879)
-
avcodec/aac : Share common init code of float decoder and encoder
22 novembre 2020, par Andreas Rheinhardt -
vp56data : Move all shared enum/struct declarations to common header
14 août 2013, par Diego Biurrun -
Does 'force_style' work with 'subtitles=video.mkv' for FFMPEG ? [closed]
8 septembre 2023, par http.birdI am using this script to encode an burn in subtiles for an entire folder :


for filepath in newFiles:
 video = os.path.basename(filepath)
 videoName = os.path.splitext(video)[0]
 newFile = '%s.mp4' % videoName
 i = filepath
 o = os.path.join(destinationDirectory, newFile)
 if os.path.isfile(o):
 continue
 encodeCommand = f'ffmpeg -i "{i}" -vf "scale=-2:480, subtitles="{video}":force_style='PrimaryColour=&H0300FFFF&'" -c:v libx264 -profile:v baseline -level 3.0 -preset fast -crf 23 -pix_fmt yuv420p "{o}"'
 print('Encoding %s' % newFile)
 encode = os.popen(encodeCommand).read()



However, the
force_style='PrimaryColour=&H0300FFFF&'
does not work and just keeps the subtitles built into the original file untouched. I am usingsubtitles="{video}"
because it uses the subtitles that are saved in the video file. Does'force_style'
only work if I am providing a separate subtitle file ?

I tried a mixture of quote combinations to see if that was the problem, but that stopped the script from running. This script still runs, just doesn't change the color of the subtitles.


Edit : suddenly it doesn't run. Says that PrimaryColour is invalid syntax. I didn't change anything