
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 (70)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (11783)
-
Why are rectangular boxes ([]) showing instead of text in burned subtitles when using ffmpeg/MoviePy on Google Colab ?
14 mai, par LavishI'm working on a Python script that adds subtitles to a video using MoviePy and burns/hardcodes them directly onto the video. The subtitles contain Hindi text, and I’ve specified a custom font that supports Devanagari (Hindi) script.


The code works perfectly fine on my local machine, the subtitles appear correctly with Hindi characters. However, when I run the same code on Google Colab, the subtitles display as rectangular boxes (something like this -> [][][]) instead of proper characters.


Things I've tried :


- 

- Ensured the font used supports Hindi (I'm using NotoSansDevanagari-Regular.ttf renamed as font.ttf).
- Uploaded the font to Colab and specified the full path correctly.
- Verified that the text is passed as a proper Unicode string.








Here's the code snippet :


def add_subtitles(video_path, subtitles_path, output_path):
 """Adds subtitles using FFmpeg with proper path escaping."""
 # Convert to absolute paths and normalize
 
 video_path = os.path.abspath(video_path)
 subtitles_path = os.path.abspath(subtitles_path)
 output_path = os.path.abspath(output_path)


 # Subtitle path
 font_path = "input_files/font.ttf"
 font_path = os.path.abspath(font_path).replace("\\", "\\\\")
 subtitles_path_escaped = os.path.abspath(subtitles_path).replace("\\", "\\\\")
 
 # Escape backslashes in paths
 subtitles_path = subtitles_path.replace("\\", "\\\\")
 # Remove all files in final_videos
 [os.remove(os.path.join(base_dir, "final_videos", f)) for f in os.listdir(os.path.join(base_dir, "final_videos")) if os.path.isfile(os.path.join(base_dir, "final_videos", f))]

 os.makedirs(os.path.dirname(output_path), exist_ok=True)
 escaped_path = subtitles_path.replace(':', '\\:').replace('\\', '\\\\')

 cmd = [
 "ffmpeg",
 "-i", video_path,
 "-vf", f"subtitles={escaped_path}:force_style='FontFile={font_path}'",
 "-c:v", "libx264",
 "-c:a", "copy",
 "-preset", "fast",
 "-crf", "22",
 output_path
]


 # Debug: Print the exact command being executed
 print("Executing:", " ".join(cmd))
 try:
 subprocess.run(cmd, check=True, capture_output=True, text=True)
 print(f"✅ Success! Output saved to: {output_path}")
 except subprocess.CalledProcessError as e:
 print(f"❌ FFmpeg failed with error:\n{e.stderr}")




What could be causing this issue on Colab, and how can I get non-English subtitles (like Hindi) to render properly when burning subtitles using MoviePy/ffmpeg in a Colab environment ?


-
Revision 223bf29307 : libyuv : update to r1305 MIPS build fixes https://code.google.com/p/webm/issues
3 mars 2015, par JohannChanged Paths :
Modify /third_party/libyuv/README.libvpx
Modify /third_party/libyuv/include/libyuv/compare.h
Modify /third_party/libyuv/include/libyuv/convert.h
Modify /third_party/libyuv/include/libyuv/convert_argb.h
Modify /third_party/libyuv/include/libyuv/convert_from.h
Modify /third_party/libyuv/include/libyuv/convert_from_argb.h
Delete /third_party/libyuv/include/libyuv/format_conversion.h
Modify /third_party/libyuv/include/libyuv/row.h
Modify /third_party/libyuv/include/libyuv/scale.h
Modify /third_party/libyuv/include/libyuv/scale_row.h
Modify /third_party/libyuv/include/libyuv/version.h
Modify /third_party/libyuv/include/libyuv/video_common.h
Modify /third_party/libyuv/source/compare.cc
Modify /third_party/libyuv/source/compare_neon.cc
Add /third_party/libyuv/source/compare_neon64.cc
Modify /third_party/libyuv/source/compare_posix.cc
Modify /third_party/libyuv/source/compare_win.cc
Modify /third_party/libyuv/source/convert.cc
Modify /third_party/libyuv/source/convert_argb.cc
Modify /third_party/libyuv/source/convert_from.cc
Modify /third_party/libyuv/source/convert_from_argb.cc
Modify /third_party/libyuv/source/convert_to_argb.cc
Modify /third_party/libyuv/source/convert_to_i420.cc
Modify /third_party/libyuv/source/cpu_id.cc
Delete /third_party/libyuv/source/format_conversion.cc
Modify /third_party/libyuv/source/mjpeg_validate.cc
Modify /third_party/libyuv/source/planar_functions.cc
Modify /third_party/libyuv/source/rotate.cc
Modify /third_party/libyuv/source/rotate_argb.cc
Modify /third_party/libyuv/source/rotate_neon.cc
Add /third_party/libyuv/source/rotate_neon64.cc
Modify /third_party/libyuv/source/row_any.cc
Modify /third_party/libyuv/source/row_common.cc
Modify /third_party/libyuv/source/row_mips.cc
Modify /third_party/libyuv/source/row_neon.cc
Modify /third_party/libyuv/source/row_neon64.cc
Modify /third_party/libyuv/source/row_posix.cc
Modify /third_party/libyuv/source/row_win.cc
Modify /third_party/libyuv/source/scale.cc
Modify /third_party/libyuv/source/scale_argb.cc
Modify /third_party/libyuv/source/scale_common.cc
Modify /third_party/libyuv/source/scale_neon.cc
Modify /third_party/libyuv/source/scale_neon64.cc
Modify /third_party/libyuv/source/scale_posix.cc
Modify /third_party/libyuv/source/scale_win.cc
Modify /third_party/libyuv/source/video_common.cc
libyuv : update to r1305MIPS build fixes
https://code.google.com/p/webm/issues/detail?id=957
Change-Id : I9d53900af36d783c369b5dff27a7479cb94fd16b
-
Google Analytics Privacy Issues : Is It Really That Bad ?
2 juin 2022, par Erin